Browse Source

use `argon2` in `fake_users_db` `hashed_password`

pull/13917/head
Neizvestnyj 1 week ago
parent
commit
0ebc05a785
  1. 2
      docs/en/docs/tutorial/security/oauth2-jwt.md
  2. 2
      docs/ru/docs/tutorial/security/oauth2-jwt.md
  3. 2
      docs_src/security/tutorial004.py
  4. 2
      docs_src/security/tutorial004_an.py
  5. 2
      docs_src/security/tutorial004_an_py310.py
  6. 2
      docs_src/security/tutorial004_an_py39.py
  7. 2
      docs_src/security/tutorial004_py310.py
  8. 4
      docs_src/security/tutorial005.py
  9. 4
      docs_src/security/tutorial005_an.py
  10. 4
      docs_src/security/tutorial005_an_py310.py
  11. 4
      docs_src/security/tutorial005_an_py39.py
  12. 4
      docs_src/security/tutorial005_py310.py
  13. 4
      docs_src/security/tutorial005_py39.py

2
docs/en/docs/tutorial/security/oauth2-jwt.md

@ -120,7 +120,7 @@ And another one to authenticate and return a user.
/// note /// note
If you check the new (fake) database `fake_users_db`, you will see how the hashed password looks like now: `"$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW"`. If you check the new (fake) database `fake_users_db`, you will see how the hashed password looks like now: `"$argon2id$v=19$m=65536,t=3,p=4$wagCPXjifgvUFBzq4hqe3w$CYaIb8sB+wtD+Vu/P4uod1+Qof8h+1g7bbDlBID48Rc"`.
/// ///

2
docs/ru/docs/tutorial/security/oauth2-jwt.md

@ -113,7 +113,7 @@ pwdlib также имеет функциональность для испол
{* ../../docs_src/security/tutorial004_an_py310.py hl[8,49,56:57,60:61,70:76] *} {* ../../docs_src/security/tutorial004_an_py310.py hl[8,49,56:57,60:61,70:76] *}
/// note | Технические детали /// note | Технические детали
Если проверить новую (фальшивую) базу данных `fake_users_db`, то можно увидеть, как теперь выглядит хэшированный пароль: `"$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW"`. Если проверить новую (фальшивую) базу данных `fake_users_db`, то можно увидеть, как теперь выглядит хэшированный пароль: `"$argon2id$v=19$m=65536,t=3,p=4$wagCPXjifgvUFBzq4hqe3w$CYaIb8sB+wtD+Vu/P4uod1+Qof8h+1g7bbDlBID48Rc"`.
/// ///
## Работа с JWT токенами ## Работа с JWT токенами

2
docs_src/security/tutorial004.py

@ -20,7 +20,7 @@ fake_users_db = {
"username": "johndoe", "username": "johndoe",
"full_name": "John Doe", "full_name": "John Doe",
"email": "johndoe@example.com", "email": "johndoe@example.com",
"hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW", "hashed_password": "$argon2id$v=19$m=65536,t=3,p=4$wagCPXjifgvUFBzq4hqe3w$CYaIb8sB+wtD+Vu/P4uod1+Qof8h+1g7bbDlBID48Rc",
"disabled": False, "disabled": False,
} }
} }

2
docs_src/security/tutorial004_an.py

@ -21,7 +21,7 @@ fake_users_db = {
"username": "johndoe", "username": "johndoe",
"full_name": "John Doe", "full_name": "John Doe",
"email": "johndoe@example.com", "email": "johndoe@example.com",
"hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW", "hashed_password": "$argon2id$v=19$m=65536,t=3,p=4$wagCPXjifgvUFBzq4hqe3w$CYaIb8sB+wtD+Vu/P4uod1+Qof8h+1g7bbDlBID48Rc",
"disabled": False, "disabled": False,
} }
} }

2
docs_src/security/tutorial004_an_py310.py

@ -20,7 +20,7 @@ fake_users_db = {
"username": "johndoe", "username": "johndoe",
"full_name": "John Doe", "full_name": "John Doe",
"email": "johndoe@example.com", "email": "johndoe@example.com",
"hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW", "hashed_password": "$argon2id$v=19$m=65536,t=3,p=4$wagCPXjifgvUFBzq4hqe3w$CYaIb8sB+wtD+Vu/P4uod1+Qof8h+1g7bbDlBID48Rc",
"disabled": False, "disabled": False,
} }
} }

2
docs_src/security/tutorial004_an_py39.py

@ -20,7 +20,7 @@ fake_users_db = {
"username": "johndoe", "username": "johndoe",
"full_name": "John Doe", "full_name": "John Doe",
"email": "johndoe@example.com", "email": "johndoe@example.com",
"hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW", "hashed_password": "$argon2id$v=19$m=65536,t=3,p=4$wagCPXjifgvUFBzq4hqe3w$CYaIb8sB+wtD+Vu/P4uod1+Qof8h+1g7bbDlBID48Rc",
"disabled": False, "disabled": False,
} }
} }

2
docs_src/security/tutorial004_py310.py

@ -19,7 +19,7 @@ fake_users_db = {
"username": "johndoe", "username": "johndoe",
"full_name": "John Doe", "full_name": "John Doe",
"email": "johndoe@example.com", "email": "johndoe@example.com",
"hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW", "hashed_password": "$argon2id$v=19$m=65536,t=3,p=4$wagCPXjifgvUFBzq4hqe3w$CYaIb8sB+wtD+Vu/P4uod1+Qof8h+1g7bbDlBID48Rc",
"disabled": False, "disabled": False,
} }
} }

4
docs_src/security/tutorial005.py

@ -24,14 +24,14 @@ fake_users_db = {
"username": "johndoe", "username": "johndoe",
"full_name": "John Doe", "full_name": "John Doe",
"email": "johndoe@example.com", "email": "johndoe@example.com",
"hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW", "hashed_password": "$argon2id$v=19$m=65536,t=3,p=4$wagCPXjifgvUFBzq4hqe3w$CYaIb8sB+wtD+Vu/P4uod1+Qof8h+1g7bbDlBID48Rc",
"disabled": False, "disabled": False,
}, },
"alice": { "alice": {
"username": "alice", "username": "alice",
"full_name": "Alice Chains", "full_name": "Alice Chains",
"email": "alicechains@example.com", "email": "alicechains@example.com",
"hashed_password": "$2b$12$gSvqqUPvlXP2tfVFaWK1Be7DlH.PKZbv5H8KnzzVgXXbVxpva.pFm", "hashed_password": "$argon2id$v=19$m=65536,t=3,p=4$g2/AV1zwopqUntPKJavBFw$BwpRGDCyUHLvHICnwijyX8ROGoiUPwNKZ7915MeYfCE",
"disabled": True, "disabled": True,
}, },
} }

4
docs_src/security/tutorial005_an.py

@ -25,14 +25,14 @@ fake_users_db = {
"username": "johndoe", "username": "johndoe",
"full_name": "John Doe", "full_name": "John Doe",
"email": "johndoe@example.com", "email": "johndoe@example.com",
"hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW", "hashed_password": "$argon2id$v=19$m=65536,t=3,p=4$wagCPXjifgvUFBzq4hqe3w$CYaIb8sB+wtD+Vu/P4uod1+Qof8h+1g7bbDlBID48Rc",
"disabled": False, "disabled": False,
}, },
"alice": { "alice": {
"username": "alice", "username": "alice",
"full_name": "Alice Chains", "full_name": "Alice Chains",
"email": "alicechains@example.com", "email": "alicechains@example.com",
"hashed_password": "$2b$12$gSvqqUPvlXP2tfVFaWK1Be7DlH.PKZbv5H8KnzzVgXXbVxpva.pFm", "hashed_password": "$argon2id$v=19$m=65536,t=3,p=4$g2/AV1zwopqUntPKJavBFw$BwpRGDCyUHLvHICnwijyX8ROGoiUPwNKZ7915MeYfCE",
"disabled": True, "disabled": True,
}, },
} }

4
docs_src/security/tutorial005_an_py310.py

@ -24,14 +24,14 @@ fake_users_db = {
"username": "johndoe", "username": "johndoe",
"full_name": "John Doe", "full_name": "John Doe",
"email": "johndoe@example.com", "email": "johndoe@example.com",
"hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW", "hashed_password": "$argon2id$v=19$m=65536,t=3,p=4$wagCPXjifgvUFBzq4hqe3w$CYaIb8sB+wtD+Vu/P4uod1+Qof8h+1g7bbDlBID48Rc",
"disabled": False, "disabled": False,
}, },
"alice": { "alice": {
"username": "alice", "username": "alice",
"full_name": "Alice Chains", "full_name": "Alice Chains",
"email": "alicechains@example.com", "email": "alicechains@example.com",
"hashed_password": "$2b$12$gSvqqUPvlXP2tfVFaWK1Be7DlH.PKZbv5H8KnzzVgXXbVxpva.pFm", "hashed_password": "$argon2id$v=19$m=65536,t=3,p=4$g2/AV1zwopqUntPKJavBFw$BwpRGDCyUHLvHICnwijyX8ROGoiUPwNKZ7915MeYfCE",
"disabled": True, "disabled": True,
}, },
} }

4
docs_src/security/tutorial005_an_py39.py

@ -24,14 +24,14 @@ fake_users_db = {
"username": "johndoe", "username": "johndoe",
"full_name": "John Doe", "full_name": "John Doe",
"email": "johndoe@example.com", "email": "johndoe@example.com",
"hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW", "hashed_password": "$argon2id$v=19$m=65536,t=3,p=4$wagCPXjifgvUFBzq4hqe3w$CYaIb8sB+wtD+Vu/P4uod1+Qof8h+1g7bbDlBID48Rc",
"disabled": False, "disabled": False,
}, },
"alice": { "alice": {
"username": "alice", "username": "alice",
"full_name": "Alice Chains", "full_name": "Alice Chains",
"email": "alicechains@example.com", "email": "alicechains@example.com",
"hashed_password": "$2b$12$gSvqqUPvlXP2tfVFaWK1Be7DlH.PKZbv5H8KnzzVgXXbVxpva.pFm", "hashed_password": "$argon2id$v=19$m=65536,t=3,p=4$g2/AV1zwopqUntPKJavBFw$BwpRGDCyUHLvHICnwijyX8ROGoiUPwNKZ7915MeYfCE",
"disabled": True, "disabled": True,
}, },
} }

4
docs_src/security/tutorial005_py310.py

@ -23,14 +23,14 @@ fake_users_db = {
"username": "johndoe", "username": "johndoe",
"full_name": "John Doe", "full_name": "John Doe",
"email": "johndoe@example.com", "email": "johndoe@example.com",
"hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW", "hashed_password": "$argon2id$v=19$m=65536,t=3,p=4$wagCPXjifgvUFBzq4hqe3w$CYaIb8sB+wtD+Vu/P4uod1+Qof8h+1g7bbDlBID48Rc",
"disabled": False, "disabled": False,
}, },
"alice": { "alice": {
"username": "alice", "username": "alice",
"full_name": "Alice Chains", "full_name": "Alice Chains",
"email": "alicechains@example.com", "email": "alicechains@example.com",
"hashed_password": "$2b$12$gSvqqUPvlXP2tfVFaWK1Be7DlH.PKZbv5H8KnzzVgXXbVxpva.pFm", "hashed_password": "$argon2id$v=19$m=65536,t=3,p=4$g2/AV1zwopqUntPKJavBFw$BwpRGDCyUHLvHICnwijyX8ROGoiUPwNKZ7915MeYfCE",
"disabled": True, "disabled": True,
}, },
} }

4
docs_src/security/tutorial005_py39.py

@ -24,14 +24,14 @@ fake_users_db = {
"username": "johndoe", "username": "johndoe",
"full_name": "John Doe", "full_name": "John Doe",
"email": "johndoe@example.com", "email": "johndoe@example.com",
"hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW", "hashed_password": "$argon2id$v=19$m=65536,t=3,p=4$wagCPXjifgvUFBzq4hqe3w$CYaIb8sB+wtD+Vu/P4uod1+Qof8h+1g7bbDlBID48Rc",
"disabled": False, "disabled": False,
}, },
"alice": { "alice": {
"username": "alice", "username": "alice",
"full_name": "Alice Chains", "full_name": "Alice Chains",
"email": "alicechains@example.com", "email": "alicechains@example.com",
"hashed_password": "$2b$12$gSvqqUPvlXP2tfVFaWK1Be7DlH.PKZbv5H8KnzzVgXXbVxpva.pFm", "hashed_password": "$argon2id$v=19$m=65536,t=3,p=4$g2/AV1zwopqUntPKJavBFw$BwpRGDCyUHLvHICnwijyX8ROGoiUPwNKZ7915MeYfCE",
"disabled": True, "disabled": True,
}, },
} }

Loading…
Cancel
Save