1
0
Fork
You've already forked yres
0
A 1024 bits hash algorithm
  • C 97.3%
  • Makefile 2.7%
2026年04月26日 14:13:32 -03:00
.gitignore initial commit 2026年04月21日 18:08:12 -03:00
cli.c feat: Add file hash verification support and help message in cli 2026年04月21日 21:34:23 -03:00
makefile refactor: Transform libyres.a into a simple single header library 2026年04月26日 14:13:32 -03:00
README.md refactor: Transform libyres.a into a simple single header library 2026年04月26日 14:13:32 -03:00
SPEC.md docs: add README.md and SPEC.md 2026年04月25日 19:11:58 -03:00
test.txt docs: Add documentation on README.md 2026年04月25日 19:26:39 -03:00
yres.h refactor: Transform libyres.a into a simple single header library 2026年04月26日 14:13:32 -03:00

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