Encrypt Plaintext Script
-
Description
POST /encript HTTP/1.1
args: {"no_strip":true|false, "info":{}, "entitlements":{}, "xuic":true|false}
[script content] -
Parameters
no_strip:boolean
When true, keep debug info so stack traces retain line numbers. Default falseinfo:table
Metadata bundled with the script, such asName,Version,Description, etc.entitlements:table
Script permission configurationallow-external-require
If missing or false, only scripts encrypted with the same author certificate mayrequirethis script; if a list, allow scripts signed by the listed authors; if true, allow any script torequire
xuic:boolean
When true, encrypt an XUI file into XUIC format and ignore other parameters. Default falsescript content:string
The plaintext script body to encrypt, sent as the request payload
-
Possible Responses
- Success: status code
200with body[encrypted script content] - Failure: status code
400with body{"code":2,"message":"Syntax error in script","detail":"specific error details"}{"code":13,"message":"Another encryption is in progress..."}
- Success: status code