UtilEncryptionDecryptFileAsString(SymmetricAlgorithm, FileInfo, String) Method

Decrypts a file using the specified SymmetricAlgorithm and returns the decrypted data as a String.

This method do not modify the contents of the file.

Definition

Namespace: DevCase.Core.Security.Cryptography.Encryption
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string DecryptFileAsString(
	SymmetricAlgorithm algorithm,
	FileInfo srcFile,
	string key
)

Parameters

algorithm  SymmetricAlgorithm
The SymmetricAlgorithm.
srcFile  FileInfo
The source file.
key  String
The key.

Return Value

String

[Missing <returns> documentation for "M:DevCase.Core.Security.Cryptography.Encryption.UtilEncryption.DecryptFileAsString(System.Security.Cryptography.SymmetricAlgorithm,System.IO.FileInfo,System.String)"]

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Exceptions

ArgumentNullException key

See Also