5 ms·
I once did the following for a password that I wanted to be able to remember, but that I wanted to be very secure against attack. It was easy to remember, yet v
by tzs 16y ago
I once did the following for a password that I wanted to be able to remember, but that I wanted to be very secure against attack. It was easy to remember, yet very effective. How does this fit into the entropy vs. rememberability thing?
1. Take a 100x100 binary matrix, initialized to 0.
2. Change some bits to 1, in a pattern that I memorized. It was just something simple, like my initials in dot-matrix form.
3. Apply Conway's Life cellular automata rules to the matrix, with no wrap, doing 108 iterations.
4. Read out the final state of each cell row by row, as a an ASCII representation of a binary string of 10000 bits.
5. Run that through MD5. Iterate this 1960 times.
6. The final MD5, as an ASCII representation of a 128-bit hex number, was my password.
I did NOT have any of the software for this on any computer. Whenever I needed this password, I'd write a Life program, enter my memorized pattern, run it, do the MD5 stuff, and then delete the program.
Effectively, my password was the combination of the Life algorithm, the size of the input, the input pattern, the number of iterations to run of Life, and the algorithm for converting the final Life state into an ASCII password string.
There seems to be a lot of entropy here. Yet it was pretty easy to remember.
- jerfelix 16y agoLet me guess, you're a 50-year old Libra.
- tzs 16y agoI assume you guessed 50 from the fact that I iterated MD5 1960 times so assume that was my birth year. That is correct. I don't see how you (incorrectly) guessed Libra. If you took the 108 as the 108th day of the year and assumed that was my birthday, that would be April 18th, which would be Aries. If you took it as meaning January 8th, that would be Capricorn. Did you assume it was 10/8? That would give Libra. Anyway, the 108 is not a date. It refers to Math 108, an undergraduate math course at Caltech that bestows a curse upon those who take it. Forever afterward, the number 108 starts appearing in their lives more than normal. One girl I knew there went so far as to build a digital clock that held 1:07 for two minutes so that she would stop seeing 1:08 on her clock.
- billforsternz 16y ago+1 and my nomination for the Dr Sheldon Cooper ubergeek of the month award (the combination of the bizarre password story and the 1:07 digital clock is unbeatable in my view)
- jerfelix 16y agoYes, I was guessing that 108 was the date 10/8. But guessing in a way that increased my odds of being correct (from roughly 1 in 365, to 1 in 12). Since I didn't know if 10/8 was a date, or maybe a special date but not your birthday, I thought guessing "Libra" was a better way to go. I'm sure psychics use techniques like this, as well. In fact, I can see someone special in your life, and the letter "K" seems prominent. hmm...
- khafra 16y ago...and here we have a nicely presented example of the practical difference between the purely kolmogorov complexity-based Solomonoff Induction[1], and in-principle computable measures like the speed prior[2]. The latter is, of course, unnecessary when you can do hypercomputation in your head. [1]http://singinst.org/blog/2007/06/25/solomonoff-induction/ http://singinst.org/blog/2007/06/25/solomonoff-induction/ [2]http://www.idsia.ch/~juergen/speedprior.html http://www.idsia.ch/~juergen/speedprior.html
- tel 16y agoAs I stated, the entropy/rememberability tradeoff isn't strict. Your pathological example demonstrates a failure mode. It's the exact same one as my nonsense sentence though. If the attacker doesn't have a clue what the generating distribution is, then his attacks will be mis-encoded to a penalty up to the KL divergence between the his guess and the true generating distribution. You can fool people more simply than by your scheme. Moreover, if it became common to use GoL and MD5 to generate passwords, then you've actually got a relatively small number of parameters leading to an insecure code space. I suggest you at least draw an easily remembered picture in the 100x100 grid. Actually, that's a pretty fair principle of how to abuse the properties of our brains to make better passwords. Make the password depend on doing something that humans can do well but computers haven't mastered, and then do it slightly "off" in the even that computers do someday master it. The space of "almost intelligible" sentences or "poorly photoshopped images" are both way larger than the space of English sentences or recognizable images.
- pilif 16y agoHow did you encode the value in step 6? Assuming that you can't enter arbitrary binary data into that password field, you could at most have used base64 which would probably be good (~20 characters, 64 possible characters). OTOH, you said "hex value". If you encoded your number as hex, you would get a 32 character long password (good if the target form allows for such LNG passwords), but only 16 possible characters which is way too little and defeats the purpose of all your elaborate setup
- tzs 16y agoThe target allowed long passwords.