Class HashCrypt

java.lang.Object
org.apache.ofbiz.base.crypto.HashCrypt

public class HashCrypt extends Object
Utility class for doing SHA-1/PBKDF2 One-Way Hash Encryption
  • Constructor Details

    • HashCrypt

      public HashCrypt()
  • Method Details

    • comparePassword

      public static boolean comparePassword(String crypted, String defaultCrypt, String password)
    • cryptPassword

      @Deprecated public static String cryptPassword(String hashType, String salt, String password)
      Deprecated.
    • cryptUTF8

      public static String cryptUTF8(String hashType, String salt, String value)
    • cryptValue

      public static String cryptValue(String hashType, String salt, String value)
    • cryptBytes

      public static String cryptBytes(String hashType, String salt, byte[] bytes)
    • pbkdf2HashCrypt

      public static String pbkdf2HashCrypt(String hashType, String salt, String value)
    • doComparePbkdf2

      public static boolean doComparePbkdf2(String crypted, String password)
    • digestHash

      public static String digestHash(String hashType, String code, String str)
    • digestHash

      public static String digestHash(String hashType, byte[] bytes)
    • digestHash64

      public static String digestHash64(String hashType, byte[] bytes)
    • getHashTypeFromPrefix

      @Deprecated public static String getHashTypeFromPrefix(String hashString)
      Deprecated.
      use cryptPassword
    • removeHashTypePrefix

      @Deprecated public static String removeHashTypePrefix(String hashString)
      Deprecated.
      use cryptPassword
    • getDigestHashOldFunnyHexEncode

      @Deprecated public static String getDigestHashOldFunnyHexEncode(String str, String hashType)
      Deprecated.
      use digestHashOldFunnyHex(hashType, str)
    • digestHashOldFunnyHex

      public static String digestHashOldFunnyHex(String hashType, String str)