UtilEncryptionDecryptFileT(String, String, 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>(
string srcFilepath,
string dstFilepath,
string key
)
where T : SymmetricAlgorithm
Public Shared Sub DecryptFile(Of T As SymmetricAlgorithm) (
srcFilepath As String,
dstFilepath As String,
key As String
)
Dim srcFilepath As String
Dim dstFilepath As String
Dim key As String
UtilEncryption.DecryptFile(srcFilepath, dstFilepath,
key)
public:
generic<typename T>
where T : SymmetricAlgorithm
static void DecryptFile(
String^ srcFilepath,
String^ dstFilepath,
String^ key
)
static member DecryptFile :
srcFilepath : string *
dstFilepath : string *
key : string -> unit when 'T : SymmetricAlgorithm
No code example is currently available or this language may not be supported.
- srcFilepath String
-
The source filepath.
- dstFilepath String
-
The destination filepath.
- 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"
Dim algorithm As New DESCryptoServiceProvider()
DecryptFile(algorithm, srcFile.FullName, dstFile.FullName, 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
|