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