Class PasswordUtil
java.lang.Object
org.eblocker.server.http.security.PasswordUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]static byte[]hashPassword(char[] password, byte[] salt) static byte[]hashPassword(String password) static booleanverifyPassword(String password, byte[] passwordHash)
-
Constructor Details
-
PasswordUtil
public PasswordUtil()
-
-
Method Details
-
generateSalt
public static byte[] generateSalt() -
hashPassword
-
verifyPassword
-
hashPassword
public static byte[] hashPassword(char[] password, byte[] salt)
-