Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chibby0ne/using_sha

Simple sha256 program using openssl's libcrypto library
https://github.com/chibby0ne/using_sha

c crypto sha256

Last synced: about 4 hours ago
JSON representation

Simple sha256 program using openssl's libcrypto library

Awesome Lists containing this project

README

        

# Simple c program that caluclates sha256sum using OpenSSL's Libcrypto

## Build

```
mkdir build
cd build
cmake ..
make
```

## Usage
For use simply provide one command line argument to calculate the sha256sum,
by using both: the sha256 functions from the library, and the bash
command `sha256sum` for verification.

eg:

```
$ ./sha256_test ioajpdsoijfpojdsf
Word to hash: ioajpdsoijfpojdsf
Calculated hash: 050b2748fd858f0eefcae1216e0788caed979ac8edc6c7c4690b84d04952ac6e
Golden hash (sha256sum): 050b2748fd858f0eefcae1216e0788caed979ac8edc6c7c4690b84d04952ac6e
Hash matches!
```

## License

MIT