Update TOTP example code for python 3
Change-Id: I8e16fe1a002295753ab03cb8da74c0d43785f6d7
This commit is contained in:
@@ -40,8 +40,8 @@ secret:
|
|||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
message = '1234567890123456'
|
message = b'1234567890123456'
|
||||||
print base64.b32encode(message).rstrip('=')
|
print(base64.b32encode(message).rstrip(b'='))
|
||||||
|
|
||||||
Example output::
|
Example output::
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user