Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8618887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:12:42+00:00 2026-06-12T06:12:42+00:00

I want to encrypt a binary file with an asymetric key from my filesystem

  • 0

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…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:12:43+00:00Added an answer on June 12, 2026 at 6:12 am

    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):

      # encrypting
      system "gpg --armor -e -r 'receiverid' -o #{MYFILE_ENC} #{MYFILE} "
    
      # compressing
      system "gzip #{MYFILE_ENC}"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to encrypt some json from a server and then decrypt it on
I want to encrypt a XML file in Wpf to 128 bit. Can anyone
Can I compile text files in raw folder to binary to encrypt it from
I want to encrypt a file using openssl. I can do it by using
I want to encrypt a URL variable so that the user can't see the
I want to encrypt and decrypt 10000 bytes of a music file. I used
I have an existing zip file, I want to use AESManaged class to encrypt
I want to encrypt a message such as 'HELO1234 and then decrypt to get
So say I want to encrypt a file and the only way I want
when you want to encrypt something dont you want the key to decrypt to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.