Package me.saro.kit.hashs
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 Hashstatic byte[]toHash(HashAlgorithm hashAlgorithm, java.lang.String text)to Hash
charset is UTF-8static byte[]toHash(HashAlgorithm hashAlgorithm, java.lang.String text, java.lang.String charset)to Hashstatic java.lang.StringtoHashBase64(HashAlgorithm hashAlgorithm, java.lang.String text)toHashBase64static java.lang.StringtoHashBase64(HashAlgorithm hashAlgorithm, java.lang.String text, java.lang.String charset)toHashBase64static java.lang.StringtoHashHex(HashAlgorithm hashAlgorithm, java.lang.String text)toHashHexstatic java.lang.StringtoHashHex(HashAlgorithm hashAlgorithm, java.lang.String text, java.lang.String charset)toHashHex
-
Constructor Details
-
Hashs
public Hashs()
-
-
Method Details
-
toHash
to Hash- Parameters:
hashAlgorithm- hashAlgorithmdata- data- Returns:
-
toHash
public static byte[] toHash(HashAlgorithm hashAlgorithm, java.lang.String text, java.lang.String charset)to Hash- Parameters:
hashAlgorithm- hashAlgorithmtext- textcharset- charset- Returns:
-
toHash
to Hash
charset is UTF-8- Parameters:
hashAlgorithm- hashAlgorithmtext- text- Returns:
-
toHashHex
public static java.lang.String toHashHex(HashAlgorithm hashAlgorithm, java.lang.String text, java.lang.String charset)toHashHex- Parameters:
hashAlgorithm- hashAlgorithmtext- text- Returns:
-
toHashHex
toHashHex- Parameters:
hashAlgorithm- hashAlgorithmtext- text- Returns:
-
toHashBase64
public static java.lang.String toHashBase64(HashAlgorithm hashAlgorithm, java.lang.String text, java.lang.String charset)toHashBase64- Parameters:
hashAlgorithm- hashAlgorithmtext- text- Returns:
- Since:
- 1.0.0
-
toHashBase64
toHashBase64- Parameters:
hashAlgorithm- hashAlgorithmtext- text- Returns:
-