Click or drag to resize

CryptographyDecrypt(String, String) Method

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

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.0.8475.0
Syntax
C#
public static Task<string> Decrypt(
	string cipherText,
	string key
)

Parameters

cipherText  String
The encrypted text to decrypt.
key  String
The key to decrypt the ciphertext.

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