Check that a plaintext password matches a previously hashed one @param plaintext the plaintext password to verify @param hashed the previously-hashed password @return true if the passwords match, false otherwise
(String plaintext, String hashed)
| 905 | * @return true if the passwords match, false otherwise |
| 906 | */ |
| 907 | public static boolean checkpw(String plaintext, String hashed) { |
| 908 | return equalsNoEarlyReturn(hashed, hashpw(plaintext, hashed)); |
| 909 | } |
| 910 | |
| 911 | static boolean equalsNoEarlyReturn(String a, String b) { |
| 912 | char[] caa = a.toCharArray(); |