Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python blowfish

#!/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 #blowfish
ADD COMMENT
Topic
Name
6+6 =