- 博客(3)
- 收藏
- 关注
原创 [winphone][C#]MAC算法的实现
本算法基于DES,3DES算法。 函数签名(其中hexContent指需要计算MAC的16进制字符串,hexKey为16进制密钥串-长度16字节) public static string MAC(string hexContent, string hexKey) 初始化偏移 string hexIv = "0000000000000000"; 初始化填充 string hexPadd
2013-11-14 14:42:41 2520
原创 [winphone][C#] RSA加密与解密
RSA加密(分片加密,每片最大长度117) const int RSA_PIECE_LENGTH = 117;//xml格式的密钥 public static byte[] RSAEncypt(byte[] contentBytes, string key) { RSACryptoServiceProvider rsa = new RSACryptoSe
2013-11-14 14:28:12 718
原创 [winphone][C#] 将明文字节串转换成不带主账号的pinblock格式
public static byte[] PinBlockWithoutAccount(string pin) { List pinblockList = new List(); pinblockList.Add(Convert.ToByte(pin.Length)); for (int i = 0; i <
2013-11-14 14:24:49 1122
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人