Create users using aspnet_Membership_CreateUser sp from sql

L

LA_Guy

Hi,

I've been frustrated by not understanding how to replicate the hashing
/ encryption behaviour
in the Membership class that does the CreateUser method.

The associated stored procedure aspnet_Membership_CreateUser assumes
that the parameters

password
passwordsalt
security answer
there fields have to be hashed/encrypted

1. How is the passwordsalt created ?
2. password is set from EncodePassword method
3. security answer is hashed with the passwordsalt above

My question is how to do the hashing of fields from a custom Users
table
so that I can add Users to the membership tables without using the
Membership.CreateUser method in .NET 2.0

Thanks, LA_Guy
 
D

Dominick Baier

Hi,

this is "propriety". If you want to use Sql membership to validate, then
the fields must be in the format that is expected by the provider. Otherwise
you need to write you own provider.

You are of course free to use Reflector to "inspect" the algorithm and formats
used.

dominick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top