Python Forum
Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Word generator
#9
On topic: I'd suggest import random, use some sort of bool() and run it four times, if all are false, do again. For each true, pick a random num from the ascii range for vowels, for each false, pick a random num from the ascii range for consonants. Optionally, (for a little bit more randomness) put them into a list, and change the order in some way. Then, char() all the ascii values, and finally print([i]index value[/i],end=()) for each object? index? (I'm still new myself) in the list so that it outputs everything on 1 line. If I knew how to convert a list to a str without a loop, I'd do that and output the string instead. Think I've tried joining but my experimental code so far is horrendous, and I haven't had any luck with getting expected output.
DeaD_EyE, what's wrong with your sample code? Is it because you are opening a word list instead of generating a word?

Off topic: DeaD_EyE, the XKCD solution was exploited over four years ago. Daily Mail has a good article about it: http://www.dailymail.co.uk/sciencetech/a...-hour.html. Didn't want that to be a clickable link, but I'm not seeing a way to unlink it since unlink is greyed out.
   TL,DR: Combination attacks use custom and standard dictionaries to combine common strings for cracking longer passwords in under 30 minutes.
Reply


Messages In This Thread
Word generator - by jack1234 - Jul-02-2017, 02:58 PM
RE: Word generator - by buran - Jul-02-2017, 03:05 PM
RE: Word generator - by jack1234 - Jul-02-2017, 04:01 PM
RE: Word generator - by DeaD_EyE - Jul-02-2017, 04:40 PM
RE: Word generator - by Bass - Jul-02-2017, 04:44 PM
RE: Word generator - by buran - Jul-02-2017, 06:34 PM
RE: Word generator - by ichabod801 - Jul-02-2017, 08:48 PM
RE: Word generator - by DeaD_EyE - Jul-02-2017, 11:14 PM
RE: Word generator - by tozqo - Jul-03-2017, 03:07 AM
RE: Word generator - by DeaD_EyE - Jul-03-2017, 07:16 AM
RE: Word generator - by snippsat - Jul-03-2017, 09:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Random Generator: From Word to Numbers, from Numbers to n possibles Words Yamiyozx 2 1,463 Jan-02-2023, 05:08 PM
Last Post: deanhystad
  No output in 'english word generator' DeGerlash 14 6,591 Jan-10-2018, 12:23 PM
Last Post: squenson

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020