SHA-1
Time limit1sMemory limit256 MB
Given an alphanumeric string of length 1 to 50, print its SHA-1 hash as 40 lowercase hex digits.
- Level
Medium4 of 10
- Topics
- Implementation, Simulation, Bit manipulation
- Solved
- No attempts yet
Problem
SHA-1 is a hash function that reduces any byte sequence to a single 160-bit value. Given a string , read as ASCII bytes and compute its SHA-1 hash.
Input
The first line contains the string . consists only of uppercase letters, lowercase letters, and digits, and its length is between 1 and 50.
Output
Print the SHA-1 hash of on the first line as 40 lowercase hexadecimal digits.