Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mealet/mul0
- Owner: mealet
- License: mit
- Created: 2024-09-07T21:45:55.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-16T16:48:35.000Z (about 2 months ago)
- Last Synced: 2024-09-16T20:14:56.738Z (about 2 months ago)
- Language: Rust
- Homepage:
- Size: 376 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)