I want to encrypt a binary file with an asymetric key from my filesystem within rails (and then deliver it via email).
Can you recommend me how to do this? is it possible via bcrypt?
Didnt found so much (not outdated) informations about this…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ok, i found a solution by myself – i did it with gpg…
First you have to generate/install the public key on the server and copy the private to your local machine.. afterwards you can use following command to encrypt and compress the file(if you have gzip installed):