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
647 B
Markdown

# Not sha1
1 year ago
This was a failed attempt to create SHA1 algorithm in C. The algorithm achieved still seems sensitive to small changes in text files. So maybe it can be used in stuff like VCS and build systems.
## 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. NSHA1_Result struct to store result
2. nsha1file, a function to get nsha1 of a file.
3. leftRotate32, a macro to circular shift 32 bit unsigned integers.