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 9030523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:30:43+00:00 2026-06-16T07:30:43+00:00

When talking about asymmetric encryption it is often said that due to some reasons

  • 0

When talking about asymmetric encryption it is often said that due to some reasons you should not encrypt your entire message asymmetrically, e.g. performance considerations.

The usually suggested workflow is:

  • Create a random key for symmetric encryption
  • Encrypt the message using this random key
  • Encrypt the random key using asymmetric encryption
  • Send the encrypted message and the encrypted key to the recipient

So far, so good.

Just two questions:

  1. How do I send the encrypted message and the encrypted key in combination? Is there a standard for that? Or am I completely free on how to do this? (I’d prefer a standard if there is one).
  2. Is there any best practice on how to create the random key? To be more specific: Is there a specific function in OpenSSL that should be used for that?
  • 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-16T07:30:45+00:00Added an answer on June 16, 2026 at 7:30 am
    1. This was answered in comments. I would better recommend to check OpenPGP – it is somehow easier to understand, CMS has a huge ASN.1 structures overload.
    2. Random key just should be completely random byte string, generated from good random source.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm talking about ivy 2, not some newer version.
I'm not talking about generic classes that declare properties or fields with the type
I'm not talking about in the URL. I know what that does. I'm talking
I'm not talking about tools that let one view a page in combinations of
Talking about javax.crypto.Cipher I was trying to encrypt data using Cipher.getInstance(RSA/None/NoPadding, BC) but I
Im talking about performing a deep recursion for around 5+ mins, something that you
I'm not talking about Linq to SQL. Just Linq to DataSet. Let's say I
I'm not talking about something like cURLs or SMTP server I have an stupid
I am not talking about the code editor. I have already imported my Visual
I am not talking about white space in the content, but the code itself.

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.