(password)
| 4 | |
| 5 | |
| 6 | def 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 | |
| 15 | def salting(length:int): |
| 16 | salt = '' |
no outgoing calls
no test coverage detected