Python

SHA1


程式碼

import hashlib

def get_sha1(path):
  with open(path, 'rd') as f:
    return hashlib.sha1(f.read()).hexdigest()


返回上一頁