Class: WString
Lua
C++
Edit

WString:Xor

This method encrypts the wide string with an XOR cipher and returns the result.

Syntax

function WString:Xor(key)

Parameters

Returns

Returns the encrypted string.

Example

local password = WString("HaikuMockingBonanzaTumble")
local key = WString("d'U0)Ez[^?2?=^X|y49dKurq9mASp`5}")
local encrypted = password:Xor(key)

print("Encrypted string: " .. encrypted:GetString())

local decrypted = encrypted:Xor(key)
print("Decrypted string: " .. decrypted:GetString())
Copyright © 2024 Ultra Software.
All rights reserved.