mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 18:41:20 +00:00
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:
committed by
Tianling Shen
parent
bb278a015c
commit
6b3da46777
11
lang/python/python-bcrypt/test.sh
Normal file
11
lang/python/python-bcrypt/test.sh
Normal 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
|
||||
Reference in New Issue
Block a user