Luzifer / go-openssl

go-openssl is a small library wrapping the crypto/aes functions in a way the output is compatible to OpenSSL
Apache License 2.0
122 stars 33 forks source link

Added ability to pass custom salt to everyencrypt call #3

Closed VojtechBartos closed 7 years ago

VojtechBartos commented 7 years ago

Motivation

I need to able to pass custom salt to be able to get same output every time for single item if i will try to encrypt it multiple times

Luzifer commented 7 years ago

Thanks for your contribution! 🙂

I've merged this into v1.1.0 but added some more documentation in the comments and added a salt validation. I hope it still fits your needs!

VojtechBartos commented 7 years ago

Thanks for merging this so quickly.

Yeah that's great, thanks!