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

  • Home
  • SEARCH
  • 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 5955461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:07:02+00:00 2026-05-22T18:07:02+00:00

I have an application (App1), and it needs to write out an encrypted string.

  • 0

I have an application (App1), and it needs to write out an encrypted string. Another application (App2) needs to be able to decrypt and read that string, and by decrypting, verify that it was encrypted by App1. App2 should not be able to write out a new encrypted string.

I know that this deals with the public/private key pairs, but I do not know what the current best practice technology is in this area, and I do not know which .net classes implement it? I can use a certificate as necessary.

Any input is appreciated.

Thanks.

  • 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-22T18:07:03+00:00Added an answer on May 22, 2026 at 6:07 pm

    App1 & App2 generate their own private/public key pairs and exchange public key pairs. Then the workflow goes like:

    App1 -> Data + App2-PublicKey = Encrypted Data
    App2 -> Encrypted Data + App2-PrivateKey = Data
    

    So App1 or App2 only encrypt the data with the other one’s public key so only that application can decrypt it using it’s private key. This way the data exchange is secure. If the encryption is like:

    App1 -> Data + App1-PrivateKey + App2-PublicKey = Encrypted Data
    App2 -> Encrypted Data + App1-PublicKey + App2-PrivateKey = Data
    

    now the data exchange is both secure and authentic (i.e. two applications will be assured that it is the other application communicating to it). Ref: http://en.wikipedia.org/wiki/Transport_Layer_Security

    Reminder: Public key is for encryption and the private key is for verification. Also signing step is always the last as it is done on the final processed data.

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

Sidebar

Related Questions

I have application 1 and application 2. App2 needs to verify that App1 is
I have a ClickOnce application (app1) that calls DLL files from another solution (app2).
I have two application that need to talk to each other. App1 needs to
I have one application App1 under IIS. Inside App1 I have another application called
I have 2 application: app1.exe & app2.exe. app1.exe is elevated and will launch app2.exe.
I have an application App1 which defines class A and uses instances of this
I have a ClickOnce environment like this: \\Fileserver\ClickOnceApps\App1.application C:\Documents and Settings\user\Start Menu\Programs\publisher\app1.appref-ms My understanding
I have two applications under tomcat/webapps folder. tomcat/webapps/App1 tomcat/webapps/App2 Both applications share the same
I have application which needs to use a dll (also written by me) which
I have application that makes different queries with different results so the caching in

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.