A C implementation of the SHA-512 cryptographic hash function. This project provides a simple and efficient way to generate SHA-512 hashes for input data.
- Pure C implementation of SHA-512
- Handles input data of any length
- Produces 512-bit (64-byte) hash output
- Includes proper padding and message scheduling
To build the project, simply run:
makeThis will create an executable named sha512.
./sha512 < input_fileThe program reads input from stdin and outputs the SHA-512 hash in hexadecimal format.
To clean up build artifacts:
make cleanThe implementation follows the SHA-512 specification as defined in FIPS 180-4, including:
- Message padding
- Message scheduling
- Compression function
- Final hash computation