Skip to content

Cryptography in C# using security namespace

Vipul Kelkar

Asked Jun 2, 2009, 9:39 PM EDT3 answers
Share
LinkedInX
Hi guys !!
I have a user login in my web site...i want to know how can we implement RSA cryptography using Security namespace in c#
 
I just know that we can use System.Security.Cryptography.
 
Thanks

3 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Thanks for the link
     
    I am able to encrypt and decrypt a text . While authenticating a user, what shoul I do.Comare the ciphertext of the Passwords or decrypt them and compare.
    I cant compare the ciphertexts,cos everytime the RSA class uses a random key.So the ciphertext used while storing the passwd may not be the same as while comparing.
    Secondly, when i fetch a value of passwd from the database,it should be in the Byte[] form so that i can decrypt it.How do i store a Byte value in sql server.
     
    0
  • Mahesh Chand
    0
    Go to the search page of this site and search for the keyword.
    Also, in the left side bar of the home page of this site, if you click on Cryptography, you will many articles and tutorials on this topic.
    0