openssl_enc
An Implementation of openssl enc functionality.
This library encrypts and decrypts just like openssl enc on the command line. Allowing you to encrypt with this library and then decrypt with openssl on the other end. or vice versa.
This library supports encrypting/decrypting whole data all at once or a chunk at a time.
Examples
Encrypt data in chunks
use File;
use *;
use Cipher;
use OpensslEnc;
let mut file_chunk_buf = vec!;
let mut file = open.unwrap;
let mut out_file = create.unwrap;
let mut openssl_encrypt = new.unwrap;
loop
let final_data = openssl_encrypt.encrypter_finalize.unwrap;
out_file.write.unwrap;
out_file.flush.unwrap;
Then outside of this to decrypt with openssl you can run.
see the cargo docs for in depth explanation.