You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 25, 2021. It is now read-only.
The method SCryptUtil#check produces a different result when the parameter passwd is an empty string depending on whether the native library or pure Java implementation of scrypt is used.
The native library (lib.x86_64/linux/libscrypt.so) works as expected.
The pure Java implementation throws java.lang.IllegalArgumentException: Empty key.
Steps to reproduce:
System.setProperty("com.lambdaworks.jni.loader", "nil");
boolean result = SCryptUtil.check("", "$s0$a0801$uk1+u+tylCxLj/l3I8smTA==$6SaqEZxC6fO89qGEjR25sYym+jXd6491g+1Ufa36sQw=");
assertTrue(result);
The method SCryptUtil#check produces a different result when the parameter
passwd
is an empty string depending on whether the native library or pure Java implementation of scrypt is used.The native library (lib.x86_64/linux/libscrypt.so) works as expected.
The pure Java implementation throws
java.lang.IllegalArgumentException: Empty key
.Steps to reproduce:
I suggest creating the following test case:
The text was updated successfully, but these errors were encountered: