程序包 org.coodex.util
类 DigestHelper
java.lang.Object
org.coodex.util.DigestHelper
- 作者:
- davidoff
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
DigestHelper
public DigestHelper()
-
-
方法详细资料
-
digest
获取信息摘要- 参数:
buf- 内容algorithm- 摘要算法- 返回:
- 信息摘要
- 从以下版本开始:
- 1.1.0[2011-9-15]
-
digestBuff
-
sha1
-
sha256
-
md5
-
hmac
public static byte[] hmac(byte[] content, byte[] key, String algorithm) throws NoSuchAlgorithmException, InvalidKeyException -
hmac
public static byte[] hmac(byte[] content, byte[] key) throws NoSuchAlgorithmException, InvalidKeyException -
hmac
public static String hmac(String content, String key, String algorithm, String encoding) throws UnsupportedEncodingException, InvalidKeyException, NoSuchAlgorithmException -
hmac
public static String hmac(String content, String key, String algorithm) throws UnsupportedEncodingException, InvalidKeyException, NoSuchAlgorithmException -
hmac
public static String hmac(String content, String key) throws UnsupportedEncodingException, NoSuchAlgorithmException, InvalidKeyException
-