Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to autogenerate random password in asp.net mvc application?

No need to write it again... the question says it all.

like image 916
Fraz Sundal Avatar asked May 28 '10 10:05

Fraz Sundal


People also ask

How do random password generators work?

A random password generator is software program or hardware device that takes input from a random or pseudo-random number generator and automatically generates a password. Random passwords can be generated manually, using simple sources of randomness such as dice or coins, or they can be generated using a computer.

Are randomly generated passwords more secure?

The short answer is that it is safer to have a password generated by an online random password generator than to use a password even a toddler or weak hacking software can figure out.


1 Answers

You can use the built-in function included in the namespace System.Web.Security.

Membership.GeneratePassword Method
Generates a random password of the specified length.

like image 188
Leniel Maccaferri Avatar answered Nov 10 '22 09:11

Leniel Maccaferri