You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
340 B

import sys
ENC = b'abcdefghijklmnopqrstuvwxyz0123456789 \n.,:;!"\'-=_[](){}<>@#$%^&*?'
ENC_D = [63] * 256
for k, v in enumerate(ENC):
ENC_D[v] = k
for k, v in enumerate(b'ABCDEFGHIJKLMNOPQRSTUVWXYZ'):
ENC_D[v] = k
if __name__ == '__main__':
print(len(ENC), file=sys.stderr)
print('db', ','.join(str(i) for i in ENC_D))