Class Argon2Util
java.lang.Object
eu.locklogin.api.encryption.argon.Argon2Util
LockLogin Argon2 utilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkPassword(String token, HashType type)
Check if the argon password matches with the specified tokenhashPassword(HashType type)
Hash to argon password
-
Constructor Details
-
Argon2Util
Argon 2 utils class- Parameters:
key
- the password/token to use
-
-
Method Details
-
hashPassword
Hash to argon password- Parameters:
type
- the argon password type- Returns:
- the hashed password if it's not argon
-
checkPassword
Check if the argon password matches with the specified token- Parameters:
token
- the player hashed passwordtype
- the encryption type- Returns:
- if the password matches
-