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
> > >
> > >
> >
> >
>
>
|