By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,263 Members | 2,640 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,263 IT Pros & Developers. It's quick & easy.

Internally creating Password in ASP.NET 2005

P: 19
Hello everyone,

I want to ask about how to create password internally in ASP.NET web application.

Like I have a application in which administrator will create user.

And he will enter:

UserId

and Password should get internally generated for that userid.

Like now a days there are many sites which gives the password like:3wer45yuu when we submit the form.

And I want that functionality in my application.Administartor don't have to enter password for each user he will create.That's why the application have to internally generate password for that userid.

Please help me as I have to show this functionality to my guide sir on this friday(7th Dec).

Please help.I need urgent help.


Thanking you all.
Dec 6 '07 #1
Share this Question
Share on Google+
1 Reply


Frinavale
Expert Mod 5K+
P: 9,731
Hello everyone,

I want to ask about how to create password internally in ASP.NET web application.

Like I have a application in which administrator will create user.

And he will enter:

UserId

and Password should get internally generated for that userid.

Like now a days there are many sites which gives the password like:3wer45yuu when we submit the form.

And I want that functionality in my application.Administartor don't have to enter password for each user he will create.That's why the application have to internally generate password for that userid.

Please help me as I have to show this functionality to my guide sir on this friday(7th Dec).

Please help.I need urgent help.


Thanking you all.
Oh wow you've left this to the last minute.


You're going to have to randomly generate a string that can be used as a password though....

I'd suggest creating an array of letters spanning from a-z-A-Z then generate a random number to pull these characters out of the array. Then create a String containing these random letters, and throw in some random numbers as well.

Please refer to this thread for more information about creating password hashes that can be stored in a database. (Please keep in mind that a password hash is one way...so if you are going to implement this, you should send emails to the users once they are created by the administrator with this initial password and allow encourage them to change it later)

-Frinny
Dec 7 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.