Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 738 Bytes

README.md

File metadata and controls

29 lines (17 loc) · 738 Bytes

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.