RIPEMD-160
Time limit1sMemory limit256 MB
Compute the RIPEMD-160 hash of an alphanumeric string of length at most 50 and print it as 40 lowercase hexadecimal digits.
- Level
Medium4 of 10
- Topics
- Implementation, Bit manipulation
- Solved
- No attempts yet
Problem
Given a string , write a program that computes the RIPEMD-160 hash of . RIPEMD-160 is a hash function that reduces a byte sequence of any length to a 160-bit hash value. Treat as a sequence of ASCII bytes.
Input
The first line contains the string . consists only of uppercase letters, lowercase letters, and digits, and its length is at most 50.
Output
On the first line, print the RIPEMD-160 hash of as 40 lowercase hexadecimal digits.