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. Encryption/Decryption API in C#.NET

Encryption/Decryption API in C#.NET

Scheduled Pinned Locked Moved C#
csharpquestiondatabasesecurityjson
4 Posts 4 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
    Suseel kumar P
    wrote on last edited by
    #1

    I want to store password in database as encrypted. How can I do that?. Please somebody forward me an API for Encrypt/Decrypt in C#.NET Suseel Kumar P

    N H D 3 Replies Last reply
    0
    • S Suseel kumar P

      I want to store password in database as encrypted. How can I do that?. Please somebody forward me an API for Encrypt/Decrypt in C#.NET Suseel Kumar P

      N Offline
      N Offline
      Niklas Ulvinge
      wrote on last edited by
      #2

      I got some source to enchiper and dechiper, if you want I could send you the code... It's the safest algorithm ever developed, but you'll need a really long password for it to be that safe... Niklas Ulvinge aka IDK

      1 Reply Last reply
      0
      • S Suseel kumar P

        I want to store password in database as encrypted. How can I do that?. Please somebody forward me an API for Encrypt/Decrypt in C#.NET Suseel Kumar P

        H Offline
        H Offline
        hakervytas
        wrote on last edited by
        #3

        It's 2 methods to be more secure password in DataBase: 1) Encript with RSA256 or higher, more examples is on MSDN Primary key store in DB, other key in App. For more secure, protect Application with .NET Reactor from http://www.eziriz.com/[^] This tool not freeware, but cost not to much:) and protecting .NET .exe files Well;) 2) Other method is use only MD5 checksum and compare from DB pass, so encript entered password with MD5 and compare value with DB password what is in MD5.

        1 Reply Last reply
        0
        • S Suseel kumar P

          I want to store password in database as encrypted. How can I do that?. Please somebody forward me an API for Encrypt/Decrypt in C#.NET Suseel Kumar P

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          The safest way to store the password is to add some salt to it (please keep the salt somewhere safe and secure too!), encrypt the password using your favorite high-strength algorithm, then store the generated hash in the database. When you have to validate a password, put the attempted password through the same routine and compare the generated hash to what stored in the database. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          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