[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[OATH-Toolkit-help] [sr #108846] oathtool should be able to read key fro
From: |
Andrew McGlashan |
Subject: |
[OATH-Toolkit-help] [sr #108846] oathtool should be able to read key from a file |
Date: |
Mon, 06 Jul 2015 09:12:20 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0 |
Follow-up Comment #1, sr #108846 (project oath-toolkit):
Have a look at my implementation.
User config file sample:
http://ix.io/jvC
(is stored as ~USERNAME/.oathtool.conf)
Python script:
http://ix.io/jvD
(store somewhere in user path, suggest /usr/local/bin)
Requires:
python-gnupg
Create the secret files as follows:
$ echo -en "secretstring" |
gpg -e -a -o servicename.gpg -r YOURGPGKEY_OR_EMAIL
(NB: use space before echo so as to not enter history)
Or you could just create the gpg file with symmetric encryption...
Make sure that you don't include a trailing line feed for the secret!
Obviously using "-a" for ASCII armour is optional....
Enjoy.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/support/?108846>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/