Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for swordfish (0.11 sec)

  1. docs/pt/docs/advanced/security/http-basic-auth.md

    Então nós podemos utilizar o `secrets.compare_digest()` para garantir que o `credentials.username` é `"stanleyjobson"`, e que o `credentials.password` é `"swordfish"`.
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="1  12-24"
    {!> ../../docs_src/security/tutorial007_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="1  12-24"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. docs/em/docs/advanced/security/http-basic-auth.md

    ⤴️ 👥 💪 ⚙️ `secrets.compare_digest()` 🚚 👈 `credentials.username` `"stanleyjobson"`, & 👈 `credentials.password` `"swordfish"`.
    
    ```Python hl_lines="1  11-21"
    {!../../docs_src/security/tutorial007.py!}
    ```
    
    👉 🔜 🎏:
    
    ```Python
    if not (credentials.username == "stanleyjobson") or not (credentials.password == "swordfish"):
        # Return some error
        ...
    ```
    
    ✋️ ⚙️ `secrets.compare_digest()` ⚫️ 🔜 🔐 🛡 🆎 👊 🤙 "🕰 👊".
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. docs/zh/docs/advanced/security/http-basic-auth.md

        # Return some error
        ...
    ```
    
    但使用 `secrets.compare_digest()`,可以防御**时差攻击**,更加安全。
    
    ### 时差攻击
    
    什么是**时差攻击**?
    
    假设攻击者试图猜出用户名与密码。
    
    他们发送用户名为 `johndoe`,密码为 `love123`  的请求。
    
    然后,Python 代码执行如下操作:
    
    ```Python
    if "johndoe" == "stanleyjobson" and "love123" == "swordfish":
        ...
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. docs/de/docs/advanced/security/http-basic-auth.md

    {* ../../docs_src/security/tutorial007_an_py39.py hl[1,12:24] *}
    
    Dies wäre das gleiche wie:
    
    ```Python
    if not (credentials.username == "stanleyjobson") or not (credentials.password == "swordfish"):
        # Einen Error zurückgeben
        ...
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:25:54 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/security/http-basic-auth.md

    {* ../../docs_src/security/tutorial007_an_py39.py hl[1,12:24] *}
    
    This would be similar to:
    
    ```Python
    if not (credentials.username == "stanleyjobson") or not (credentials.password == "swordfish"):
        # Return some error
        ...
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 16:01:27 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top