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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:24:04+00:00 2026-05-22T16:24:04+00:00

I have a question about public key encryption if the the following example of

  • 0

I have a question about public key encryption if the the following example of how things play out is essentially correct. Then I wonder where I can find the implementations of the three algorithms which I call KG1, EA1, and DA1 and about how many lines of code each is.

Alice wants to get messages securely. She uses a key generation algorithm KG1 to create private key “C2A836B33FF1E” and public key “35B1AC692” and publishes the public key to the world.

Bob puts the input of his message “HELLO FROM BOB” and the public key “35B1AC692” into encryption algorithm EA1 which yields the string “DF1537532CB23B” and sends this string to Alice. Chuck intercepts a copy too.

Alice has a decryption algorithm DA1 that can take as input the string “DF1537532CB23B” and her private key “C2A836B33FF1E” and yield output “HELLO FROM BOB”, but since Chuck doesn’t have the private key “C2A836B33FF1E”, he can’t convert “DF1537532CB23B” into “HELLO FROM BOB”. Also, though Chuck knows the KG1 algorithm and the public key “35B1AC692”, he can’t use this information to work back to the private key.

  • 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-05-22T16:24:05+00:00Added an answer on May 22, 2026 at 4:24 pm

    You got things right. The main problem caused by this scheme is “How can Bob be sure that the public key he got from “the world” is Alice’s public key, and not Chuck’s public key? Indeed, if it were Chuck’s public key, Chuck would be able to decrypt the message Bob sends to Alice.

    This is resolved by certificates. Every participant has a copy of the public key of well-known and trusted certificate authorities. When Alice want to publish it public key to the world, she pays one of these authorities to get a certificate, containing her public key. When getting a certificate, everyone can verify, with the authority’s public key, that the certificate hasn’t been corrupted, and so be sure that the public key is Alice’s public key, and not Chuck’s.

    The basic process of certification is a cryptographic signature : the certificate authority encrypts some data with its private key. When you have the data, its signature, and the authority’s public key, you may verify that decrypting the signature with the authority’s public key leads to the original data.

    RSA is a de facto standard, and is available in many languages and platforms. You shouldn’t reimplement it yourself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sorry about the naive question. I have the following: public Array Values {
I have a question about .net generics. Consider the following code: public abstract class
I have a question about using os.execvp in Python. I have the following bit
There seems to be a lot of hype about asymmetric Public Key encryption. RSA,
I have a question about how to map a foreign key ID with NHibernate
I have a question about extending a custom control which inherits from UserControl. public
In the example code below, I have a question about the List. My prof
I have question about NSView: Imagine a Custom View where the mouseDown, mouseDrag and
I have question about normalization. Suppose I have an applications dealing with songs. First
I have a question about using streams in .NET to load files from disk.

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.