public static string SymmetricEncrypt<T>(
string str,
string key,
Encoding enc = null
)
where T : SymmetricAlgorithm
Public Shared Function SymmetricEncrypt(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.SymmetricEncrypt(str,
key, enc)
public:
generic<typename T>
where T : SymmetricAlgorithm
static String^ SymmetricEncrypt(
String^ str,
String^ key,
Encoding^ enc = nullptr
)
static member SymmetricEncrypt :
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.SymmetricEncrypt``1(System.String,System.String,System.Text.Encoding)"]
No code example is currently available or this language may not be supported.
dim encrypted1 As String = Encrypt(Of AesCryptoServiceProvider)("Hello World!", "MyKey")
dim encrypted2 As String = Encrypt(Of RijndaelManaged)("Hello World!", "MyKey")
dim encrypted3 As String = Encrypt(Of DESCryptoServiceProvider)("Hello World!", "MyKey")
dim encrypted4 As String = Encrypt(Of TripleDESCryptoServiceProvider)("Hello World!", "MyKey")
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 |