UtilEncryptionDecryptFileAsStringT(String, 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<T>(
	string srcFilepath,
	string key
)
where T : SymmetricAlgorithm

Parameters

srcFilepath  String
The source filepath.
key  String
The key.

Type Parameters

T
The type of SymmetricAlgorithm for decryption.

Return Value

String

[Missing <returns> documentation for "M:DevCase.Core.Security.Cryptography.Encryption.UtilEncryption.DecryptFileAsString``1(System.String,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