python-bcrypt: Update to 4.0.1, add myself as maintainer

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
Jeffery To
2023-09-29 10:42:55 +08:00
committed by Tianling Shen
parent bb278a015c
commit 6b3da46777
2 changed files with 18 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/sh
[ "$1" = python3-bcrypt ] || exit 0
python3 - << EOF
import sys
import bcrypt
password = b"super secret password"
hashed = bcrypt.hashpw(password, bcrypt.gensalt())
sys.exit(0 if bcrypt.checkpw(password, hashed) else 1)
EOF