Home

Encrypt a message using AES without sending it

POST
https://ardr.nownodes.io/nxt

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Body

application/json
jsonrpcstringrequired
methodstringrequired
paramsobjectrequired
Show child attributes
requestTypestring
secretPhrasestring

The secret passphrase of the sender

privateKeystring

The privateKey (hex) of the derived account

recipientstring

The account ID of the recipient

messageToEncryptstring

Either UTF-8 text or a string of hex digits to be compressed and converted into a 1000 byte maximum bytecode then encrypted using AES

messageToEncryptIsTextboolean

False if the message to encrypt is a hex string, otherwise the message to encrypt is text

compressMessageToEncryptboolean

False to prevent gzip compression before encryption

idintegerrequired

Response

200OK

Message encrypted successfully

400Bad Request

Bad Request

401Unauthorized

Unauthorized — Missing or invalid API key

500Internal Server Error

Internal Server Error