public static string SymmetricDecrypt<T>(
string str,
string key,
Encoding enc = null
)
where T : SymmetricAlgorithm
Public Shared Function SymmetricDecrypt(Of T As SymmetricAlgorithm) (
str As String,
key As String,
Optional enc As Encoding = Nothing
) As String
Dim str As String
Dim key As String
Dim enc As Encoding
Dim returnValue As String
returnValue = UtilEncryption.SymmetricDecrypt(str,
key, enc)
public:
generic<typename T>
where T : SymmetricAlgorithm
static String^ SymmetricDecrypt(
String^ str,
String^ key,
Encoding^ enc = nullptr
)
static member SymmetricDecrypt :
str : string *
key : string *
?enc : Encoding
(* Defaults:
let _enc = defaultArg enc null
*)
-> 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.SymmetricDecrypt``1(System.String,System.String,System.Text.Encoding)"]
No code example is currently available or this language may not be supported.
dim decrypted1 As String = Decrypt(Of DESCryptoServiceProvider)("HR6KfbLExXZ/FJrCGmB8Xg==", "MyKey") ' Result: "Hello World!"
dim decrypted2 As String = Decrypt(Of RijndaelManaged)("Pcy3lj+10sL16Actia3pCw==", "Key") ' Result: "Hello World!"
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 |