Module darken
Encrypted Lua script execution using AES-256-CTR.
This module provides functionality to decrypt and execute Lua scripts encrypted with AES-256 in CTR mode. Scripts are decrypted in-kernel and executed immediately, with the decrypted plaintext never written to persistent storage.
Functions
| run (ciphertext, iv, key) | Decrypts and executes an encrypted Lua script. |
Functions
- run (ciphertext, iv, key)
-
Decrypts and executes an encrypted Lua script.
Parameters:
- ciphertext string encrypted Lua script (binary).
- iv string 16-byte initialization vector (binary).
- key string 32-byte AES-256 key (binary).
Returns:
-
The return values from the executed script.
Raises:
Error if decryption fails or IV/key length is invalid.