Command-line programs for One-Time Pad encryption
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Makefile
README.md
crack.c
decrypt.c
encrypt.c
otp.h

README.md

OneTimer

Command-line C programs for doing encryption and decryption using the one-time pad (OTP).

It consists of three programs:

  1. encrypt takes a key and a plaintext and returns a ciphertext:
> ./encrypt -k f00bd00b -p "Derp"  
b46ea27b
  1. decrypt takes a key and a ciphertext and returns a plaintext:
> ./decrypt -k f00bd00b -c b46ea27b  
Derp
  1. crack takes a plaintext and a ciphertext and returns a key:
> ./crack -p "Derp" -c b46ea27b  
f00bd00b

Though the one-time pad has perfect secrecy, please don't use this for anything serious.