My Hackergotchi

Updated: Never — Philip's Blog

Now featuring regular updates!

Fri, 08 Aug 2008

21:34 – One time passwords

Because I'm paranoid, I use one time passwords for logging in when I don't have my private key (translated: my laptop) with me. For some reason, people look at me strangely when I log in with a one time password because they think it's difficult to set up or something.

On FreeBSD, at least, it's amazingly easy to set up:

[522] (philip@carrot)~% opiepasswd -c
Adding philip:
Only use this method from the console; NEVER from remote. If you are using
telnet, xterm, or a dial-in, type ^C now or exit with no password.
Then run opiepasswd without the -c parameter.
Using MD5 to compute responses.
Enter new secret pass phrase:
Again new secret pass phrase:

ID philip OTP key is 499 ca0476
HAW JUDY DUTY GUN SONG MINK

Linux distributions will probably want to make it a bit more difficult, but I can't imagine them making it much more difficult. You'll probably just have to jump through hoops to install OPIE or S/Key or something similar.

Next time you need to log in without having your private key nearby, the password prompt will ask you for a one time password:

otp-md5 498 ca0476 ext
Password:

Note the 498 above. opiepasswd only told us 499, so you'll need to use opiekey to calculate the response to 498. Not too difficult:

[756] (philip@vimes)~% opiekey 498 ca0476
Using the MD5 algorithm to compute response.
Reminder: Don't use opiekey from telnet or dial-in sessions.
Enter secret pass phrase:
AGO SINK ROLL ROWE ENDS WORE

I like to print out a list of twenty or so one time passwords and carry them around with me. Easy!

Sounds like fun when you want to listen to some music you have at %home :-)

Posted by Serge van Ginderachter at Fri Aug 8 22:40:57 2008
Yes - especially if you forget your list of passwords at home!

Posted by Philip Paeps at Fri Aug 8 22:47:49 2008
Get OTP calculator for cell phone (java) - no need to print list in advance.
http://code.google.com/p/j2me-otp/ (it's not the only one OTP calc).

Posted by Marcin Gryszkalis at Fri Aug 8 23:28:25 2008
Marcin: Thanks for that tip!  Now for figuring out how to stick in on my phone.  I guess I can do that with Bluetooth?  I know I can use my phone as a modem over Bluetooth.  Sticking a file on shouldn't be more difficult.

I'll have a go at that. :-)

Posted by Philip Paeps at Fri Aug 8 23:32:23 2008
I use JOTP: http://www.cs.umd.edu/users/harry/jotp/

I simply downloaded it directly on my (work) phone via http.

Posted by ghen at Fri Aug 8 23:49:54 2008

Name:

Email:

URL:

Comment:


Prove that you are not a spammer: