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
I noticed that using a very large cost with BCrypt::Password.create would not increase the runtime on MRI. When I tested this under JRuby, the Java Extensions would raise a "bad number of rounds" ArgumentError if the cost was over 31. The C extensions should have the same behavior as the Java Extensions.
I noticed that using a very large cost with
BCrypt::Password.create
would not increase the runtime on MRI. When I tested this under JRuby, the Java Extensions would raise a "bad number of rounds"ArgumentError
if the cost was over 31. The C extensions should have the same behavior as the Java Extensions.Steps to Reproduce
Actual Results
MRI
Base:
0.090000 0.000000 0.090000 ( 0.094195)
Midpoint:
+5 minutes
Extreme:
0.000000 0.000000 0.000000 ( 0.001570)
JRuby
Base:
0.295000 0.000000 0.295000 ( 0.296000)
Midpoint:
NativeException: java.lang.IllegalArgumentException: Bad number of rounds
Extreme:
NativeException: java.lang.IllegalArgumentException: Missing salt rounds
The text was updated successfully, but these errors were encountered: