Skip to content

Decrypt data

  • To decrypt any encrypted data use decrypt-data system API.

  • Provide an encrypted string in the requested body and get decrypted data in response.

Request method: POST

You can find 'secretFETransfer' in secret. It can be shared with FE/mobile app, so the backend can decrypt data sent by them, and they can decrypt data shared by the backend.



Request payload

    "data": "U2FsdGVkX19iIBA3FQy3OgFXeE4B2cC8lAfaJjCbMmUllceqb58YwvQqU33PkQEQ"

Decrypt System API

Get decrypted data using global object 'g'.

let decryptedData = await g.sys.system.decrypt("U2FsdGVkX191c+lmyM80ctf4QV18dZ/x17yDh/fRxs4=");

API Response

    "success": true,
    "statusCode": 200,
    "data": {
        "name": "Joseph"