Command-line C programs for doing encryption and decryption using the one-time pad (OTP).
It consists of three programs:
encrypt
takes a key and a plaintext and returns a ciphertext:
> ./encrypt -k f00bd00b -p "Derp"
b46ea27b
decrypt
takes a key and a ciphertext and returns a plaintext:
> ./decrypt -k f00bd00b -c b46ea27b
Derp
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.