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

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