Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to manager the secret key of RSAEncrypt

How to manager the secret key of RSAEncrypt

Scheduled Pinned Locked Moved C#
tutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jason_mf
    wrote on last edited by
    #1

    the key(public and private) is stored in KeyContainer, I do not export public-key and private-key. the program run next time, How to get the right public-key and private-key? please give me the simple code,Thanks.

    L S 2 Replies Last reply
    0
    • J jason_mf

      the key(public and private) is stored in KeyContainer, I do not export public-key and private-key. the program run next time, How to get the right public-key and private-key? please give me the simple code,Thanks.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You need to save your public key somewhere or ask the user to enter it when the program next runs. The private key should be derived from the public key. Take a look here[^] for some useful samples.

      It's time for a new signature.

      1 Reply Last reply
      0
      • J jason_mf

        the key(public and private) is stored in KeyContainer, I do not export public-key and private-key. the program run next time, How to get the right public-key and private-key? please give me the simple code,Thanks.

        S Offline
        S Offline
        Sauro Viti
        wrote on last edited by
        #3

        You should save your public and private keys somewhere, otherwise how can you use them again later? Their usage is to make the public key available to everyone you want to exchange encrypted informations with you, and hold the private key somewhere where only you are able to access it ;)

        J 1 Reply Last reply
        0
        • S Sauro Viti

          You should save your public and private keys somewhere, otherwise how can you use them again later? Their usage is to make the public key available to everyone you want to exchange encrypted informations with you, and hold the private key somewhere where only you are able to access it ;)

          J Offline
          J Offline
          jason_mf
          wrote on last edited by
          #4

          Then, what does KeyContainer have to use? the KeyContainer can not store cipherkey , Why MS provided it? What is KeyContainer practical significance?

          L 1 Reply Last reply
          0
          • J jason_mf

            Then, what does KeyContainer have to use? the KeyContainer can not store cipherkey , Why MS provided it? What is KeyContainer practical significance?

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            jason_mf wrote:

            What is KeyContainer practical significance?

            It's all explained here[^].

            It's time for a new signature.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups