started docs!
This commit is contained in:
21
content/docs/macros/MV_ENC_STR.md
Normal file
21
content/docs/macros/MV_ENC_STR.md
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
weight: 100
|
||||
title: "MV_ENC_STR"
|
||||
description: "Encrypts strings"
|
||||
icon: "article"
|
||||
date: "2025-05-01T18:47:58-05:00"
|
||||
lastmod: "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
|
||||
```lua
|
||||
local getKey = MV_VM(function()
|
||||
return "pass" .. "word123"
|
||||
end)
|
||||
|
||||
return MV_ENC_STR("hello world", "password123", getKey())
|
||||
```
|
Reference in New Issue
Block a user