B4J Question [Solved] BCrypt hash error

magi6162

Well-Known Member
Licensed User
Longtime User
This error presents itself this morning, which had never been manifested.
The code has been unchanged for many months.
I can not understand.
B4X:
    Dim HashPassword As BCrypt

   If  HashPassword.CheckPW(inp2.Text,m.Get("pass")) Then   <<<<  ERROR
        'Password ok
'        Log("OK")
    Else
        'passwords dont't match
        AppPage.ShowModalSheet("wronginput")
        ABMShared.SQLClose(DBJWVAL)
        Return
    End If

Waiting for value (103 ms)
Waiting for value (110 ms)
Waiting for value (100 ms)
Waiting for value (101 ms)
Errore nella linea: 446 (ABMApplication)
java.lang.IllegalArgumentException: Invalid salt version
at org.mindrot.jbcrypt.BCrypt.hashpw(BCrypt.java:663)
at org.mindrot.jbcrypt.BCrypt.checkpw(BCrypt.java:768)
at ro.mindful.wrapper.jBCrypt.BCrypt.CheckPW(BCrypt.java:28)
at mc.jw.jwval.abmapplication._msbtn1_clicked(abmapplication.java:1036)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:613)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:231)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:90)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93)
at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:482)
at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:437)
at mc.jw.jwval.abmapplication._page_parseevent(abmapplication.java:1271)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 
Top