Package org.apache.ofbiz.base.crypto
Class HashCrypt
java.lang.Object
org.apache.ofbiz.base.crypto.HashCrypt
Utility class for doing SHA-1/PBKDF2 One-Way Hash Encryption
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
comparePassword
(String crypted, String defaultCrypt, String password) static String
cryptBytes
(String hashType, String salt, byte[] bytes) static String
cryptPassword
(String hashType, String salt, String password) Deprecated.static String
static String
cryptValue
(String hashType, String salt, String value) static String
digestHash
(String hashType, byte[] bytes) static String
digestHash
(String hashType, String code, String str) static String
digestHash64
(String hashType, byte[] bytes) static String
digestHashOldFunnyHex
(String hashType, String str) static boolean
doComparePbkdf2
(String crypted, String password) static String
getDigestHashOldFunnyHexEncode
(String str, String hashType) Deprecated.use digestHashOldFunnyHex(hashType, str)static String
getHashTypeFromPrefix
(String hashString) Deprecated.use cryptPasswordstatic String
pbkdf2HashCrypt
(String hashType, String salt, String value) static String
removeHashTypePrefix
(String hashString) Deprecated.use cryptPassword
-
Constructor Details
-
HashCrypt
public HashCrypt()
-
-
Method Details
-
comparePassword
-
cryptPassword
Deprecated. -
cryptUTF8
-
cryptValue
-
cryptBytes
-
pbkdf2HashCrypt
-
doComparePbkdf2
-
digestHash
-
digestHash
-
digestHash64
-
getHashTypeFromPrefix
Deprecated.use cryptPassword -
removeHashTypePrefix
Deprecated.use cryptPassword -
getDigestHashOldFunnyHexEncode
Deprecated.use digestHashOldFunnyHex(hashType, str) -
digestHashOldFunnyHex
-