Skip to content
Browse files

Update README.rst

  • Loading branch information...
1 parent 0491691 commit 66840abd067cacb7d2c585fac2a06c72e85b2887 @jleclanche committed Apr 13, 2012
Showing with 27 additions and 1 deletion.
  1. +27 −1 README.rst
View
28 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
------------------------------
::
@@ -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:

0 comments on commit 66840ab

Please sign in to comment.
Something went wrong with that request. Please try again.