Class SCryptImplementation
- java.lang.Object
-
- org.apache.openmeetings.util.crypt.SCryptImplementation
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfallback(String str, String hash)Verify string passed is matches given hash (using fallback crypt mechanism)Stringhash(String str)Creates hash of given stringStringrandomPassword(int length)booleanverify(String str, String hash)Verify string passed is matches given hash
-
-
-
Method Detail
-
hash
public String hash(String str)
Description copied from interface:ICryptCreates hash of given string
-
verify
public boolean verify(String str, String hash)
Description copied from interface:ICryptVerify string passed is matches given hash
-
fallback
public boolean fallback(String str, String hash)
Description copied from interface:ICryptVerify string passed is matches given hash (using fallback crypt mechanism)
-
randomPassword
public String randomPassword(int length)
- Specified by:
randomPasswordin interfaceICrypt
-
-