PyOTP 2.2.1__py2.py3-none-any.whl → 2.2.4__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pyotp/utils.py CHANGED
@@ -46,7 +46,7 @@ def build_uri(secret, name, initial_count=None, issuer_name=None,
46
46
  is_period_set = (period is not None and period != 30)
47
47
 
48
48
  otp_type = 'hotp' if is_initial_count_present else 'totp'
49
- base_uri = 'otpauth://{}/{}?{}'
49
+ base_uri = 'otpauth://{0}/{1}?{2}'
50
50
 
51
51
  url_args = {'secret': secret}
52
52
 
@@ -12,6 +12,8 @@ Authenticator <https://en.wikipedia.org/wiki/Google_Authenticator>`_, `Authy <ht
12
12
  compatible app. Users can set up auth tokens in their apps easily by using their phone camera to scan `otpauth://
13
13
  <https://github.com/google/google-authenticator/wiki/Key-Uri-Format>`_ QR codes provided by PyOTP.
14
14
 
15
+ We recommend that implementers read the `OWASP Authentication Cheat Sheet <https://www.owasp.org/index.php/Authentication_Cheat_Sheet>`_ and `NIST SP 800-63-3: Digital Authentication Guideline <https://pages.nist.gov/800-63-3/>`_ for a high level overview of authentication best practices.
16
+
15
17
  Quick overview of using One Time Passwords on your phone
16
18
  --------------------------------------------------------
17
19
 
@@ -95,6 +97,8 @@ Links
95
97
  * `RFC 6238: TOTP: Time-Based One-Time Password Algorithm <https://tools.ietf.org/html/rfc6238>`_
96
98
  * `ROTP <https://github.com/mdp/rotp>`_ - Original Ruby OTP library by `Mark Percival <https://github.com/mdp>`_
97
99
  * `OTPHP <https://github.com/lelag/otphp>`_ - PHP port of ROTP by `Le Lag <https://github.com/lelag>`_
100
+ * `OWASP Authentication Cheat Sheet <https://www.owasp.org/index.php/Authentication_Cheat_Sheet>`_
101
+ * `NIST SP 800-63-3: Digital Authentication Guideline <https://pages.nist.gov/800-63-3/>`_
98
102
 
99
103
  .. image:: https://img.shields.io/travis/pyotp/pyotp.svg
100
104
  :target: https://travis-ci.org/pyotp/pyotp
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.0
2
2
  Name: pyotp
3
- Version: 2.2.1
3
+ Version: 2.2.4
4
4
  Summary: Python One Time Password Library
5
5
  Home-page: https://github.com/pyotp/pyotp
6
6
  Author: PyOTP contributors
@@ -32,6 +32,8 @@ Authenticator <https://en.wikipedia.org/wiki/Google_Authenticator>`_, `Authy <ht
32
32
  compatible app. Users can set up auth tokens in their apps easily by using their phone camera to scan `otpauth://
33
33
  <https://github.com/google/google-authenticator/wiki/Key-Uri-Format>`_ QR codes provided by PyOTP.
34
34
 
35
+ We recommend that implementers read the `OWASP Authentication Cheat Sheet <https://www.owasp.org/index.php/Authentication_Cheat_Sheet>`_ and `NIST SP 800-63-3: Digital Authentication Guideline <https://pages.nist.gov/800-63-3/>`_ for a high level overview of authentication best practices.
36
+
35
37
  Quick overview of using One Time Passwords on your phone
36
38
  --------------------------------------------------------
37
39
 
@@ -115,6 +117,8 @@ Links
115
117
  * `RFC 6238: TOTP: Time-Based One-Time Password Algorithm <https://tools.ietf.org/html/rfc6238>`_
116
118
  * `ROTP <https://github.com/mdp/rotp>`_ - Original Ruby OTP library by `Mark Percival <https://github.com/mdp>`_
117
119
  * `OTPHP <https://github.com/lelag/otphp>`_ - PHP port of ROTP by `Le Lag <https://github.com/lelag>`_
120
+ * `OWASP Authentication Cheat Sheet <https://www.owasp.org/index.php/Authentication_Cheat_Sheet>`_
121
+ * `NIST SP 800-63-3: Digital Authentication Guideline <https://pages.nist.gov/800-63-3/>`_
118
122
 
119
123
  .. image:: https://img.shields.io/travis/pyotp/pyotp.svg
120
124
  :target: https://travis-ci.org/pyotp/pyotp
@@ -0,0 +1,12 @@
1
+ pyotp/__init__.py,sha256=3I4NkdbXw4iHBbtfL7-dbNv8XZn0EUzS0Fc1riI1CJ8,485
2
+ pyotp/compat.py,sha256=QVb4buImn4PyP0qe5uLiXsO2-p4ItTGl01Vbt2dILNE,222
3
+ pyotp/hotp.py,sha256=npnuKlg4NWg5XLv2p3cMrDbtjZB24hpeQVNquFpMZdM,1467
4
+ pyotp/otp.py,sha256=pyX-Rdo6AyyRAotMv-rAOQh82JtXp5tfCreIKmIq93E,2262
5
+ pyotp/totp.py,sha256=2gk1cr-F3G8QBbkdSLggmKmWhEB3NqcQbhJTs6sAlvs,2561
6
+ pyotp/utils.py,sha256=VTt1Dy_zR7YuhiNngYrrCmNBwroEYPpnl33rB1RO9p0,3310
7
+ pyotp-2.2.4.dist-info/DESCRIPTION.rst,sha256=_DHPmEMWwU2DG7zN4cfuQp2THY2GqJnMD4SJwwx1uk4,5138
8
+ pyotp-2.2.4.dist-info/METADATA,sha256=S-HdzGqhANkglB7IcKN5EYdk1Fu12bGF7xjBMxNsrgM,5834
9
+ pyotp-2.2.4.dist-info/RECORD,,
10
+ pyotp-2.2.4.dist-info/WHEEL,sha256=o2k-Qa-RMNIJmUdIc7KU6VWR_ErNRbWNlxDIpl7lm34,110
11
+ pyotp-2.2.4.dist-info/metadata.json,sha256=0mlcDG4g6Q5r5KRX2wwT2_L7vEhqnTtg_Rh36hZld2w,825
12
+ pyotp-2.2.4.dist-info/top_level.txt,sha256=rFDgz6Sm4nbkYk6tlSRiMcJPyYdnY6LcZiAaYTxVc5k,6
@@ -1 +1 @@
1
- {"classifiers": ["Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Libraries :: Python Modules"], "extensions": {"python.details": {"contacts": [{"email": "kislyuk@gmail.com", "name": "PyOTP contributors", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "https://github.com/pyotp/pyotp"}}}, "generator": "bdist_wheel (0.29.0)", "license": "BSD License", "metadata_version": "2.0", "name": "pyotp", "platform": "MacOS X", "summary": "Python One Time Password Library", "version": "2.2.1"}
1
+ {"classifiers": ["Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Libraries :: Python Modules"], "extensions": {"python.details": {"contacts": [{"email": "kislyuk@gmail.com", "name": "PyOTP contributors", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "https://github.com/pyotp/pyotp"}}}, "generator": "bdist_wheel (0.29.0)", "license": "BSD License", "metadata_version": "2.0", "name": "pyotp", "platform": "MacOS X", "summary": "Python One Time Password Library", "version": "2.2.4"}
@@ -1,12 +0,0 @@
1
- pyotp/__init__.py,sha256=3I4NkdbXw4iHBbtfL7-dbNv8XZn0EUzS0Fc1riI1CJ8,485
2
- pyotp/compat.py,sha256=QVb4buImn4PyP0qe5uLiXsO2-p4ItTGl01Vbt2dILNE,222
3
- pyotp/hotp.py,sha256=npnuKlg4NWg5XLv2p3cMrDbtjZB24hpeQVNquFpMZdM,1467
4
- pyotp/otp.py,sha256=pyX-Rdo6AyyRAotMv-rAOQh82JtXp5tfCreIKmIq93E,2262
5
- pyotp/totp.py,sha256=2gk1cr-F3G8QBbkdSLggmKmWhEB3NqcQbhJTs6sAlvs,2561
6
- pyotp/utils.py,sha256=kNwgfDnm1jlAyJeDf3bGtA4Olg9NzkZVHoHPK7OegGo,3307
7
- pyotp-2.2.1.dist-info/DESCRIPTION.rst,sha256=VEX6K-7MXd4G-xKz2XuJXZyPrmNi4Gv5M2eJMJ208jU,4657
8
- pyotp-2.2.1.dist-info/METADATA,sha256=JqhyRbosUDjj0Kj4oKWIeODbXQcpk7xg-3YecJAusa4,5353
9
- pyotp-2.2.1.dist-info/RECORD,,
10
- pyotp-2.2.1.dist-info/WHEEL,sha256=o2k-Qa-RMNIJmUdIc7KU6VWR_ErNRbWNlxDIpl7lm34,110
11
- pyotp-2.2.1.dist-info/metadata.json,sha256=pIO9EU3zTtJEh4U6l6YQsZXK1TtPFU6iZvJiV0ZVSyk,825
12
- pyotp-2.2.1.dist-info/top_level.txt,sha256=rFDgz6Sm4nbkYk6tlSRiMcJPyYdnY6LcZiAaYTxVc5k,6
File without changes