DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 20 Jul 2007 15:08:01 -0700,    posted on: microsoft.public.dotnet.framework.adonet        back       

Thread Index
  1    pelegk1
          2    Sheng Jiang[MVP] uss
          3    Braulio Diez


encrypt/decrypt function in asp.net 2   
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
Date:Fri, 20 Jul 2007 15:08:01 -0700   Author:  

Re: encrypt/decrypt function in asp.net 2   
You can look at the ProtectedData Class and the ProtectedMemory Class in the
System.Security.Cryptography Namespace

-- 
Sheng Jiang
Microsoft MVP in VC++
"pelegk1"  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
>
Date:Fri, 20 Jul 2007 19:39:03 -0500   Author:  

RE: encrypt/decrypt function in asp.net 2   
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
> 
Date:Sat, 21 Jul 2007 10:54:01 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us