A 1024 bits hash algorithm
| .gitignore | initial commit | |
| cli.c | feat: Add file hash verification support and help message in cli | |
| makefile | refactor: Transform libyres.a into a simple single header library | |
| README.md | refactor: Transform libyres.a into a simple single header library | |
| SPEC.md | docs: add README.md and SPEC.md | |
| test.txt | docs: Add documentation on README.md | |
| yres.h | refactor: Transform libyres.a into a simple single header library | |
yres - A single header 1024 bits experimental hash algorithm
Documentation
yrescli
This is a basic command where you can enter a input on stdin and get a return on stdout
$ echo "yres hash" | yrescli
ebeef334da646e4d3cd4afc9eeaffaae16c53c30834991ad6c07806a50bedf2c298251bcd2de95347ea348c7e5cf3c24157b52cdce18e039904dc561503c2311606f4d05ac98d4b2c26ca8b5d264129f6c203d53602aaedaf8f26ff1b79a2f4a0d030987ca1f17b664d069509bb892ed843db016951da2d37777602130054f19
Other way to use the command is giving a file to yrescli hash it
$ yrescli test.txt
f18fc82dba9b3603337ee47bd0b339c3259e0bbd700334a8a4c7fb15df3116d5c3be1a4ff6455727447993f0d3f9b620a054a0c2fb3586945388040c5a1b10104cf39e385ef6d1a58bb173ef57099aa8ce2c23dc07ae8af12ad58a61ac6a6e68f5c8b41ba3f05bc272e4e55bdcabec68676cbb2942ce166cd1f618412de35573
yres.h
Here i'll write a simple program that gives a input to yresProcess and print the output
#include "yres.h"#include <stdio.h>
int main() {
char digest[128];
char input[100];
scanf("%s", input);
yresProcess(digest, input);
printf("%s", digest);
return 0;
}
Specification
Take a look on the yres specification
License
This is a public domain project