Skip to content

One time pad implementation in the Rust programming language for educational purposes

License

Notifications You must be signed in to change notification settings

alexpogue/rust_x_pad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compile

cargo build --release

Usage

One time pad is a theoretically unbreakable encryption technique. It requires the two parties to have previously shared a secret, single-use key at least as long as the message to be encrypted.

This tool lets you generate keys and encode/decode data.

Random keys are hard to produce and the keys generated by this tool are not truly random.

Generate a key:

./rust_x_pad -g SIZE_IN_MB -o OUTPUT_FILE

For example, generate a 100mb key and output to a file ./rust_x_pad -g 100 -o secret.key

Encrypt/decrypt a message:

./rust_x_pad KEY MESSAGE

Both parameters are relative file paths. The message will be encrypted or decrypted with the provided key.

About

One time pad implementation in the Rust programming language for educational purposes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages