public class PassEncryptUtil
extends java.lang.Object
https://github.com/defuse/password-hashing/blob/master/PasswordStorage.java
Modifier and Type | Class and Description |
---|---|
static class |
PassEncryptUtil.CannotPerformOperationException |
static class |
PassEncryptUtil.InvalidHashException |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
createHash(java.lang.String password) |
static boolean |
verifyPassword(java.lang.String password,
java.lang.String correctHash) |
public static java.lang.String createHash(java.lang.String password) throws PassEncryptUtil.CannotPerformOperationException
public static boolean verifyPassword(java.lang.String password, java.lang.String correctHash) throws PassEncryptUtil.CannotPerformOperationException, PassEncryptUtil.InvalidHashException