i am looking for code sampe in aso.net 2 for encrypt/decrypt
of paswr d withought using any external DLL (judt to use existing net2 tools)

thnaks i nadvance
peleg

Re: encrypt/decrypt function in asp.net 2 by Sheng

Sheng
Fri Jul 20 19:39:03 CDT 2007

You can look at the ProtectedData Class and the ProtectedMemory Class in the
System.Security.Cryptography Namespace

--
Sheng Jiang
Microsoft MVP in VC++
"pelegk1" <pelegk1@discussions.microsoft.com> wrote in message
news:BD1D3C44-AFE1-4417-AA78-3C42A6DF9656@microsoft.com...
> i am looking for code sampe in aso.net 2 for encrypt/decrypt
> of paswr d withought using any external DLL (judt to use existing net2
tools)
>
> thnaks i nadvance
> peleg
>



RE: encrypt/decrypt function in asp.net 2 by braulio121NOSPAM

braulio121NOSPAM
Sat Jul 21 12:54:01 CDT 2007

Mmm...

If the aim of this is to store encrypted a password in your database, the
best way of doing this is just storing a hash of the password, then when the
user enters the password you pass the hash and you compare the hashed filed
in the database.

By using this approach nobody will be able to steal you the passwords by
accessing your database.

More info about encrypting / hash / security:

http://msdn.microsoft.com/msdnmag/issues/06/00/SecurityBriefs/Default.aspx

HTH
Braulio

/// ------------------------------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ------------------------------




"pelegk1" wrote:

> i am looking for code sampe in aso.net 2 for encrypt/decrypt
> of paswr d withought using any external DLL (judt to use existing net2 tools)
>
> thnaks i nadvance
> peleg
>