public static string DecryptFileAsString(
SymmetricAlgorithm algorithm,
FileInfo srcFile,
string key
)
Public Shared Function DecryptFileAsString (
algorithm As SymmetricAlgorithm,
srcFile As FileInfo,
key As String
) As String
Dim algorithm As SymmetricAlgorithm
Dim srcFile As FileInfo
Dim key As String
Dim returnValue As String
returnValue = UtilEncryption.DecryptFileAsString(algorithm,
srcFile, key)
public:
static String^ DecryptFileAsString(
SymmetricAlgorithm^ algorithm,
FileInfo^ srcFile,
String^ key
)
static member DecryptFileAsString :
algorithm : SymmetricAlgorithm *
srcFile : FileInfo *
key : string -> string
No code example is currently available or this language may not be supported.
[Missing <returns> documentation for "M:DevCase.Core.Security.Cryptography.Encryption.UtilEncryption.DecryptFileAsString(System.Security.Cryptography.SymmetricAlgorithm,System.IO.FileInfo,System.String)"]
No code example is currently available or this language may not be supported.
Dim srcFile As New FileInfo("C:\Encrypted.txt")
Dim key As String = "MyKey"
Dim algorithm As New DESCryptoServiceProvider()
Dim decrypted As String = DecryptFileAsString(algorithm, srcFile.FullName, key)
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 |