SHA1 in C
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.
 
 
lomna-dev d72e042ce2 Failure
Failed to compute sha1 of a file in C.
1 year ago
.gitignore Initial commit 1 year ago
LICENSE Initial commit 1 year ago
README.md Failure 1 year ago
build.flow Failure 1 year ago
example.c Failure 1 year ago
flow Failure 1 year ago
nsha1.h Failure 1 year ago
output.flow Failure 1 year ago

README.md

nsha1

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 strcut to store result
  2. nsha1file, a function to get nsha1 of a file.
  3. leftRotate32, a macro to circular shift 32 bit unsigned integers.