Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for Haszing (0.27 sec)

  1. docs/zh/docs/tutorial/extra-models.md

    书接上文,多个关联模型这种情况很常见。
    
    特别是用户模型,因为:
    
    * **输入模型**应该含密码
    * **输出模型**不应含密码
    * **数据库模型**需要加密的密码
    
    !!! danger "危险"
    
        千万不要存储用户的明文密码。始终存储可以进行验证的**安全哈希值**。
    
        如果不了解这方面的知识,请参阅[安全性中的章节](security/simple-oauth2.md#password-hashing){.internal-link target=_blank},了解什么是**密码哈希**。
    
    ## 多个模型
    
    下面的代码展示了不同模型处理密码字段的方式,及使用位置的大致思路:
    
    === "Python 3.10+"
    
        ```Python hl_lines="7  9  14  20  22  27-28  31-33  38-39"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Apr 01 01:15:53 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/extra-models.md

        Speichern Sie niemals das Klartext-Passwort eines Benutzers. Speichern Sie immer den „sicheren Hash“, den Sie verifizieren können.
    
        Falls Ihnen das nichts sagt, in den [Sicherheits-Kapiteln](security/simple-oauth2.md#passwort-hashing){.internal-link target=_blank} werden Sie lernen, was ein „Passwort-Hash“ ist.
    
    ## Mehrere Modelle
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:26:47 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/extra-models.md

    * **出力モデル**はパスワードをもつべきではありません。
    * **データベースモデル**はおそらくハッシュ化されたパスワードが必要になるでしょう。
    
    !!! danger "危険"
        ユーザーの平文のパスワードは絶対に保存しないでください。常に認証に利用可能な「安全なハッシュ」を保存してください。
    
        知らない方は、[セキュリティの章](security/simple-oauth2.md#password-hashing){.internal-link target=_blank}で「パスワードハッシュ」とは何かを学ぶことができます。
    
    ## 複数のモデル
    
    ここでは、パスワードフィールドをもつモデルがどのように見えるのか、また、どこで使われるのか、大まかなイメージを紹介します:
    
    ```Python hl_lines="9  11  16  22  24  29-30  33-35  40-41"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 15 15:36:32 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    For example, instead of using the same database session, you would create a new database session inside of the background task, and you would obtain the objects from the database using this new session. And then instead of passing the object from the database as a parameter to the background task function, you would pass the ID of that object and then obtain the object again inside the background task function.
    
    ## Context Managers
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/sql-databases.md

        Here we are focusing only on the tools and mechanics of databases.
    
    !!! tip
        Instead of passing each of the keyword arguments to `Item` and reading each one of them from the Pydantic *model*, we are generating a `dict` with the Pydantic *model*'s data with:
    
        `item.dict()`
    
        and then we are passing the `dict`'s key-value pairs as the keyword arguments to the SQLAlchemy `Item`, with:
    
        `Item(**item.dict())`
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/settings.md

    Then you can use the new `settings` object in your application:
    
    ```Python hl_lines="18-20"
    {!../../../docs_src/settings/tutorial001.py!}
    ```
    
    ### Run the server
    
    Next, you would run the server passing the configurations as environment variables, for example you could set an `ADMIN_EMAIL` and `APP_NAME` with:
    
    <div class="termy">
    
    ```console
    $ ADMIN_EMAIL="******@****.***" APP_NAME="ChimichangApp" uvicorn main:app
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/behind-a-proxy.md

    ```Python hl_lines="3"
    {!../../../docs_src/behind_a_proxy/tutorial002.py!}
    ```
    
    Passing the `root_path` to `FastAPI` would be the equivalent of passing the `--root-path` command line option to Uvicorn or Hypercorn.
    
    ### About `root_path`
    
    Keep in mind that the server (Uvicorn) won't use that `root_path` for anything else than passing it to the app.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (2)
  8. docs/en/docs/deployment/versions.md

    If everything is working, or after you make the necessary changes, and all your tests are passing, then you can pin your `fastapi` to that new recent version.
    
    ## About Starlette
    
    You shouldn't pin the version of `starlette`.
    
    Different versions of **FastAPI** will use a specific newer version of Starlette.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Nov 05 20:50:37 GMT 2020
    - 3.3K bytes
    - Viewed (0)
  9. docs/de/docs/project-generation.md

    * **Sicheres Passwort**-Hashing standardmäßig.
    * **JWT-Token**-Authentifizierung.
    * **SQLAlchemy**-Modelle (unabhängig von Flask-Erweiterungen, sodass sie direkt mit Celery-Workern verwendet werden können).
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 18:14:36 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  10. docs/pt/docs/project-generation.md

    * **Senha segura** _hashing_ por padrão.
    * Autenticação **Token JWT**.
    * Modelos **SQLAlchemy** (independente de extensões Flask, para que eles possam ser usados com _workers_ Celery diretamente).
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Oct 17 05:50:32 GMT 2020
    - 6.3K bytes
    - Viewed (0)
Back to top