Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Generate strong yet memorable passwords' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Generate strong yet memorable passwords
Authored by: tekfox on Sep 23, '04 01:33:21PM

Greetings,

I've been generating my passwords through a small Java utility that I wrote a few years ago. GenPasswd accepts a word of six characters or more and mangles it by inserting digits based on a simple algorithm. I use GenPasswd in combination with mnemonic phrases, such as: iamhungry or with foreign words. iamhungry, for example, becomes i8mhu5gr9.

The listing for the program is below.

/**
  

Password generating utility version 1.0

© copyright 2001 Eugene Ciurana -- distribute as you see fit as long as you keep this copyright notice. @author Eugene Ciurana @version 1.0 */ public class GenPasswd extends Object { // *** Private and protected members *** private static void helpUser() { System.out.println("genpasswd: Too few arguments\n"); System.out.println("Syntax: genpasswd word1 word2 word3 ... wordN"); System.out.println(" wordN is a 6-letter (or more) string"); } // helpUser // *** Symbolic constants (public and private) ***** // *** Public methods *** // ***** Main program ***** public static void main(String[] argV) { if (argV.length == 0x00) helpUser(); for (int nLoop = 0x00;nLoop < argV.length;nLoop++) { if (argV[nLoop].length() < 0x06) System.out.print(argV[nLoop]+" -- word too short"); else for (int nInnerLoop = 0x00;nInnerLoop < argV[nLoop].length();nInnerLoop++) if (nInnerLoop == 0x01 || nInnerLoop == 0x05 || nInnerLoop == 0x08) System.out.print((nInnerLoop+argV[nLoop].charAt(nInnerLoop))%0x0a); else System.out.print(argV[nLoop].charAt(nInnerLoop)); System.out.println(); } } // main } // class GenPasswd

Use a text editor to create this file. When done, compile with javac:

javac GenPasswd.java

To execute it, run:

java GenPasswd someword

I hope you find this useful.

Cheers,

E

---
Have you read The Sushi Eating HOWTO?
http://eugeneciurana.com/musings/sushi-eating-HOWTO.html

[ Reply to This | # ]

Generate strong yet memorable passwords
Authored by: adrianm on Sep 23, '04 01:49:03PM
What's with all the hex constants and the useless extends Object ? Sorry, I just spent a day reviewing other people's java code - need to break the habbit :)

[ Reply to This | # ]
Generate strong yet memorable passwords
Authored by: _merlin on Sep 23, '04 07:55:10PM

Remember that "foreign" words are only foreign to you.



[ Reply to This | # ]
Generate strong yet memorable passwords
Authored by: ciurana on Sep 24, '04 05:14:43PM

merlin_ wrote:
> Remember that "foreign" words are only foreign to you.

Indeed. It might still be vulnerable to a dictionary attack; the mangling algorithm seems to do a decent job in creating mnemonic passwords, though. I usually go for phrases, though. Harder to nail them with a dictionary attack.

Cheers,

E (aka tek_fox)


---
http://eugeneciurana.com/musings/sushi-eating-HOWTO.html
San Francisco, CA USA



[ Reply to This | # ]