~javier.collado/junk/2fa-multiple-key-directories

Viewing all changes in revision 5.

  • Committer: Javier Collado
  • Date: 2012-04-10 07:31:43 UTC
  • Revision ID: javier.collado@canonical.com-20120410073143-xi2kc8y30sek2k0t
Added support for multiple key directories

A new command line argument has been added to pass the key directory to use.
The use case for this is to have the 2fa profile data stored in an alternative
directory in a removable media, so that there is no need to store it in your
laptop when traveling but in another device such as a USB stick.

For example:
- Create key:
./2fa -d .

- Generate OTP:
./2fa

Note that on OTP generation, the script looks by default in the same directory
where the it's located, that is, both the script and the data can be
stored in the removable device. If you prefer to keep just the profile data in
separate directory, then `-d` can also be used on OTP generation as follows:
./2fa -d <dir>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: