encryptTo
Encrypt a message using AES without sending it.
Request:
requestType is encryptTo
recipient is the account ID of the recipient.
messageToEncrypt is 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
messageToEncryptIsText is false if the message to encrypt is a hex string, true if the encrypted message is text
secretPhrase is the secret passphrase of the recipient
Response:
(S) data is the AES-encrypted data
(S) nonce is the 32-byte pseudorandom nonce
(N) requestProcessingTime is the API request processing time (in millisec)
Example:
Request:
http://localhost:801/BEAM?requestType=encryptTo&recipient=15323192282528158131&messageToEncrypt=This%20is%20a%20message%20encrypted%20using%20%22encryptTo%22.&messageToEncryptIsText=true&secretPhrase=IWontTellYou
Response:
{ “data”: “d5a1958d12ce96ce30dbce5b6c8ead7ecbc0f59d857dc8e8fbeec10ae440e0e74e9120fef3b0fa586d4c63fde0f289340e709b30ae528e3c2d740b11e3ae3fdb5e5d5c63f724cf16157c75dabec31eaf”, “requestProcessingTime”: 34, “nonce”: “7cefa6f66d5b71604e2ef56a18319b3f48a38e8aa5cf610369b294f1d40e0f8e” }
Last updated