Expand description
§Onetime-cli
Encrypt / decrypt files using the one-time pad.
§Usage
The simplest way to encrypt a file called secret.txt is:
onetime-cli encrypt secret.txtwhich will generate two new files secret.txt.otp.0 and secret.txt.otp.1. You can then delete secret.txt.
To decrypt secret.txt, run:
onetime-cli decrypt secret.txtwhich will use the two secret.txt.otp.* files to decrypt secret.txt. You can then delete these two files.
To see more possible cli arguments, run:
onetime-cli --helpStructs§
- Config
- Configuration passed to encrypt_fileordecrypt_file
- IoError
- Variant of Errorrepresenting an error that occurred during file I/O
Enums§
- Error
- Crate specific error type
Functions§
- decrypt
- Decrypts data using the one-time pad.
- decrypt_file 
- Decrypts a file using the options wrapped in a Config.
- encrypt
- Encrypts data using the one-time pad.
- encrypt_file 
- Encrypts a file using the options wrapped in a Config.