Skip to content

dce/one-timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Command-line programs for One-Time Pad encryption

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages