Click or drag to resize

CryptographyDecrypt(String, String, Boolean) Method

Decrypts a ciphertext using the default symmetric algorithm.

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,
	bool hasSalt
)

Parameters

cipherText  String
The encrypted text to decrypt.
key  String
The key to decrypt the ciphertext.
hasSalt  Boolean
If true, the ciphertext is assumed to contain a salt string. See RemoveSalt(String)

Return Value

TaskString
A String containing the decrypted plaintext
Remarks
Uses the default encryption algorithm, DES.

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

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

See Also