UtilEncryptionDecryptFile(SymmetricAlgorithm, 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(
SymmetricAlgorithm algorithm,
FileInfo srcFile,
FileInfo dstFile,
string key
)
Public Shared Sub DecryptFile (
algorithm As SymmetricAlgorithm,
srcFile As FileInfo,
dstFile As FileInfo,
key As String
)
Dim algorithm As SymmetricAlgorithm
Dim srcFile As FileInfo
Dim dstFile As FileInfo
Dim key As String
UtilEncryption.DecryptFile(algorithm, srcFile,
dstFile, key)
public:
static void DecryptFile(
SymmetricAlgorithm^ algorithm,
FileInfo^ srcFile,
FileInfo^ dstFile,
String^ key
)
static member DecryptFile :
algorithm : SymmetricAlgorithm *
srcFile : FileInfo *
dstFile : FileInfo *
key : string -> unit
No code example is currently available or this language may not be supported.
Parameters
- algorithm SymmetricAlgorithm
-
The SymmetricAlgorithm.
- srcFile FileInfo
-
The source file.
- dstFile FileInfo
-
The destination file.
- key String
-
The key.
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"
Dim algorithm As New DESCryptoServiceProvider()
DecryptFile(algorithm, 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
|