Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python bcrypt

#!/usr/bin/env python

import bcrypt

passwd = b's$cret12'

salt = bcrypt.gensalt()
hashed = bcrypt.hashpw(passwd, salt)

if bcrypt.checkpw(passwd, hashed):
    print("match")
else:
    print("does not match")
Source by zetcode.com #
 
PREVIOUS NEXT
Tagged: #python #bcrypt
ADD COMMENT
Topic
Name
3+9 =