#!/bin/env python3 import random import string def ranstr(num): return ''.join(random.sample(string.ascii_letters + string.digits, num)) salt = ranstr(32) print(salt)
微信支付的Key就可以这么生成
#!/bin/env python3 import random import string def ranstr(num): return ''.join(random.sample(string.ascii_letters + string.digits, num)) salt = ranstr(32) print(salt)
微信支付的Key就可以这么生成