Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for johnson (0.23 sec)

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

    ```
    
    但使用 `secrets.compare_digest()`,可以防御**时差攻击**,更加安全。
    
    ### 时差攻击
    
    什么是**时差攻击**?
    
    假设攻击者试图猜出用户名与密码。
    
    他们发送用户名为 `johndoe`,密码为 `love123`  的请求。
    
    然后,Python 代码执行如下操作:
    
    ```Python
    if "johndoe" == "stanleyjobson" and "love123" == "swordfish":
        ...
    ```
    
    但就在 Python 比较完 `johndoe` 的第一个字母 `j` 与 `stanleyjobson` 的 `s` 时,Python 就已经知道这两个字符串不相同了,它会这么想,**没必要浪费更多时间执行剩余字母的对比计算了**。应用立刻就会返回**错误的用户或密码**。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:43:48 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/security/http-basic-auth.md

    Und sie senden eine Anfrage mit dem Benutzernamen `johndoe` und dem Passwort `love123`.
    
    Dann würde der Python-Code in Ihrer Anwendung etwa so aussehen:
    
    ```Python
    if "johndoe" == "stanleyjobson" and "love123" == "swordfish":
        ...
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:28:08 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  3. docs/em/docs/advanced/security/http-basic-auth.md

    ### ⏲ 👊
    
    ✋️ ⚫️❔ "⏲ 👊"❓
    
    ➡️ 🌈 👊 🔄 💭 🆔 & 🔐.
    
    & 👫 📨 📨 ⏮️ 🆔 `johndoe` & 🔐 `love123`.
    
    ⤴️ 🐍 📟 👆 🈸 🔜 🌓 🕳 💖:
    
    ```Python
    if "johndoe" == "stanleyjobson" and "love123" == "swordfish":
        ...
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/security/http-basic-auth.md

    And they send a request with a username `johndoe` and a password `love123`.
    
    Then the Python code in your application would be equivalent to something like:
    
    ```Python
    if "johndoe" == "stanleyjobson" and "love123" == "swordfish":
        ...
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 14:33:05 GMT 2024
    - 5.9K bytes
    - Viewed (0)
Back to top