Passed
Push — mvp ( 8838f1...7a4c00 )
by Yohann
01:13
created

security   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A sha512() 0 3 1
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