/encryptedmessages

Quick and dirty example, encrypt text messages between two parties on the web

Primary LanguageTypeScript

encryptedmessages

Short example, encrypt text messages between two parties on the web using Web Crypto and React. The Crypto interface represents basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.

Purely educational code. image

Install dependencies

npm install

Start local dev server

npm start

Build to "production"

npm run build

Test

npm test open local browser at http://localhost:1234 check the code in test.tsx

Honor to Matheus C.

Lots of crypto example code in this project is copy pasted from this wonderful blog entry https://getstream.io/blog/web-crypto-api-chat/