Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/chibby0ne/using_sha
- Owner: chibby0ne
- Created: 2018-01-30T22:17:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-30T22:19:09.000Z (almost 7 years ago)
- Last Synced: 2024-11-08T11:22:50.524Z (about 2 months ago)
- Topics: c, crypto, sha256
- Language: C
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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