Merge "Update TOTP example code for python 3"

This commit is contained in:
Zuul 2022-04-22 16:30:04 +00:00 committed by Gerrit Code Review
commit 01e1a083d5
1 changed files with 2 additions and 2 deletions

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::