You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
542 B
Markdown

# SHA1 in C
1 year ago
SHA1 algorithm in C. A single function that reads a file and outputs it's sha1sum.
## How to use
This is a single header project. Only nsha1.h needs to be included. Usage is shown in **example.c** file. So there are only 2 source files, nsha1.h and example.c
To compile :
```
python3 flow
```
To clean:
```
python3 flow clean
```
The "library" is only adding:
1. SHA1_Result struct to store result
2. SHA1_sha1file, a function to get nsha1 of a file.
3. leftRotate32, a function to circular shift 32 bit unsigned integers.