Source

pebble / auth / src / secret2otp

Full commit
Trammell Hudson 42bd243 







1
2
3
4
5
6
7
8
9
#!/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)