| Total Complexity | 1 |
| Total Lines | 7 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import hashlib |
||
| 2 | |||
| 3 | |||
| 4 | def sha512(password: str) -> str: |
||
| 5 | """Return a sha512 hash of the given password.""" |
||
| 6 | return hashlib.sha512(password.encode('utf-8')).hexdigest() |
||
| 7 |