one-time-pad
a simple one-time pad cipher written in nodejs
Rules for this library
- The key and message must only contain alphabetical letters.
- All spaces in message and key will be removed when generating an encrypted message.
- Punctuation and numbers will not be encrypted (in the future it will)
Usage
const pad = ;const secretKey = "ZXYSMMVBSTTVJ";const encryptedMessage = pad;console; // RBAJQFHFKLTBN const decryptedMessage = pad;console; // SECRETMESSAGE
License
MIT