-
Notifications
You must be signed in to change notification settings - Fork 518
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
Implement ARGON2 hash #1165
Implement ARGON2 hash #1165
Conversation
@ljacqu we are only missing the test class i think |
Looks good so far but it doesn't work yet ;) A hash will never be checked against its password successfully; you need to override You can generate the test class for Argon2 by using |
How? XD |
/** Generates a test class for a given encryption method. Simply create a test class and run the following code,
* replacing {@code XXX} with the actual class:
* <p>
* <code>@org.junit.Test public void generate() { AbstractEncryptionMethodTest.generateTest(new XXX()); }</code>
* <p>
* The output is the entire test class. */ So just create an Argon2Test class, and in it have the code posted above and you're good to go ;) Edit: i.e.,
|
Test is failing, any idea? |
Hopefully fixed it. Reason is the test was confused because Argon2 extends |
#1150