UtilEncryptionXorEncryptOrDecrypt Method
Encrypts or decrypts a string using XOR 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 XorEncryptOrDecrypt(
string text,
int key
)
Public Shared Function XorEncryptOrDecrypt (
text As String,
key As Integer
) As String
Dim text As String
Dim key As Integer
Dim returnValue As String
returnValue = UtilEncryption.XorEncryptOrDecrypt(text,
key)
public:
static String^ XorEncryptOrDecrypt(
String^ text,
int key
)
static member XorEncryptOrDecrypt :
text : string *
key : int -> string
No code example is currently available or this language may not be supported.
- text String
-
The text to encrypt or decrypt.
- key Int32
-
The key to use for encryption or decryption.
String
The resulting encrypted or decrypted string.
This is a code example.
No code example is currently available or this language may not be supported.
Dim str As String = "Hello World"
Dim encrypted As String = XorText(str, 1) ' Result: "Idmmn!Vnsme"
Dim decrypted As String = XorText(encrypted, 1) ' 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.