decryptFrom
Decrypt an AES-encrypted message.
Request:
requestType is decryptFrom
account is the account ID of the sender
data is the AES-encrypted data
nonce is the unique nonce associated with the encrypted data
decryptedMessageIsText is false if the decrypted message is a hex string, true if the decrypted message is text
secretPhrase is the secret passphrase of the recipient
Response:
(S) decryptedMessage is the decrypted message
(N) requestProcessingTime is the API request processing time (in millisec)
Example:
Request:
http://localhost:801/BEAM?requestType=decryptFrom&account=16922903237994405232&data=d5a1958d12ce96ce30dbce5b6c8ead7ecbc0f59d857dc8e8fbeec10ae440e0e74e9120fef3b0fa586d4c63fde0f289340e709b30ae528e3c2d740b11e3ae3fdb5e5d5c63f724cf16157c75dabec31eaf&nonce=7cefa6f66d5b71604e2ef56a18319b3f48a38e8aa5cf610369b294f1d40e0f8e&decryptedMessageIsText=true&secretPhrase=IWontTellYou
Response:
{ “decryptedMessage”: “This is a message encrypted using \\”encryptTo\\”.”, “requestProcessingTime”: 2 }
Last updated