Skip to content

Commit

Permalink
Warning about password hashing
Browse files Browse the repository at this point in the history
  • Loading branch information
audreyfeldroy committed Aug 1, 2024
1 parent dcbda4c commit 44f0270
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nbs/2024-07-29-Auth.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": 23,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -108,6 +108,9 @@
" }\n",
" expected_p = users.get(u)\n",
" if expected_p is None: return None\n",
"\n",
" # WARNING: Toy implementation, not secure\n",
" # Pretend we are comparing Argon2 or PBKDF2 hashes\n",
" return p == expected_p\n",
"\n",
"auth = user_pwd_auth(lookup=user_lookup)\n",
Expand Down

0 comments on commit 44f0270

Please sign in to comment.