工作中因第三方文档需要,使用到了HMAC的加密方法:
注:可能会用到字符数组与字符串的转换
附://string 转 byte[]
String str = "Hello";
byte[] srtbyte = str.getBytes();
// byte[] 转 string
String res = new String(srtbyte);


工作中因第三方文档需要,使用到了HMAC的加密方法:
注:可能会用到字符数组与字符串的转换
附://string 转 byte[]
String str = "Hello";
byte[] srtbyte = str.getBytes();
// byte[] 转 string
String res = new String(srtbyte);
本文标题:HMAC方法加密相关
本文链接:https://www.haomeiwen.com/subject/gzrgextx.html
网友评论