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

Fix when the stored password in version 1.0 is verified #40

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

alejandro-miguez
Copy link
Contributor

@alejandro-miguez alejandro-miguez commented Sep 10, 2024

Fix when the stored password in version 1.0 is verified due to the salted is store encoded in hex. The fixed error is due to the byte_size of the compared hashes were different and we had the failure (example below):

exception_from {bondy_password,verify_string,2} {error,badarg}
** exception error: bad argument
     in function  crypto:hash_equals_nif/2
        called as crypto:hash_equals_nif(<<254,76,219,15,117,107,76,4,142,25,228,42,58,32,145,204,
                                           31,208,213,153>>,
                                         <<"f8b1bdd6cb24f1966c44c961f4b629b3e8b120d2">>)

…lted is store encoded in hex. The fixed error is due to the byte_size of the compared hashes were different and we had the failure error:badarg stacktrace:[{crypto,hash_equals_nif ...
@aramallo aramallo merged commit aa7d5af into develop Sep 11, 2024
1 check 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.

2 participants