UtilEncryptionPolymorphicStairsEncrypt(String, String, Encoding, UInt32) Method
Encrypts a string using Polymorphic Stairs algorithm.
Namespace: DevCase.Core.Security.Cryptography.EncryptionAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string PolymorphicStairsEncrypt(
string str,
string key,
Encoding enc = null,
uint extraRounds = 0
)
Public Shared Function PolymorphicStairsEncrypt (
str As String,
key As String,
Optional enc As Encoding = Nothing,
Optional extraRounds As UInteger = 0
) As String
Dim str As String
Dim key As String
Dim enc As Encoding
Dim extraRounds As UInteger
Dim returnValue As String
returnValue = UtilEncryption.PolymorphicStairsEncrypt(str,
key, enc, extraRounds)
public:
static String^ PolymorphicStairsEncrypt(
String^ str,
String^ key,
Encoding^ enc = nullptr,
unsigned int extraRounds = 0
)
static member PolymorphicStairsEncrypt :
str : string *
key : string *
?enc : Encoding *
?extraRounds : uint32
(* Defaults:
let _enc = defaultArg enc null
let _extraRounds = defaultArg extraRounds 0
*)
-> string
No code example is currently available or this language may not be supported.
- str String
-
The string to encrypt.
- key String
-
The encryption key.
- enc Encoding (Optional)
-
The text Encoding.
- extraRounds UInt32 (Optional)
-
A value that determines how many addtional times you want to encrypt the string.
For exemple, if you want to encrypt it two times, set extraRounds to 1 when calling this function.
String
The encrypted string.
This is a code example.
No code example is currently available or this language may not be supported.
Dim value As String = "Hello World!"
Dim key As String = "key"
Dim encryptedValue As String = PolymorphicStairsEncrypt(value, key)
Console.WriteLine($"{NameOf(encryptedValue)}:{encryptedValue}")
Dim decryptedValue As String = PolymorphicStairsDecrypt(encryptedValue, key)
Console.WriteLine($"{NameOf(decryptedValue)}:{decryptedValue}")
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.