Gitiles
Code Review
Sign In
192.168.1.100
/
T108
/
e958203796650e3959a43708d67534bf36f4c83b
/
.
/
external
/
subpack
/
lang
/
python
/
python-bcrypt
/
test.sh
blob: 0f59e743f81569b45d2f9ddd2db7138ef4f27b22 [
file
] [
log
] [
blame
]
#!/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