This method encrypts the wide string with an XOR cipher and returns the result.
function WString:Xor(key)
key
: The encryption key.Returns the encrypted string.
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())