Mais conteúdo relacionado
Semelhante a JAWS FESTA 中四国 2017 懇親会LT (20)
JAWS FESTA 中四国 2017 懇親会LT
- 19. • PyOTP - The Python One-Time Password Library
• https://github.com/pyotp/pyotp
• otp: One Time Password utilities Go / Golang
• https://github.com/pquerna/otp
- 20. PyOTP
[akira@Akira-Mac ~]$ python
Python 2.7.10 (default, Jul 15 2017, 17:16:57)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on
darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyotp
>>> totp = pyotp.TOTP(“seecret_key")
>>> print(totp.now())
139568
>>> print(totp.now())
416613