Here is my version, uses random characters and a Select Case to make the password as random as possible.
I made it because most use the string array and it;s easier to use ASCII codes. You can also replace the whole Select Case and IF statements with a
Which will give you a bit of everything if you don't want to make it selectable.
Function:
Usage:
Screenshot:
I made it because most use the string array and it;s easier to use ASCII codes. You can also replace the whole Select Case and IF statements with a
PHP Code:
_Password += Chr(Random.Next(33, 126))
Function:
Spoiler (Click to View)
Usage:
PHP Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = GeneratePassword(NumericUpDown1.Value)
End Sub
Screenshot:
"If you cannot explain something simply, then you do not understand it at all." - Albert Einstein
"The best way to predict the future is to invent it." - Alan Kay
"The best way to predict the future is to invent it." - Alan Kay