UtilEncryptionPolymorphicStairsDecrypt(String, String, Encoding, UInt32) Method
Decrypts 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 PolymorphicStairsDecrypt(
string str,
string key,
Encoding enc = null,
uint extraRounds = 0
)
Public Shared Function PolymorphicStairsDecrypt (
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.PolymorphicStairsDecrypt(str,
key, enc, extraRounds)
public:
static String^ PolymorphicStairsDecrypt(
String^ str,
String^ key,
Encoding^ enc = nullptr,
unsigned int extraRounds = 0
)
static member PolymorphicStairsDecrypt :
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 decrypt.
- key String
-
The decryption key.
- enc Encoding (Optional)
-
The text Encoding.
- extraRounds UInt32 (Optional)
-
A value that determines how many addtional times you want to decrypt the string.
For exemple, if you want to decrypt it two times, set extraRounds to 1 when calling this function.
String
The decrypted 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.