diff options
author | Jiangge Zhang <tonyseek@gmail.com> | 2015-06-03 20:37:39 +0800 |
---|---|---|
committer | Jiangge Zhang <tonyseek@gmail.com> | 2015-06-03 20:37:39 +0800 |
commit | 0d9dbbe40d95cc623df218ebf74ef66f3bc1c758 (patch) | |
tree | aca333b4537df4f52f8a5d3eb3bff10c460b4f28 | |
parent | d4e0a839ef676a2ed05140f98ef3630deb0fdd61 (diff) | |
download | cryptography-0d9dbbe40d95cc623df218ebf74ef66f3bc1c758.tar.gz cryptography-0d9dbbe40d95cc623df218ebf74ef66f3bc1c758.tar.bz2 cryptography-0d9dbbe40d95cc623df218ebf74ef66f3bc1c758.zip |
add license header and fix grammar errors.
-rw-r--r-- | docs/hazmat/primitives/twofactor.rst | 4 | ||||
-rw-r--r-- | src/cryptography/hazmat/primitives/twofactor/utils.py | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/docs/hazmat/primitives/twofactor.rst b/docs/hazmat/primitives/twofactor.rst index 016c30eb..e149da02 100644 --- a/docs/hazmat/primitives/twofactor.rst +++ b/docs/hazmat/primitives/twofactor.rst @@ -194,8 +194,8 @@ Provisioning URI The provisioning URI of HOTP and TOTP is not actual the part of RFC 4226 and RFC 6238, but a `spec of Google Authenticator <http://git.io/vkvvY>`_. It is -wide supported by web sites and mobile applications which using Two-Factor -authentication. +widely supported by web sites and mobile applications which are using +Two-Factor authentication. For generating a provisioning URI, you could use the ``get_provisioning_uri`` method of HOTP/TOTP instances. diff --git a/src/cryptography/hazmat/primitives/twofactor/utils.py b/src/cryptography/hazmat/primitives/twofactor/utils.py index ae32058b..91d2e148 100644 --- a/src/cryptography/hazmat/primitives/twofactor/utils.py +++ b/src/cryptography/hazmat/primitives/twofactor/utils.py @@ -1,3 +1,7 @@ +# This file is dual licensed under the terms of the Apache License, Version +# 2.0, and the BSD License. See the LICENSE file in the root of this repository +# for complete details. + from __future__ import absolute_import, division, print_function import base64 |