windows : Hash_1.0.4.exe 可以检查md5 https://help.ubuntu.com/community/HowToMD5SUM Introduction When one has downloaded an ISO file for installing or trying Ubuntu, it is recommended to test that the file is correct and safe to use. The MD5 calculation
md5: import hashlib md5 = hashlib.md5() md5.update(bytes('http://www.baidu.com',encoding="utf-8")) result = md5.hexdigest() SHA1: import hashlib sha1 = hashlib.sha1() sha1.update(bytes('how to use sha1 in ',encoding="utf-8")) result =