public static string DecryptFileAsString<T>(
FileInfo srcFile,
string key
)
where T : SymmetricAlgorithm
Public Shared Function DecryptFileAsString(Of T As SymmetricAlgorithm) (
srcFile As FileInfo,
key As String
) As String
Dim srcFile As FileInfo
Dim key As String
Dim returnValue As String
returnValue = UtilEncryption.DecryptFileAsString(srcFile,
key)
public:
generic<typename T>
where T : SymmetricAlgorithm
static String^ DecryptFileAsString(
FileInfo^ srcFile,
String^ key
)
static member DecryptFileAsString :
srcFile : FileInfo *
key : string -> string when 'T : SymmetricAlgorithm
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``1(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 decrypted As String = DecryptFileAsString(Of DESCryptoServiceProvider)(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 |