/hash-md5

Primary LanguagePythonMIT LicenseMIT

MD5 Hashing in Python

This Python script demonstrates how to hash a string with MD5 using the hashlib module.

Prerequisites

  • Python 3.x

Usage

  1. Clone the repository or download the hash_md5.py file.

  2. Open a terminal or command prompt and navigate to the directory containing the hash_md5.py file.

  3. Run the script with the following command:

    python hash_md5.py "Input String"

    Replace "Input String" with the string you want to hash.

    If no command-line argument is provided, the script will prompt you to enter the input string interactively.

  4. The script will output the input string and its corresponding MD5 hash.

Example

python hash_md5.py "Hello, World!"

Output:

Input string: Hello, World!
MD5 hash: 3e25960a79dbc69b674cd4ec67a72c62

License

This project is licensed under the MIT License.