Skip to content

Files

Latest commit

95343e9 · Aug 27, 2024

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 27, 2024
Aug 24, 2024

Java HackerRank

Difficulty Max Score Success Ratio
Medium 30 98.21%

MD5 (Message-Digest algorithm 5) is a widely-used cryptographic hash function with a [SVG image] -bit hash value. Here are some common uses for MD5:

  • To store a one-way hash of a password.
  • To provide some assurance that a transferred file has arrived intact.

MD5 is one in a series of message digest algorithms designed by Professor Ronald Rivest of MIT (Rivest, [SVG image] ); however, the security of MD5 has been severely compromised, most infamously by the Flame malware in [SVG image] . The CMU Software Engineering Institute essentially considers MD5 to be "cryptographically broken and unsuitable for further use".

Given an alphanumeric string, [SVG image] , denoting a password, compute and print its MD5 encryption value.

Input Format

A single alphanumeric string denoting [SVG image] .

Constraints

  • [SVG image]
  • String [SVG image] consists of English alphabetic letters (i.e., [SVG image] and/or decimal digits (i.e., [SVG image] through [SVG image] ) only. Output Format

Print the MD5 encryption value of [SVG image] on a new line.

Sample Input 0

HelloWorld

Sample Output 0

68e109f0f40ca72a15e05cc22786f8e6

Sample Input 1

Javarmi123

Sample Output 1

2da2d1e0ce7b4951a858ed2d547ef485

💡 Hints

➡️ Approach

✅ Detailed Solution

View Solution : Java MD5

Submissions Leaderboard Discussions Editorial
📝 My Submission 🏆 Track our position 🤔 Help from Community ✍️ Editorial