Skip to main content

Encrypt Plaintext Script and Return Download URI

  • Description

    POST /encript HTTP/1.1
    args: {"no_strip":true|false,"filename":"UTF8-URIEncoded filename"}

    [script content]
  • Possible Responses

    • Success: status code 200 with body
      {
      "code":0,
      "message":"Success",
      "download_uri":"/download_encript" // download encrypted file via this URI
      }
    • Failure: status code 400 with body
      {"code":2,"message":"Operation failed"}
      {"code":2,"message":"Syntax error in script","detail":"specific error details"}
      {"code":13,"message":"Another encryption is in progress..."}
  • Notes

    • args:
      • no_strip: when true, keep debug info (error shows line info). Default false
      • filename: the filename to use when downloading via the returned URI; must be URI-encoded