mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 03:54:34 +04:00
python-bcrypt: Update to 4.1.1
This also updates the test.sh script to use an assert. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
committed by
Tianling Shen
parent
06d839d9ca
commit
4e60ea6d3d
@@ -2,10 +2,11 @@
|
||||
|
||||
[ "$1" = python3-bcrypt ] || exit 0
|
||||
|
||||
python3 - << EOF
|
||||
import sys
|
||||
python3 - << 'EOF'
|
||||
|
||||
import bcrypt
|
||||
password = b"super secret password"
|
||||
hashed = bcrypt.hashpw(password, bcrypt.gensalt())
|
||||
sys.exit(0 if bcrypt.checkpw(password, hashed) else 1)
|
||||
assert bcrypt.checkpw(password, hashed)
|
||||
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user