/// <summary> /// Create ase key /// </summary> /// <returns></returns> public static AESKey CreateKey() { return(new AESKey() { Key = CryptoHelper.GetRandomStr(32), IV = CryptoHelper.GetRandomStr(16) }); }
/// <summary> /// Create des iv /// </summary> /// <returns></returns> public static string CreateDesIv() { return(CryptoHelper.GetRandomStr(8)); }
/// <summary> /// Create des key /// </summary> /// <returns></returns> public static string CreateDesKey() { return(CryptoHelper.GetRandomStr(24)); }