MCPcopy Create free account
hub / github.com/MearaY/StegaPy / password_hash

Method password_hash

StegaPy/util/common_util.py:34–36  ·  view source on GitHub ↗

计算密码哈希值

(password)

Source from the content-addressed store, hash-verified

32
33 @staticmethod
34 def password_hash(password):
35 """计算密码哈希值"""
36 return int(hashlib.sha256(password.encode()).hexdigest()[:16], 16)
37
38 @staticmethod
39 def get_file_extension(filename):

Callers 3

generate_signatureMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected