Skip to content

Encode and decode a message with a vername cipher (or one-time pad).

License

Notifications You must be signed in to change notification settings

aeyoll/vernam-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vernam cipher

Encode and decode a message with a vername cipher (or one-time pad).

In cryptography, the one-time pad (OTP) is an encryption technique that cannot be cracked, but requires the use of a single-use pre-shared key that is no smaller than the message being sent. In this technique, a plaintext is paired with a random secret key (also referred to as a one-time pad). Then, each bit or character of the plaintext is encrypted by combining it with the corresponding bit or character from the pad using modular addition. Read more on wikipedia

Encrypt

vernam encrypt HELLO WMCKL # Outputs DQNVZ

Decrypt

vernam decrypt DQNVZ WMCKL # Outputs HELLO

About

Encode and decode a message with a vername cipher (or one-time pad).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages