john icon indicating copy to clipboard operation
john copied to clipboard

Add support for bcrypt_sha256

Open AlbertVeli opened this issue 5 years ago • 3 comments

Feature request. Add support for this format. It is used by some web frameworks, like CTFd. Python code for the format:

>>> from passlib.hash import bcrypt_sha256
>>> bcrypt_sha256.hash('john')
'$bcrypt-sha256$2b,12$B2bcgGrxCAOZdbU/TDlP6e$8G1QvMXLUpqw1l79lmIRbFMpw1tJwqS'
>>> bcrypt_sha256.verify('john', '$bcrypt-sha256$2b,12$B2bcgGrxCAOZdbU/TDlP6e$8G1QvMXLUpqw1l79lmIRbFMpw1tJwqS')
True

The format internally uses:

bcrypt(base64(sha256_raw($plain)))

AlbertVeli avatar Sep 11 '19 11:09 AlbertVeli