CryptographyDecryptAsync(String, String, String) Method
Decrypts a ciphertext using a specific symmetric algorithm.
Namespace: InnerDrive.CoreAssembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.2.9017.0
public static Task<string> DecryptAsync(
string cipherText,
string key,
string providerName
)
- cipherText String
- The encrypted text to decrypt.
- key String
- The key to decrypt the ciphertext.
- providerName String
- The type name of any symmetric cryptography provider derived from
SymmetricAlgorithm that will perform the decryption.
TaskStringA
String containing the decrypted plaintext.
The default decryption algorithm is DES.
Any other class derived from SymmetricAlgorithm
can be used instead.
Adapted from work by Frank
Fong and William Rawls of the Code Project.
The cipher text can be any length other than 0;
the key length must be at least MinKeyLength bytes long and no more than
MaxKeyLength bytes long.