Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for sha256 and test cases #73

Merged
merged 5 commits into from
Apr 22, 2024

Conversation

spacepirate0001
Copy link
Contributor

@spacepirate0001 spacepirate0001 commented Apr 15, 2024

This update introduces a new sha256 field in your resource schema to store the SHA-256 hash of the password concatenated with a salt. The hashing process is added to the repopulateHashes function where the SHA-256 hash is calculated and set in the resource data. Make sure to include error handling and validation as needed.

Added test ensures that:
Each hash attribute (sha256, sha512, apr1, bcrypt) is computed and set as expected based on the input password and salt.
It validates the creation of the password resource with all computed hash outputs.

Closes #72

@spacepirate0001 spacepirate0001 changed the title added support for sha256 and test cases Added support for sha256 and test cases Apr 15, 2024
@spacepirate0001 spacepirate0001 changed the title Added support for sha256 and test cases Add support for sha256 and test cases Apr 15, 2024
@loafoe loafoe merged commit 94340e9 into loafoe:main Apr 22, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support SHA-256
2 participants