Package sk.iway.iwcm.users.crypto
Class Bcrypt
java.lang.Object
sk.iway.iwcm.users.crypto.Bcrypt
- All Implemented Interfaces:
PasswordSecurityAlgorithm
Hashovanie hesiel pomocou bcrypt algoritmu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateHash(String password, String salt) booleanisPasswordCorrect(String password, String salt, String hash)
-
Constructor Details
-
Bcrypt
public Bcrypt()
-
-
Method Details
-
generateSalt
- Specified by:
generateSaltin interfacePasswordSecurityAlgorithm
-
calculateHash
- Specified by:
calculateHashin interfacePasswordSecurityAlgorithm
-
isPasswordCorrect
- Specified by:
isPasswordCorrectin interfacePasswordSecurityAlgorithm
-