News for hackers. Stuff that matters.
Re:How does Google Authenticator work? by nick_name on Friday August 27, 2021 @09:01PM (#28334605)

  # python3 -m pip install pyotp
  SECRET='JBSWY3DPEHPK3PXP' python3 -c "import pyotp; print(pyotp.TOTP('${SECRET}').now())"
Re:How does Google Authenticator work? by dxdm on Friday August 27, 2021 @10:02PM (#28334953)
I think you forgot to install that 3rd party dependency that does all the heavy lifting here.
Re:How does Google Authenticator work? by muldvarp on Saturday August 28, 2021 @05:45AM (#28336828)
Although "heavy lifting" is a bit of an overstatement here. pyotp has around 200 lines of code.