Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mealet/mul0

Pet-project hashing algorithm
https://github.com/mealet/mul0

Last synced: 24 days ago
JSON representation

Pet-project hashing algorithm

Awesome Lists containing this project

README

        








## 👀 Installation
Short instruction:
1. Download the [latest release](https://github.com/mealet/mul0/releases/latest) for you'r system (linux, windows, macos)
2. Move it to any folder on you'r PC
3. Done

## 🧭 Usage
1. Open terminal in **mul0** directory and run it:
```sh
# MacOS or Linux
./mul0

# Windows
./mul0.exe
```
2. Follow instructions from _help_ message

**Basic Example:**
```bash
$> ./mul0 hash "Hello, World! 2 + 2 = 4"
Mul0 output (printed to stderr):
14401c681e601e601f380c60090018781f3820101e601c20094809000e1009000c1809000e100900112809000ea00072

$> ./mul0 dehash "14401c681e601e601f380c60090018781f3820101e601c20094809000e1009000c1809000e100900112809000ea00072"
Mul0 output (printed to stderr):
Hello, World! 2 + 2 = 4
```

## 🦀 How it works
Algorithm takes first byte and uses it as a key. Next steps are pretty simple:

1. Multiply every byte on key's byte
2. Convert every byte to hexdecimal number and resize it to 4 chars
3. Put all strings together
4. Place key at the end

## **🦛 License**
Project licensed under the MIT License.
See more in the [LICENSE file](https://github.com/mealet/mul0/blob/main/LICENSE)