Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome Leclanche committed Apr 13, 2012
1 parent 0491691 commit 66840ab
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.rst
@@ -1,3 +1,29 @@
Using the command-line tool
===========================

bna is a command line interface to the python-bna library. It can store and manage multiple authenticators, as well as create new ones.


Two things to remember:
- Using an authenticator on the same computer as the one you're playing on is *not secure*.
- It is impossible (without knowing the secret) to import an existing authenticator

Creating a new authenticator
----------------------------
::

$ bna --new --set-default

Getting an authentication token
-------------------------------
::

$ bna
01234567

Using the python-bna library
============================

Requesting a new authenticator
------------------------------
::
Expand All @@ -19,7 +45,7 @@ Getting a token
# Get and print a token
token, timeRemaining = bna.getToken(secret=secret)
print token

# print a new token every time the previous one expires
from time import sleep
while True:
Expand Down

0 comments on commit 66840ab

Please sign in to comment.