Пример #1
0
 /// <summary>
 /// Create ase key
 /// </summary>
 /// <returns></returns>
 public static AESKey CreateKey()
 {
     return(new AESKey()
     {
         Key = CryptoHelper.GetRandomStr(32),
         IV = CryptoHelper.GetRandomStr(16)
     });
 }
Пример #2
0
 /// <summary>
 /// Create des iv
 /// </summary>
 /// <returns></returns>
 public static string CreateDesIv()
 {
     return(CryptoHelper.GetRandomStr(8));
 }
Пример #3
0
 /// <summary>
 /// Create des key
 /// </summary>
 /// <returns></returns>
 public static string CreateDesKey()
 {
     return(CryptoHelper.GetRandomStr(24));
 }