Krypt
Krypt is a swiss-army knife for encoding, decoding, and hashing in the terminal.
Installation
Using cargo
cargo install krypt
Building from source
Requirements:
- Rust (1.41 stable)
- cargo
git clone git@github.com:Stupremee/krypt
cd krypt
# Just build the binary
cargo build --release
# Install krypt
cargo install --path .
Usage
Hashing
# hash stdin input and output hex representation
|
> b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9
# output raw bytes to
# -f raw is optional because the default format is raw
| |
> 00000000
> │00000010│
> └────────┴─────────────────────────┴─────────────────────────┴────────┴────────┘
# use file as input
> b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9
# hash raw bytes
|
> a8100ae6aa1940d0b663bb31cd466142ebbdbd5187131b92d93818987832eb89
# use hex encoded data as input
|
> a8100ae6aa1940d0b663bb31cd466142ebbdbd5187131b92d93818987832eb89
# works also with files
> a8100ae6aa1940d0b663bb31cd466142ebbdbd5187131b92d93818987832eb89
Encoding
# encode string to bsae64
|
> aGVsbG8hCg==
# decode data
|
> hello!
# encode raw bytes (the 0A is the newline character)
> AABBCC0A
License
This project is licensed under the GPLv3 license.