- All Implemented Interfaces:
ICrypt
public class SCryptImplementation
extends Object
implements ICrypt
-
-
Method Summary
Creates hash of given string
boolean
Verify string passed is matches given hash
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.openmeetings.util.crypt.ICrypt
fallback
-
Method Details
-
hash
Description copied from interface: ICrypt
Creates hash of given string
- Specified by:
hash in interface ICrypt
- Parameters:
str - - string to calculate hash for
- Returns:
- hash of passed string
-
verify
Description copied from interface: ICrypt
Verify string passed is matches given hash
- Specified by:
verify in interface ICrypt
- Parameters:
str - - string to check hash for
hash - - hash to compare
- Returns:
true in case string matches hash, false otherwise
-