Crates.io | eyaml-rs |
lib.rs | eyaml-rs |
version | 0.1.1 |
source | src |
created_at | 2020-10-18 02:50:50.246401 |
updated_at | 2020-10-18 02:50:50.246401 |
description | Rust port of EYAML RubyGem |
homepage | |
repository | https://github.com/evan-chaney/eyaml-rs |
max_upload_size | |
id | 301794 |
size | 40,692 |
Rust port of the EYAML Ruby Gem. Work in progress!
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.
$ 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.
$ 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-----
$ target/release/eyaml-rs decrypt -f decrypt_me.enc
Here is some text