python-hashlib加密

以前遇到過MD5加密的問題,今天整理一下hashlib模塊,瞭解常見的加密方式。web import hashlib string = "123456" md5加密 md5 = hashlib.md5() md5.update(string.encode('utf-8')) res = md5.hexdigest() print("md5加密結果:",res) sha1加密 sha1 =
相關文章
相關標籤/搜索