This is the 4th quiz of the course Operating Systems, its purpose being git training.
In order to run the script use
bash hash_script "your_string_here"
or alternatively
- Give executing rights to the script:
chmod +x hash_script
- Run it with
./hash_script
The script runs the input through the SHA-256 algorithm and prints the output.
$ bash hash_script "Hello, World!"
Outputs:
Hashed value of 'Hello, World!': 91a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e