Using System.Security.Cryptography for encryption/Decryptio

The .Net framework have made life easier for a developer in creating security components for applications which was a pain till now.Things started becoming better with exposing of Crypto API in Windows 2000.

The .Net System.Security.Cryptography namespace supports wide range of encryption algorithms like RSA,DSA,RC2,SHA,MD5.Here I have a simple example of password encryption and decryption using RSA Algorithm


Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.