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