MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / hashing

Function hashing

Hashed_and_Salted_Pass/hashing_and_salting.py:6–13  ·  view source on GitHub ↗
(password)

Source from the content-addressed store, hash-verified

4
5
6def hashing(password):
7 byte_string = password.encode('utf-8')
8 hash_object = hashlib.sha256()
9 hash_object.update(byte_string)
10
11 hashed_password = hash_object.hexdigest()
12
13 return hashed_password
14
15def salting(length:int):
16 salt = ''

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected