工具类
文章平均质量分 75
yingchn
这个作者很懒,什么都没留下…
展开
-
HMACSHA1
public class HMACSHA1 { public static byte[] getHmacSHA1( String data,String key){ byte[] ipadArray = new byte[64]; byte[] opadArray = new byte[64]; byte[] keyArray原创 2012-04-27 20:33:27 · 638 阅读 · 0 评论 -
BASE64
/** * A utility class encodes byte array into String using Base64 encoding scheme. */ public class BASE64Encoder { private static final char last2byte = (char) Integer.parseInt("00000011", 2);原创 2012-04-27 20:28:24 · 301 阅读 · 0 评论 -
SHA1
public class SHA1 { private final int[] abcde = { 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0 }; // 摘要数据存储数组 private int[] digestInt = new int[5]; //原创 2012-04-27 20:32:34 · 414 阅读 · 0 评论