Python hashlib.sha1() Function
The hashlib.sha1() function returns a SHA-1 hash object.
Note: SHA-1 is deprecated for security purposes. Use SHA-256 or SHA-512 for new applications.
Syntax
hashlib.sha1(data)
Return Value
A hash object.
Example
Output
Click Run to execute your code