mirror of
https://github.com/openwrt/packages.git
synced 2026-10-13 03:37:43 +04:00
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 6b3da46777)
12 lines
236 B
Bash
12 lines
236 B
Bash
#!/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
|