Add support for bcrypt_sha256
Open
Nobody has claimed this yet.
enhancement
new format
- Dominant language
- C
- Stars
- 13.6k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
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)))
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Use the issue's bcrypt_sha256 example and the stated bcrypt(base64(sha256_raw($plain))) construction as the behavioral reference. Locate the repository's existing password-hash format implementations and related verification tests, then confirm support by matching the supplied hash and password behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- cryptography, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100