ChatOTP is a chat protocol designed for anonymity and security through one-time pads. Each client generates a unique one-time key for encryption per session.
Note: This project was created as a part of term project for Cryptography and is not recommended for production purposes as of now.
This repository contains source code for ChatOTP Server. The backend uses PostgresSQL and REST API controllers for handling user data and files respectively.
- Xor Cipher
- Rc4 Cipher
Note: Rc4 cipher generates a keystream which can be used for encryption by combining it with plaintext using bitwise Xor.
- Change origins of CORS to corresponding domain(s) that your client is hosted on.
- Create
data
directory and putdocker-compose.yml
outside thedata
directory. Thedata
directory consists of the database. - Use
docker compose up
to auto start the server. - You can use
docker compose down
to stop the server.