Commits

Trammell Hudson  committed 42bd243

script to generate otp file

  • Participants
  • Parent commits 832c5c9

Comments (0)

Files changed (1)

File auth/src/secret2otp

+#!/usr/bin/python
+import sys
+import base64
+
+raw = base64.b32decode(sys.argv[1].upper())
+bytes = [hex(ord(i)) for i in raw]
+
+print '/* DO NOT CHECK IN THIS GENERATED FILE */'
+print ', '.join(bytes)