All posts tagged #security all posts RSS-feed

Symmetric encryption in Rust

I'm working on a file encryption utility (endec) in Rust. Encrypting and decrypting doesn't need much code, but it took me several hours of fiddling to arrive at the final version, so I thought I'd share the result. The crates I'm using (for the symmetric encryption part) are: aes for encryption secstr to store keys in memory more safely block-modes for block cipher utils So let's get right down to the code: use ::aes::Aes256; use ::block_modes::Cbc; use ::block_modes::BlockMode; use ::block_modes::block_padding::Iso7816;... full post»