(a2b_hex)binascii.Error: Non-hexadecimal digit found

HEX_CHAR = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f']

错误:16进制字符串转化错误

原因: key不是16进制的字符串 含有HEX_CHAR 之外的数据

原文地址:https://www.cnblogs.com/shmily3929/p/11637437.html