Skip to content

Commit 6041997

Browse files
committed
update File IO
1 parent b8372ff commit 6041997

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notebooks/Ch10-1-Files.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1849,8 +1849,8 @@
18491849
"source": [
18501850
"salt = get_random_salt()\n",
18511851
"print(f'{salt = }')\n",
1852-
"salted_password = 'P@ssw0rd'+salt\n",
1853-
"hashed_password = get_hashed_password('P@ssw0rd', salt)\n",
1852+
"password = 'P@ssw0rd' # prompt user to enter the password\n",
1853+
"hashed_password = get_hashed_password(password, salt)\n",
18541854
"print(f'{hashed_password = }')"
18551855
]
18561856
},

0 commit comments

Comments
 (0)