Update TOTP example code for python 3

Change-Id: I8e16fe1a002295753ab03cb8da74c0d43785f6d7
This commit is contained in:
Jake Yip
2022-03-18 16:01:02 +11:00
parent 433f541b97
commit afec310e3f

View File

@@ -40,8 +40,8 @@ secret:
.. code-block:: python
import base64
message = '1234567890123456'
print base64.b32encode(message).rstrip('=')
message = b'1234567890123456'
print(base64.b32encode(message).rstrip(b'='))
Example output::