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 and Where to store passwords,Credit card number,Username etc on my computer?

How and Where to store passwords,Credit card number,Username etc on my computer?

Scheduled Pinned Locked Moved C#
securitygraphicshelptutorialquestion
3 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.
  • S Offline
    S Offline
    Sandeep Kalra
    wrote on last edited by
    #1

    Hi there I am developing a windows application that will store passwords , credit card number and other sensitive information on the computer. Definetilely it will be stored in the file. There are algorithms in System.Security.Cryptography TripleDes,RSACryptoServiceProvider etc etc. Encrypting the file using above algorithms will require private key(in case of asymmetric encryption) or secret key and Intialization Vector(In case of symmetric encryption) I have encrypted the data using the above key and is working fine.Now the challenge is where to store the Private Key so that i can retrive that key later to decrpyt the data and show to the user. Please guide any reading material or code will be of help Thanks THE SK(Sandeep Kalra) I am the One

    M S 2 Replies Last reply
    0
    • S Sandeep Kalra

      Hi there I am developing a windows application that will store passwords , credit card number and other sensitive information on the computer. Definetilely it will be stored in the file. There are algorithms in System.Security.Cryptography TripleDes,RSACryptoServiceProvider etc etc. Encrypting the file using above algorithms will require private key(in case of asymmetric encryption) or secret key and Intialization Vector(In case of symmetric encryption) I have encrypted the data using the above key and is working fine.Now the challenge is where to store the Private Key so that i can retrive that key later to decrpyt the data and show to the user. Please guide any reading material or code will be of help Thanks THE SK(Sandeep Kalra) I am the One

      M Offline
      M Offline
      Muhammad Shahid Farooq
      wrote on last edited by
      #2

      Use Hashing algorithm for this purpose, because Hashing Algorithms are one way and no need to decrypt.

      1 Reply Last reply
      0
      • S Sandeep Kalra

        Hi there I am developing a windows application that will store passwords , credit card number and other sensitive information on the computer. Definetilely it will be stored in the file. There are algorithms in System.Security.Cryptography TripleDes,RSACryptoServiceProvider etc etc. Encrypting the file using above algorithms will require private key(in case of asymmetric encryption) or secret key and Intialization Vector(In case of symmetric encryption) I have encrypted the data using the above key and is working fine.Now the challenge is where to store the Private Key so that i can retrive that key later to decrpyt the data and show to the user. Please guide any reading material or code will be of help Thanks THE SK(Sandeep Kalra) I am the One

        S Offline
        S Offline
        Shyam Bharath
        wrote on last edited by
        #3

        Sandeep Kalra wrote:

        Now the challenge is where to store the Private Key so that i can retrive that key later to decrpyt the data and show to the user.

        You can probably encrypt the private key with something known as a master key. And then when needed, you can decrypt the key with the master key. There may be better techniques, but this is one i heard of. EDIT: A master key can be a simple password (which is to be stored in your brain :) )

        ------------------------------------------- It's code that drives you - Shyam

        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