Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > achieve password encryption

Reply
Thread Tools

achieve password encryption

 
 
Anton Sommer
Guest
Posts: n/a
 
      11-24-2003
Hello folks,

how can I encrypt the password that an user enters in my normal login
window.


Thank you

Anton


 
Reply With Quote
 
 
 
 
Pete
Guest
Posts: n/a
 
      11-27-2003
Hi,
You might want to try this


public string GetEncryptedPassword(string sPass)

{

return
FormsAuthentication.HashPasswordForStoringInConfig File(sPass,"sha1");

}

"Anton Sommer" <anton.schamy_no_spam_@arcor.de> wrote in message
news:bprt45$8p3$07$...
> Hello folks,
>
> how can I encrypt the password that an user enters in my normal login
> window.
>
>
> Thank you
>
> Anton
>
>



 
Reply With Quote
 
 
 
 
Anton Sommer
Guest
Posts: n/a
 
      11-28-2003
thank you for responding Pete,


but can you give me a few more details, I am not understanding how the
password should be encrypted client wise

thank you


Anton
"Pete" <peted "at" xboxracing dot net> schrieb im Newsbeitrag
news:...
> Hi,
> You might want to try this
>
>
> public string GetEncryptedPassword(string sPass)
>
> {
>
> return
> FormsAuthentication.HashPasswordForStoringInConfig File(sPass,"sha1");
>
> }
>
> "Anton Sommer" <anton.schamy_no_spam_@arcor.de> wrote in message
> news:bprt45$8p3$07$...
> > Hello folks,
> >
> > how can I encrypt the password that an user enters in my normal login
> > window.
> >
> >
> > Thank you
> >
> > Anton
> >
> >

>
>



 
Reply With Quote
 
Pete
Guest
Posts: n/a
 
      12-01-2003
Hi Anton,
Sorry I never comment code ;-(

All this does is encrypt a client passed string (password).

You could use this as follows:

1) User creates an account, you encrypt the password before storing in the
db with the userId
2) When a user logs on you encrypt the supplied (logon) password and compare
it with whats stored in the db.

All encryption is done on the server not the client so you'd be wise to use
SSL if your site has sensitive info.

Hope this helps a bit.

Pete



"Anton Sommer" <anton.schamy_no_spam_@arcor.de> wrote in message
news:bq87vb$d5p$05$...
> thank you for responding Pete,
>
>
> but can you give me a few more details, I am not understanding how the
> password should be encrypted client wise
>
> thank you
>
>
> Anton
> "Pete" <peted "at" xboxracing dot net> schrieb im Newsbeitrag
> news:...
> > Hi,
> > You might want to try this
> >
> >
> > public string GetEncryptedPassword(string sPass)
> >
> > {
> >
> > return
> > FormsAuthentication.HashPasswordForStoringInConfig File(sPass,"sha1");
> >
> > }
> >
> > "Anton Sommer" <anton.schamy_no_spam_@arcor.de> wrote in message
> > news:bprt45$8p3$07$...
> > > Hello folks,
> > >
> > > how can I encrypt the password that an user enters in my normal login
> > > window.
> > >
> > >
> > > Thank you
> > >
> > > Anton
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Anton Sommer
Guest
Posts: n/a
 
      12-02-2003
Thanks for responding Pete,

> All encryption is done on the server not the client so you'd be wise to

use
> SSL if your site has sensitive info.
>


Well I meant anyway encrypting the password on the way from the client to
the webserver, so is SSL then the only opportunity there? How could I
achieve it or are there different solutions to secure the transmission of a
password on the way from the client to the webserver.


Thanks

Anton



P.S. Ironically in my case it would help a lot to me if the browsers would
simply display the page as being secure (Key sign or locked lock sign)


 
Reply With Quote
 
Pete
Guest
Posts: n/a
 
      12-02-2003

> Well I meant anyway encrypting the password on the way from the client to
> the webserver, so is SSL then the only opportunity there? How could I
> achieve it or are there different solutions to secure the transmission of

a
> password on the way from the client to the webserver.
>


I'd say SSL is the way to go as any technology you employ on the client
could be
open to abuse. Besides, SSL does it all for "free" for you (apart from a
slight
performance overhead)

A client side solution would probably be script based unless your thinking
of
installing assemblies (possible if it's in the intranet though).
I think client-side code should be kept to a minimum...especially when it's
security related.

HTH

Pete



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change a users password without knowing the old password nor the answer to the password question AAaron123 ASP .Net 1 01-16-2009 02:56 PM
Changing a users password without knowing the old password nor the answer to the password question AAaron123 ASP .Net 2 01-16-2009 02:08 PM
Which hard drive encryption program has the strongest tested encryption & security? =?iso-8859-1?Q?-=3D|__=28=BAL=BA=29__|=3D-____o=3D=5B:::::::::::::::=BB?= Computer Security 6 02-20-2008 01:35 PM
Is it so difficult to achieve? AM Cisco 8 01-08-2005 08:21 PM
How to Achieve Wireless Security? Anton Wireless Networking 7 11-10-2004 07:04 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57