Geeks Talk

Prepare for your Next Interview




Encrypt password in C#.Net

This is a discussion on Encrypt password in C#.Net within the C# forums, part of the Software Development category; How to encrypt password in C#.Net? NOTE : [This question was asked by sbehera02]...


Go Back   Geeks Talk > Software Development > C#

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 12-14-2006
Moderator
 
Join Date: Oct 2005
Posts: 711
Thanks: 1
Thanked 98 Times in 74 Posts
Lokesh M is on a distinguished road
Encrypt password in C#.Net

How to encrypt password in C#.Net?

NOTE : [This question was asked by sbehera02]
Reply With Quote
The Following User Says Thank You to Lokesh M For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 12-14-2006
Expert Member
 
Join Date: Dec 2006
Location: Chennai
Posts: 197
Thanks: 2
Thanked 16 Times in 14 Posts
Barbie is on a distinguished road
Re: Encrypt password in C#.Net

There is a function for this purpose:
encrypt(text,password)
This will encrypts the text with the password and returns a string.
There is a decrypt function too:
decyrpt(text,password)
This does the reverse operation.
Reply With Quote
  #3 (permalink)  
Old 12-14-2006
Moderator
 
Join Date: Oct 2005
Posts: 711
Thanks: 1
Thanked 98 Times in 74 Posts
Lokesh M is on a distinguished road
Re: Encrypt password in C#.Net

Thank you for your quick answer Barbie
Reply With Quote
  #4 (permalink)  
Old 12-18-2006
Contributing Member
 
Join Date: Jul 2006
Posts: 56
Thanks: 0
Thanked 3 Times in 2 Posts
Remasri is on a distinguished road
Re: Encrypt password in C#.Net

Barbie it was a good explanation given with syntax. I also tried this new command and got the result.
Reply With Quote
  #5 (permalink)  
Old 09-20-2008
Junior Member
 
Join Date: Sep 2008
Location: hyd
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
roopa reddy is on a distinguished road
Re: Encrypt password in C#.Net

How to encrypt password in C#.Net?
Reply With Quote
  #6 (permalink)  
Old 09-20-2008
Junior Member
 
Join Date: May 2008
Location: chennai
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
dedevils is on a distinguished road
Re: Encrypt password in C#.Net

In the System.Security.Cryptography namespace the PasswordDeriveBytes class will let you derive a cryptographic key from a password string. You can
then use this key in one of the encryption classes such as Rijndael.

When encrypting/decrypting you can either act on an array of bytes in
memory, or you can use CryptoStream to do stream-based IO but with
cryptography applied.
Reply With Quote
Reply

  Geeks Talk > Software Development > C#


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Generate random password Using PHP fred PHP 2 02-06-2007 08:56 AM
Help me retrieve my password joel MY SQL 1 12-19-2006 02:53 AM


All times are GMT -4. The time now is 12:39 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved