使用python实现 md5,hmacmd5,sha256,hmacsha256,base64加密算法
importhmacimporthashlibdefjm_sha256(key,value):"""sha256加密return:加密结果转成16进制字符串形式"""hsobj=hashlib.sha256(key.encode("utf-8"))hsobj.update(value.encode("utf-8"))returnhsobj.hexdigest()print(jm_sha256("s