/GitHashingExercise

Repository for a quiz in Operating Systems

Primary LanguageShell

Git Hashing Exercise

This is the 4th quiz of the course Operating Systems, its purpose being git training.

How to run the script

In order to run the script use

bash hash_script "your_string_here"

or alternatively

  1. Give executing rights to the script:
chmod +x hash_script
  1. Run it with
./hash_script

How the script works

The script runs the input through the SHA-256 algorithm and prints the output.

Example

$ bash hash_script "Hello, World!"

Outputs:

Hashed value of 'Hello, World!': 91a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e