summaryrefslogtreecommitdiff
path: root/docs/lib
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2016-11-09 12:10:25 -0500
committerEli Collins <elic@assurancetechnologies.com>2016-11-09 12:10:25 -0500
commit38b50a4b158709655637aa2889ded9294b4ac88f (patch)
tree6527fb7a6e0324f1be1bafddc62e6ab5b14c8fd5 /docs/lib
parentb22a1242739bae5b4242ac0c341a5ab911a8d316 (diff)
downloadpasslib-38b50a4b158709655637aa2889ded9294b4ac88f.tar.gz
totp: consolidated key parsing code, clarified AppWallet behavior,
* renamed AppWallet.can_encrypt -> AppWallet.has_secrets, no longer set to False if AES support is missing -- that way if app provides a secret, we either encrypt or throw error, rather than silently not encrypting. * .to_dict()'s "encrypt" keyword now uses None as default, rather than special string "auto" * hmac function now cached across multiple ._generate() calls, making ._find_match() a lot faster. * .key now a property, so that setting it clears encrypt key & hmac cache * factored out encrypted key code into .encrypted_key property.
Diffstat (limited to 'docs/lib')
-rw-r--r--docs/lib/passlib.totp-tutorial.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/lib/passlib.totp-tutorial.rst b/docs/lib/passlib.totp-tutorial.rst
index 896192e..8ac99c3 100644
--- a/docs/lib/passlib.totp-tutorial.rst
+++ b/docs/lib/passlib.totp-tutorial.rst
@@ -58,7 +58,7 @@ When your application is being initialized, create a TOTP factory which is confi
for your application, and is set up to use the application secrets.
>>> from passlib.totp import TOTP
- >>> TotpFactory = TOTP.using(secret_path='/path/to/secret/file/in/step/1')
+ >>> TotpFactory = TOTP.using(secrets_path='/path/to/secret/file/in/step/1')
Note that the ``TotpFactory`` instance returned by :meth:`TOTP.using` will actually be a subclass
of :class:`TOTP` itself, and has the same methods and attributes. The main difference is that (because