eyaml-rs

Crates.ioeyaml-rs
lib.rseyaml-rs
version0.1.1
sourcesrc
created_at2020-10-18 02:50:50.246401
updated_at2020-10-18 02:50:50.246401
descriptionRust port of EYAML RubyGem
homepage
repositoryhttps://github.com/evan-chaney/eyaml-rs
max_upload_size
id301794
size40,692
Evan Chaney (evan-chaney)

documentation

README

eyaml-rs

Rust port of the EYAML Ruby Gem. Work in progress!

Installation

Simply run cargo build --release from the root of the repo. (Requires cargo be installed). This will create eyaml-rs at the target/release/eyaml-rs. This binary can be symlinked to a directory in your path to be invoked directly.

Usage

Create your keys

$ target/release/eyaml-rs createkeys
Keys generated and written to files!

If a custom path is not specified, the keys are generated in ./keys, which is also created.

Encrypt a file

$ echo "Here is some text" > encrypt_me.txt
$ target/release/eyaml-rs encrypt -f encrypt_me.txt 
-----BEGIN PKCS7-----
MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBADAFMAACAQAwDQYJ
KoZIhvcNAQEBBQAEggEAh7lHWs2KeuoR8hU9b7B+iENK/6I3JWBwPVc49BySdokI
OhbkhdgPwqXGWE+GyEAP2wzhG1NfPf0C4srLIY9a0OM4u2b0QJuXePJtdezKJijE
nARCp7r4hUhPor4db5bkXizPrPo+g8dKp/MiRLbc5DZqWYSQ2E+SRKzrOQH7/aqC
Uwncqhsfaoq/BVDoiNDx2rFTwUyKlJsb5ofXga7UeYuG1hSkPs5diQoyYf///t0x
GYbxmyUPh8c9dI+jpUdabzJtEbfrW/KbDhPxxg6z+qn6xpJ/q3JPfsXT45TshHFc
rQ3cu3bH5WbtjRnRfXHrt6sUxuNtlUA+DNKP68/QjjBMBgkqhkiG9w0BBwEwHQYJ#
YIZIAWUDBAEqBBDDLWxWcaN4eYThBDf95V2ZgCDjNauNyW+C8IkJWqMunHt0kC4V
ZdZMVyiNVzh9Is/tBQ==
-----END PKCS7-----

Decrypt a file

$ target/release/eyaml-rs decrypt -f decrypt_me.enc 

Here is some text
Commit count: 104

cargo fmt