https://github.com/kiedtl/signet
Easily compare SHA/BLAKE2 sums.
https://github.com/kiedtl/signet
blake2 hash security sha1 sha256
Last synced: 11 months ago
JSON representation
Easily compare SHA/BLAKE2 sums.
- Host: GitHub
- URL: https://github.com/kiedtl/signet
- Owner: kiedtl
- License: other
- Created: 2020-01-28T21:09:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-25T19:07:23.000Z (about 4 years ago)
- Last Synced: 2025-04-04T15:21:17.300Z (about 1 year ago)
- Topics: blake2, hash, security, sha1, sha256
- Language: C
- Homepage:
- Size: 48.8 KB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# signet
> Easily compare SHA/MD5/BLAKE2 hashes.
## what?
signet attempts to make it easy to visually compare hashes/data by generating a
randomart-esque ASCII art (from hexadecimal-encoded binary data):
```
$ sha256sum ./signet.c ./matrix.c
fd627a963b7eace6f8737dddda36891d6686eee47ab671a87a6340890b10aa58 ./signet.c
71119e0e9132c7d943505e44995a38d2747f6be0db7beb4be77ffaca3d63a937 ./matrix.c
$ sha256sum ./signet.c ./matrix.c | ./signet
./signet.c
+--------------------+
| |
| |
| |
| . |
| . o |
| S . E |
| . + o . . |
| . . B + |
|o* + . * |
|=.X.= . . |
|=**Bo+. o|
+--------------------+
./matrix.c
+--------------------+
| .. o=o.=+=+ |
|.. . ++ Oo |
|.. . . o o |
| . . . |
| + . o |
|. + . S |
| . |
|. . |
| + . |
|o = E . |
|.+.o.o .|
+--------------------+
```
## how?
It uses an algorithm very similar to the one SSH uses to generate the
randomart seen when generating a new key (`ssh-keygen`). This algorithm
is more fully described in the following two locations:
- [Making art with SSH key randomart](https://blog.benjojo.co.uk/post/ssh-randomart-how-does-it-work-art)
- [drunken bishop](http://www.dirk-loss.de/sshvis/drunken_bishop.pdf)
## where?
**build dependencies**:
- C99 compiler, GNU Make
**tl;dr**:
```
$ git clone git://github.com/kiedtl/signet.git
$ make clean all
# make install
```
You can also download a tarball from the releases if you wish.
## why?
¯\\\_(ツ)\_/¯
## todo
- support for `$NO_COLOR`
- Windows support
## license
- Licensed under the MIT license. [View LICENSE.md](LICENSE.md)