Commit 2d95809
committed
Add password hashing and verification functions using bcrypt
* Add `generate_password` function to hash passwords
* Add `verify_password` function to check hashed passwords
* Add `generate_random_number` function using secrets module
* Add `generate_random_string` function using secrets module1 parent 6d7d343 commit 2d95809
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments