Class Hashs

java.lang.Object
me.saro.kit.hashs.Hashs

public class Hashs
extends java.lang.Object
Since:
1.0.0
Author:
PARK Yong Seo
  • Constructor Summary

    Constructors 
    Constructor Description
    Hashs()  
  • Method Summary

    Modifier and Type Method Description
    static byte[] toHash​(HashAlgorithm hashAlgorithm, byte[] data)
    to Hash
    static byte[] toHash​(HashAlgorithm hashAlgorithm, java.lang.String text)
    to Hash
    charset is UTF-8
    static byte[] toHash​(HashAlgorithm hashAlgorithm, java.lang.String text, java.lang.String charset)
    to Hash
    static java.lang.String toHashBase64​(HashAlgorithm hashAlgorithm, java.lang.String text)
    toHashBase64
    static java.lang.String toHashBase64​(HashAlgorithm hashAlgorithm, java.lang.String text, java.lang.String charset)
    toHashBase64
    static java.lang.String toHashHex​(HashAlgorithm hashAlgorithm, java.lang.String text)
    toHashHex
    static java.lang.String toHashHex​(HashAlgorithm hashAlgorithm, java.lang.String text, java.lang.String charset)
    toHashHex

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • toHash

      public static byte[] toHash​(HashAlgorithm hashAlgorithm, byte[] data)
      to Hash
      Parameters:
      hashAlgorithm - hashAlgorithm
      data - data
      Returns:
    • toHash

      public static byte[] toHash​(HashAlgorithm hashAlgorithm, java.lang.String text, java.lang.String charset)
      to Hash
      Parameters:
      hashAlgorithm - hashAlgorithm
      text - text
      charset - charset
      Returns:
    • toHash

      public static byte[] toHash​(HashAlgorithm hashAlgorithm, java.lang.String text)
      to Hash
      charset is UTF-8
      Parameters:
      hashAlgorithm - hashAlgorithm
      text - text
      Returns:
    • toHashHex

      public static java.lang.String toHashHex​(HashAlgorithm hashAlgorithm, java.lang.String text, java.lang.String charset)
      toHashHex
      Parameters:
      hashAlgorithm - hashAlgorithm
      text - text
      Returns:
    • toHashHex

      public static java.lang.String toHashHex​(HashAlgorithm hashAlgorithm, java.lang.String text)
      toHashHex
      Parameters:
      hashAlgorithm - hashAlgorithm
      text - text
      Returns:
    • toHashBase64

      public static java.lang.String toHashBase64​(HashAlgorithm hashAlgorithm, java.lang.String text, java.lang.String charset)
      toHashBase64
      Parameters:
      hashAlgorithm - hashAlgorithm
      text - text
      Returns:
      Since:
      1.0.0
    • toHashBase64

      public static java.lang.String toHashBase64​(HashAlgorithm hashAlgorithm, java.lang.String text)
      toHashBase64
      Parameters:
      hashAlgorithm - hashAlgorithm
      text - text
      Returns: