コード例 #1
0
 /// <summary>
 /// 生成秘钥
 /// </summary>
 /// <param name="key">秘钥(base64格式)</param>
 /// <param name="iv">iv向量(base64格式)</param>
 /// <param name="keySize">要生成的KeySize,支持的MinSize:40 MaxSize:128 SkipSize:8</param>
 public static new void Create(out string key, out string iv, int keySize = 96)
 {
     KeyGenerator.CreateSymmetricAlgorithmKey <RC2CryptoServiceProvider>(out key, out iv, keySize);
 }
コード例 #2
0
 /// <summary>
 /// 生成秘钥
 /// </summary>
 /// <param name="key">秘钥(base64格式)</param>
 /// <param name="iv">iv向量(base64格式)</param>
 /// <param name="keySize">要生成的KeySize</param>
 public static void Create(out string key, out string iv, int keySize)
 {
     KeyGenerator.CreateSymmetricAlgorithmKey <T>(out key, out iv, keySize);
 }