2025-05-02 02:25:57 -05:00

534 B

weight title description icon date lastmod
100 MV_ENC_STR Encrypts strings article 2025-05-01T18:47:58-05:00 2025-05-01T18:47:58-05:00

declare function MV_ENC_STR(str: string, encryptKey: string, decryptKey: string): string

will encrypt the passed string constant with the provided encryptKey. Then decryptKey is evaluated at runtime to grab the key.

Valid Usage

local getKey = MV_VM(function()
  return "pass" .. "word123"
end)

return MV_ENC_STR("hello world", "password123", getKey())