I am searching for an algorithm for file encryption/decryption which satisfies the following requirements:
- Algorithm must be reliable
- Algorithm should be fast for rather big files
- Private key can be generated by some parameter (for example, password)
- Generated private key must be compatible with public key (public key is generated only once and stored in database)
Is there any Ruby implementation of suggested algorithms?
Ruby can use openssl to do this:
And decrypt:
from here