Jump to content

TomekB

Member
  • Posts

    4
  • Joined

  • Last visited

TomekB's Achievements

Helping Hand

Helping Hand (3/5)

2

Reputation

  1. That's now done. `master` is now default branch. Also updated README file with the corrected link.
  2. Here's Python3 version for those who don't want to download Python2 for macOS 12.3 => https://github.com/tbrek/alfred-workflow-gauth/blob/master/Google Authenticator.alfredworkflow?raw=true
  3. Ignore the fix I posted above it's not relevant. The issue was caused by secret which were not multiple of 8. So the actual fix is to replace `16.0` and `8` in the line you posted to `8.0` and `8` secret = secret.ljust(int(math.ceil(len(secret) / 8.0) * 8), '=') This will fix the padding for the keys which length is not a multiple of 8, such as Amazon. With 16.0 and 16 the script was adding too many "=" to the secret which was causing an error with b32decode.
  4. I have fixed that by replacing key decoding in two places in gauth.py key = base64.b32decode(secret[0:8], casefold=True) key = key + base64.b32decode(secret[8:16], casefold=True) key = key + base64.b32decode(secret[16:24], casefold=True) key = key + base64.b32decode(secret[24:32], casefold=True) key = key + base64.b32decode(secret[32:40], casefold=True) key = key + base64.b32decode(secret[40:48], casefold=True) key = key + base64.b32decode(secret[48:56], casefold=True) key = key + base64.b32decode(secret[56:64], casefold=True) As longer key seems to be not supported by b32decode.
×
×
  • Create New...