- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Random dictionary words
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2002 01:58 AM
тАО09-11-2002 01:58 AM
Random dictionary words
I am currently using $RANDOM but get complaints from users saying they cannot remeber the string easily when they need to reuse it later.
I am not worried if there is not an esy solution for this as I will try to find another way of doing it.
Many Thanks
- Tags:
- random
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2002 02:20 AM
тАО09-11-2002 02:20 AM
Re: Random dictionary words
You can download some source to do this here;
http://www.multicians.org/thvv/gpw.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2002 06:22 AM
тАО09-12-2002 06:22 AM
Re: Random dictionary words
It incorporates stdargs to generate random case and random number replacement for s=5, i=1, b=8, and o=0 as well as using a bit more checking.
This code works find on linux, but I have not had time to port to HP-UX.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2002 06:24 AM - last edited on тАО06-27-2022 12:46 AM by Parvez_Admin
тАО09-12-2002 06:24 AM - last edited on тАО06-27-2022 12:46 AM by Parvez_Admin
Re: Random dictionary words
Looks like my attatchment does not work for some reason. If it does not upload this time, email me at spetry@axieminc.com and I'll reply back with the code.
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2002 11:23 PM
тАО09-12-2002 11:23 PM
Re: Random dictionary words
I did not make it very clear on what I wanted.
I would ideally like Random Dictionary words.
Whilst the Java Password website / code is very good, it does not generate real dictionary words
Ideally I would like real dictionary words, like aardvark, abacus.....zulu, zygote etc etc....
I am thinking along the lines of a plain text file with the dictionary in it, and then a script randomly plucks a real word out that way.
I have searched widely accross the web and cannot find a plain text dictionary file and have failed.
I do not want to spend alot of time on this so I am not worried if I cannot get what I want.
Many thanks, and apologies for not detailing my requests better.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2002 10:20 AM - last edited on тАО06-27-2022 12:46 AM by Parvez_Admin
тАО09-13-2002 10:20 AM - last edited on тАО06-27-2022 12:46 AM by Parvez_Admin
Re: Random dictionary words
I'd imagine it might be easy to take a dictionary file such as the one I attached, and write a script to randomly pick a word from it?
-Ben
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2002 10:25 AM - last edited on тАО06-27-2022 12:44 AM by Parvez_Admin
тАО09-13-2002 10:25 AM - last edited on тАО06-27-2022 12:44 AM by Parvez_Admin
Re: Random dictionary words
Attachment didn't fully upload.... try this one.
-Ben
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2002 12:21 AM
тАО09-17-2002 12:21 AM
Re: Random dictionary words
I have spent a bit of time removing the slashes from the end of some lines which I did not want, and then created a csv file with the line numbers in the first field.
Although the origional dictionary file is only A-G with some 22,000 entries I have replicated part of this file to bump up the number to just over 32,000 lines so $RANDOM is definately going to get one line of text.
After all this, just a simple one liner will generate the random dictionary word, this is
grep "$RANDOM" dictionary.csv |cut -d "," -f 2
This will generate a Random dictionary word
Although a A-Z dictionary file would help, I have got what I wanted so I do not care!!
Attached is a copy of the csv file format of the dictionary. A-G,(Approx 22,000 lines) then A-C repeated to get number above 32,000
Many thanks for all you guys that spent time trying to help me out on this issue.
Ben
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2002 12:26 AM
тАО09-17-2002 12:26 AM
Re: Random dictionary words
Thanks HP, it appears that my attachment to this board does not like my file because it is larger than 17,236 lines long.
I'll post the file to some free space on the web for public access.
Send url later
Ben
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2018 04:19 AM - edited тАО02-08-2018 11:42 AM
тАО02-07-2018 04:19 AM - edited тАО02-08-2018 11:42 AM
Re: Random dictionary words
Well, you can download some sources from the given link. Don't worry, if you face any problem. I was facing some source code problem over there, but after some time I understand about #Random words.
http://www.multicians.org/thvv/gpw.html
Also from http://www.tricknowledge.com/
I hope, from this link you can solve your problem!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2018 02:04 PM - edited тАО02-09-2018 08:45 PM
тАО02-09-2018 02:04 PM - edited тАО02-09-2018 08:45 PM
Re: Random dictionary words
I needed an easy 8 character password or login generator.
I found a large random (English) word file, then trimmed it down to about 1100 words, each word between 3 and 6 characters and then pad the word in front or back with random numbers. I then wrote a function to echo back a random word from the file and random numbers to fill to 8 characters total.
Here's the code:
function RandomID { # Usage: RandomID [login | pw] # # Return a random word and random numbers. # The words come from a file with over 1,100 words 3 to 6 characters # Distribution is : #
# QTY LEN # 252 3 # 698 4 # 664 5 # 626 6 # This function echoes either word+number # or a number+word totaling 8 characters # # examples: ticket37 47urgent mega3790 95675two # If "login" is the param, the echoed text is word+nums # Otherwise, text is nums+word # Return a random line number from the dictionary # $RANDOM returns 0-32767 # Use this number mod $WORDCNT to find a random # line number in the RandomWords file. RANDOMWORDFILE=/etc/RandomWords WORDCNT=$(cat $RANDOMWORDFILE | wc -l) RNDLINE=$(($RANDOM % $WORDCNT)) ID=$(sed -n "$RNDLINE p" $RANDOMWORDFILE) IDLEN=${#ID} IDNUMS=$((8-$IDLEN)) NINES=$(echo "999999" | cut -c 1-$IDNUMS) typeset -Z$IDNUMS IDNUMS=$(($RANDOM % $NINES + 1)) [[ "$1" = "login" ]] && echo "$ID$IDNUMS" || echo "$IDNUMS$ID" return }
This will generate millions of different passwords or login IDs. Each call to the function echoes a new string.
Since the Comunity Forums won't allow a text file to be attached, here are the 1100 words:
Copy this list into the file: /etc/RandomWords, one word per line.
afford advise advice adult admit admire adds added add active action act across accuse accept accent about able among always also alone almost all alive alert air aid agreed agree ago agenda age again after afraid arm arise argue area april apply apple appear apiece apart any answer ankle animal angry angle anger and ball bags bag bad back aware awaken avoid autumn aunt august attack atom assist ask art arrive around begin before beef bed become beat beard bear beach bay bath basket basic based base bank banana bamboo blind blend black bitter bite bird bill big better best beside belt below belong bell being behind behave boy box bottle bother both borrow boring bored border book bon boiled boil body boat blue blood block bus bullet build brush bruise browse brown broom broker bring bright bridge break bread brave brand brake brain car cape candy cancer cancel can campus camera calmly calm call cake bye buyer buy butter but busy chat chaos change chance chair center cellar cause caught catch cat cash case carry carrot carpet care card clock clever clerk clear clean class city citrus cinema church choice chilli child chief chest cheese check cheap cook common coming come comb color cold coins coin coffee code coat clumsy cloudy cloud cloth closed close custom cup cry cross create crazy cow course coupon count cough couch cotton cost corner copy cool cooked dept depart degree defend defeat deep deed decide decent debt debate dean day date dark dancer dance cut dream draw dozen down doubt door done don dog doctor dizzy dirt direct dining die desire design desert egg effort eat easy east earth early ear each duty dust during dumb dry drop driver drive drink except exceed exact evil ever event even europe ethnic errand era enter enough enjoy enemy end empty elect family false fall fair fail faded fact facing faced face eye extend export expert expel expect expand excuse find filter film fight fierce field fewer few fever fence felt feel fat fasten fast far fan famous follow fly fluent flu flower floor flood flight flag fixed fix fit fish first fire finish finger fine friday fresh french freely free frame found forms former formal form fork forget forest forced forbid for food give gift ghost get gather gas garden garage game future funny full fry fruit frozen front from fried green great grass grape gram govt gossip goods good gone gold going god goal gloomy glass glance gives hard happy happen hang hand hall half hair habit guitar guide guests guest guard group grief grey greet his hire him hill high hey hers here help hello height heavy heaven heart hear head have hat hurt hungry human how house hour hotel hot horse hope hop honour honest home holder hold hobby hit itself its island iron invite into intend insult insist inside inform indeed import idol ideal idea ice hut lake ladder know knife king kind key keep just june jump july juice joke join jeep java jacket legal leg left leaves leave lease learn leader lazy layer laugh latest later late last large land lamp little listen list line limit liked like light lift life lie lets let lesson lessen lens lend legit loyal low love loudly loud lost loss lose loose look long lonely log lodge lock living lively live matter mass market mark march map many manger man male makes make main mail magic made lucky luck mirror minute mingle mind milk middle method messy merely member mega meet meat means mean mayor maybe may must music museum much movies move mouth motor most more month money monday moment modern mock misery misc noon non noisy noise night nice next news new never need near nature nation narrow name nail mutual once older old oil often office ocean obtain number now novel notice notes note not nose north normal packet pack ozone oxtail owner own out our ouch origin order orange oral oppose opened open only one pencil pen peanut peak peace pay past pass party part park pardon paper paling pale pair paint page please player play plate plant plane plain place pipes pipe pine pillow photo phone petrol person permit people power powder pour potato postal post posses pork poor pool ponder pond police point poetry poem pocket plural quick put push pupil pulp pull prove proud proper proof profit prize print prime price pretty press prefer ready read react reach razor rays ray rather rate rata rarely rapid rainy rain radio radar quite quiet remote remind remain rely relax regret region refuse refers reduce red record recipe recess rebel reason really real rise ring rights right ride rich rhythm return retail result rest reside report reply repeat repair rent remove sales sale salary safe sad run rubber row rough rope room roof rock road river rival risky risk secret second seat season search sea screen scold school say save sane sandal sand sample same salty salt shin sheets shave sharp shark shape shall settle set sense send seller sell self select seldom see sector silver silly sign sight side sick shy shut shrimp show shout should short shop shoes shoe shirt ship smile smell small slow sloppy slip slim slice sleepy sleep sky skin skill size sing since sin simple soup sound sort sorry sore soon song solve sole sold soft socks sock soccer soar soap snow smoke start stand stamp spy spring spread sport spoon split spicy spice spend speech speak space south source sour such subway style study struck strong story storm store stop stone stingy still steal stay static stated state task tariff tame tall talk talent take table syrup symbol swim sweet sweep sunday sun summer sugar suffer their then the that thanks thank than test tens tennis tell teen tears teach tea tax tasty taste time till tight tie ticket tick throw throat those this think things thing thin thief thick they there towel toward touch total tooth tool too tone tomato toll toes today toast title tired tip tin times under uncle ufo tyre type two turn try trust true trip tribe tree travel train trade toy town very verb vanish value usual user useful used use urgent urge upon until unity united unite unit unfair watch was warm war want wallet wall walk wake waiter wait waist visit violet view victim vice via white while which where when wheel what wet west well weird weigh week wear wealth weak way water word wool wood wonder woman with wish wire winter window wind win wild wife widen wide why who young you yet yellow yell year yard wrong write wrap wow would worst worse worry worn world work
Bill Hassell, sysadmin