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) boolean
isPasswordCorrect
(String password, String salt, String hash)
-
Constructor Details
-
Bcrypt
public Bcrypt()
-
-
Method Details
-
generateSalt
- Specified by:
generateSalt
in interfacePasswordSecurityAlgorithm
-
calculateHash
- Specified by:
calculateHash
in interfacePasswordSecurityAlgorithm
-
isPasswordCorrect
- Specified by:
isPasswordCorrect
in interfacePasswordSecurityAlgorithm
-