Avatar of BothWorldsJo
BothWorldsJo
Flag for United States of America asked on

password from cleartext to encrypted

Hi!

I have to send a password to a webservice and it will save it as an encrypted password while creating the user, not hashed, in the aspnet membership database locally.

How do I convert the cleartext password into an encrypted password to send it to the SQL sproc?

Thanks,
Jo
Microsoft Development.NET Programming

Avatar of undefined
Last Comment
BothWorldsJo

8/22/2022 - Mon
Mysidia

Are you writing the web service, in order to authenticate a user?
Obviously, there are many different schemes for 'encrypting' or protecting passwords; some are more secure than others

For secure password storage in your application,
I would recommend BCRYPT,  using eg.
http://bcrypt.codeplex.com/

Or PBKDF2 using Rfc2898DeriveBytes
http://msdn.microsoft.com/en-us/library/system.security.cryptography.rfc2898derivebytes.aspx


If you need to interact with a webservice that someone else wrote,
then you would need to know exactly what password/credential storage mechanism
they are using,  and what rules they are using to derive passwords they store,
in order to be able to provide a password in their internal format.
BothWorldsJo

ASKER
Yes, it's my webservice.  And the encryption is the passwordformat=2 of the usual aspnet membership logic.  The site already has encrypted logins, rather than hash, so the usual Microsoft encrypted mechanics is what i need.
Thanks
ASKER CERTIFIED SOLUTION
BothWorldsJo

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
BothWorldsJo

ASKER
Workaround
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck