CryptographyDecryptAsync(String, String, CancellationToken) Method

Decrypts a ciphertext using the default symmetric algorithm but no salt.

Definition

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.2.9417.0
C#
public static Task<string> DecryptAsync(
	string cipherText,
	string key,
	CancellationToken cancellationToken = default
)

Parameters

cipherText  String
The encrypted text to decrypt.
key  String
The key to decrypt the ciphertext.
cancellationToken  CancellationToken  (Optional)
A CancellationToken controlling the request lifetime

Return Value

TaskString
A String containing the decrypted plaintext.

Remarks

Uses the default encryption algorithm, DES.

The cipher text can be any length other than 0; the key length must be at least MinKeyLength and no more than MaxKeyLength.

Adapted from work by Frank Fong and William Rawls of the Code Project.

See Also