UtilEncryptionDecryptFileT(FileInfo, FileInfo, String) Method
Decrypts a file using the specified SymmetricAlgorithm
and writes the decrypted data to a destination file.
Namespace: DevCase.Core.Security.Cryptography.EncryptionAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void DecryptFile<T>(
FileInfo srcFile,
FileInfo dstFile,
string key
)
where T : SymmetricAlgorithm
Public Shared Sub DecryptFile(Of T As SymmetricAlgorithm) (
srcFile As FileInfo,
dstFile As FileInfo,
key As String
)
Dim srcFile As FileInfo
Dim dstFile As FileInfo
Dim key As String
UtilEncryption.DecryptFile(srcFile, dstFile,
key)
public:
generic<typename T>
where T : SymmetricAlgorithm
static void DecryptFile(
FileInfo^ srcFile,
FileInfo^ dstFile,
String^ key
)
static member DecryptFile :
srcFile : FileInfo *
dstFile : FileInfo *
key : string -> unit when 'T : SymmetricAlgorithm
No code example is currently available or this language may not be supported.
- srcFile FileInfo
-
The source file.
- dstFile FileInfo
-
The destination file.
- key String
-
The key.
- T
-
The type of SymmetricAlgorithm for decryption.
This is a code example.
No code example is currently available or this language may not be supported.
Dim srcFile As New FileInfo("C:\Encrypted.txt")
Dim dstFile As New FileInfo("C:\Decrypted.txt")
Dim key As String = "MyKey"
DecryptFile(Of DESCryptoServiceProvider)(srcFile, dstFile, key)
' srcFile.Delete()
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
ArgumentNullException
|
key
|