plic
Use plic to send a one-time secret message.
How it works
- A secret key is generated and used to encrypt the message.
- The encrypted message is sent to the server which hashes it to generate an ID.
- The same hashing is performed in the browser and the ID is used to form the shareable link.
- The secret key is appended to the private part of the link that is never sent to the server.
- When a link is opened, the encrypted message is simultaneously retrieved and deleted from the server.
- The encrypted message is hashed to ensure it matches the ID.
- The secret key in the link is used to decrypt the data and the message is displayed.
Technical details along with source code are available at github.com/mohd-akram/plic.