DEV Community

Discussion on: Message Encryption in JavaScript and PHP

Collapse
 
brzuchal profile image
Michał Brzuchalski

Shouldn't sendEncryptedMessage() function send content of encrypted variable in JSON? Currently in example it sends unencrypted message.

Collapse
 
paragoniescott profile image
Scott Arciszewski

Yep! That was a pasto. I originally stored the ciphertext in message then refactored it to make it easier to read.