MIM is a Hash Visualization format utilising 4x4 colour matrixes. This provides a quick and easy method to compare fingerprints, e.g. SSH keys, x509 certs etc.
[ Go Implementation ] [ Rust Implementation ]
- Pre Image Resistant
- Fixed Length Output
- Collision Resistant
- Fast & Efficient
- Customisable CHF
- Identical Colours Cross Platform
MIM outputs coloured ANSI escape codes or SVGs.
package main
import (
"crypto/sha256"
"fmt"
"github.com/go-compile/mim"
)
func main() {
fingerprint := sha256.Sum256([]byte("certificate contents would typically go here"))
fmt.Printf("Fingerprint: %X\n\n", fingerprint)
fmt.Println(mim.New(fingerprint[:], sha256.New).ANSI())
}