Class Crypto.HASH

java.lang.Object
com.almis.awe.model.util.security.Crypto.HASH
Enclosing class:
Crypto

public static class Crypto.HASH extends Object
HASH
  • Method Details

    • hash

      public static String hash(String message, String algorithm, String salt, Charset encoding) throws AWException
      Create a HASH with algorithm
      Parameters:
      message - Message to hash
      algorithm - algorithm to use
      salt - salt of algorithm
      encoding - charset encoding
      Returns:
      Hash
      Throws:
      AWException - No such algorithm
    • md2Hash

      public static String md2Hash(String message) throws AWException
      Create a HASH with md2Hash
      Parameters:
      message - Message to hash
      Returns:
      Hash
      Throws:
      AWException - No such algorithm
    • md5Hash

      public static String md5Hash(String message) throws AWException
      Create a HASH with md5Hash
      Parameters:
      message - Message to hash
      Returns:
      Hash
      Throws:
      AWException - No such algorithm
    • sha1Hash

      public static String sha1Hash(String message) throws AWException
      Create a HASH with sha1Hash
      Parameters:
      message - Message to hash
      Returns:
      Hash
      Throws:
      AWException - No such algorithm
    • sha256Hash

      public static String sha256Hash(String message) throws AWException
      Create a HASH with sha256Hash
      Parameters:
      message - Message to hash
      Returns:
      Hash
      Throws:
      AWException - No such algorithm
    • sha384Hash

      public static String sha384Hash(String message) throws AWException
      Create a HASH with sha384Hash
      Parameters:
      message - Message to hash
      Returns:
      Hash
      Throws:
      AWException - No such algorithm
    • sha512Hash

      public static String sha512Hash(String message) throws AWException
      Create a HASH with sha512Hash
      Parameters:
      message - Message to hash
      Returns:
      Hash
      Throws:
      AWException - No such algorithm