Exemple #1
0
 /// <summary>
 /// Descrypts encrypted data
 /// </summary>
 /// <param name="password">The password used to decrypt data</param>
 /// <param name="data">The data to decrypt</param>
 /// <returns>The decrypted data</returns>
 /// <exception cref="ArgumentNullException"><paramref name="password"/> is null</exception>
 /// <exception cref="ArgumentNullException"><paramref name="data"/> is null</exception>
 public static byte[] Decrypt(SecureString password, byte[] data) =>
 Aes.Decrypt(password, KeyMaterial.DefaultIterations, data);