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. Too many MachineKeys ?

Too many MachineKeys ?

Scheduled Pinned Locked Moved C#
cryptographyquestion
1 Posts 1 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.
  • G Offline
    G Offline
    Guinness4Strength
    wrote on last edited by
    #1

    I've written a Web Service which encrypts files via the RSACryptoServiceProvider. Everything is going great with the code except that I am experiencing a build up of key files in my Crypto\RSA\MachineKeys directory. I have verified that it is because every call to the WebService creates a new instance of RSACryptoServiceProvider which creates a new Key. I am using the FromXmlString method to restore a previously used Key Pair which I persist to a file between calls to the Web Service. This only occurs after I have created the new instance of RSACryptoServiceProvider though so the new key is already created. Is this something I need to worry about? Will Windows clean this directory from time to time or am I doing somthing wrong ?

    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