An HTML5 secure password generator iPhone app

A while back, the web comic XKCD had a great observation on picking passwords and password strength.  Usually people pick a word and use "leet speek" to convert letters to numbers and think that's secure.  It's only marginally more secure than picking a dictionary word. The password-choosing technique that I have used for about as long as I can remember is based around a Python script called  I have no idea where I originally found this script, but I always try to have it around.  It consults your computer's dictionary file, grabs two random words, then joins them together with a letter or symbol in the middle.  You end up with things like "tine^miner".  I usually have to run it a dozen times until I get two words that "work" for me and my brain.  My main problem with this script is that when I'm first setting up a new machine, I don't always have the script available.  It would be nice to have something portable.  My iPhone is ubiquitous, so I thought I'd write an app, but realized that more people would find an HTML5 "app" useful than a native iPhone app.

This "application" lives entirely in JavaScript and contains all the right mojo to run 100% offline.  All of the logic to generate passwords runs only in your browser and never touches a server once the page has loaded. You can verify this by viewing the page's source.  Nefarious people watching the bits and bytes flowing over the network can only see that you downloaded a list of words, but not what combinations of words the generator has come up with. Also, because this is entirely offline, you can add it to your iPhone's or iPod Touch's home screen and it will act exactly like a native application, with no network access required.

This generator is a little more flexible than the Python script I used.  You can tell it the number of words you want and whether you'd like a separating symbol between them, which increases the difficulty in someone's attempt to brute-force your password. The symbols were selected to be easy to get to on an iPhone, that is, they reside only on the first page of symbols without needing to shift first to symbol mode, then shift to the alternate symbol mode. It looks great on the iPhone and is at least fully functional (if not always so pretty) on all other HTML5 platforms.  Give it a shot, if you'd like!

Comments are disabled for this post and can instead be found on the project page.

Posted in: iPhone Projects

Published by

Brian Enigma

Brian Enigma is a Portlander, manipulator of atoms & bits, minor-league blogger, and all-around great guy. He typically writes about the interesting “maker” projects he's working on, but sometimes veers off into puzzles, software, games, local news, and current events.