0
0
mirror of https://github.com/openwrt/packages.git synced 2025-07-06 16:23:08 +00:00
Files
Jeffery To 4e60ea6d3d 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>
2023-12-07 15:07:18 +08:00

13 lines
214 B
Bash

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