Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SF Coders] Password Generator
#11
(02-04-2012, 07:59 PM)AceInfinity Wrote: Again, I would say exactly what i've just said.
Ace Wrote:I'm pretty sure this is just logical common sense, but it's up to you which symbols you want to use. You'd just be chancing it for which websites would allow certain symbols as password chars that's all. Otherwise, usually websites allow you free will over what kind of complex password you want.
That's simply just common sense.

yeah i see what you mean, but could i put this sort of generator in a website(For a signup)
Im guessing i should just refer to google on this one...
Reply
#12
(02-04-2012, 09:02 PM)Warp 1.9 Wrote: That's simply just common sense.

yeah i see what you mean, but could i put this sort of generator in a website(For a signup)
Im guessing i should just refer to google on this one...
[/quote]

In a website? Yeah, you could make a pass generator for those people that can't think of their own passwords, but this is a VB.Net project, so not this exact one in specific.
Reply
#13
(02-04-2012, 09:42 PM)AceInfinity Wrote: yeah i see what you mean, but could i put this sort of generator in a website(For a signup)
Im guessing i should just refer to google on this one...
In a website? Yeah, you could make a pass generator for those people that can't think of their own passwords, but this is a VB.Net project, so not this exact one in specific.
[/quote]

yeah but the same sort of princeable in making one with PHP or something browser friendly like that.
Reply
#14
I have made a PHP password generator, it's thread is located here.
[Image: cooldude.png]

(09-05-2011, 08:36 AM)Orgy Wrote: If you understand what you're doing, you aren't learning anything. ;)
Reply
#15
Thank you for this, I really needed something like this! I am working on a project (not school related) but I am only developing it while I am at school. This really helped! Thanks!!
Reply
#16
Nice project, thankfully you made it include symbols and special characters. Most people just do letters. :p
Reply
#17
Thanks for your comments, both of you. Smile @SomeWhite, really?
[Image: cooldude.png]

(09-05-2011, 08:36 AM)Orgy Wrote: If you understand what you're doing, you aren't learning anything. ;)
Reply
#18
I never looked at the code before, but your method only produces a symbol at the end of the password string, and you shouldn't be using += as much as you should be using &= as password is a string here.

Try randomizing it a bit more, you also don't need the numbers or letter array:
Code:
Private Function GeneratePassword(Length As Integer) As String
If (Length < 5) Then Length = 5

Dim Symbols As String = "!£$%^&*(){}~@:;#?/>.<"
Dim Rand As New Random
Dim Password As String = String.Empty

While Password.Length < Length
    Select Case Rand.Next(Password.Length) Mod (Password.Length + 1)
        Case 0
            Dim Letter As String = Convert.ToChar(Rand.Next(65, 65 + 26)).ToString
            Select Case Password.Length Mod 2
                Case 0
                    Password &= Letter.ToUpper
                Case Else
                    Password &= Letter.ToLower
            End Select
        Case Else
            Select Case Password.Length Mod 2
                Case 0
                    Password &= Rand.Next(0, 10)
                Case Else
                    Password &= Symbols.Substring(Rand.Next(0, Symbols.Length - 1), 1)
            End Select
    End Select
End While
Return Password
End Function

Here's the kind of passwords this would generate:
Code:
Ms0cF&K!5!
Jy4;Q%5£6?
OmPr9)5£1^
Rk6a8m4s4:
Cx7(W£1*8/
Oq0:3(5#4{
Td4)3/5~4r
PbXg3wV*Kc
Ki2nVq9#1{
WbOv2>4%7£
It8c6^9~4:
CbEj2.D!1$
Wj5@7#2)8n

Edit: I missed milopeach's answer too. Your "While True" is a bad misuse of the While loop as that's not what it's intended for, you could have just used the while expression to check the password length instead of making it a statement to check for to exit the loop.
Reply
#19
are the passwords easy to crack with bruteforce or something like that?

Regards
Reply
#20
Combinations above 7 chars is safe enough, preferrably not words from the dictionary, alphanumeric is better, and with symbols it makes the possibilities even more limitless, which makes it harder for somebody to check combinations against your password. If you use the one I provided here: http://www.supportforums.net/showthread....#pid274347

I don't think you'll have an issue with that, as long as you output to at least 6 or 7 values.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  SF Coders - Icon Changer - Project 1 Arron XR 14 4,520 09-11-2012, 08:20 PM
Last Post: malis2007
  [SF Coders]Imageshack.Us Image Scraper ★Cooldude★ 7 3,204 08-28-2012, 01:47 AM
Last Post: ★Cooldude★
  Adf.ly Direct Links Generator euverve 6 4,834 06-27-2012, 04:05 AM
Last Post: Ch4ng3m3
  [SF Coders] Grabbing an Icon from a File and Saving! [TUT] milopeach 13 3,806 05-15-2012, 06:22 PM
Last Post: OnyxDev
  [SF Coders] Converting between SteamID's and Friend Profile ID's milopeach 5 2,286 02-04-2012, 04:19 PM
Last Post: Denny Crane

Forum Jump:


Users browsing this thread: 5 Guest(s)