Abstruse Swiss Knife –ask– is a tool for doing multiple encoding/decoding tasks.

José González Krause 750e1e2d99 Added most common hashing codecs 7 months ago
.gitignore 3476cf117f Initial commit 7 months ago
LICENSE 3476cf117f Initial commit 7 months ago
README.md 750e1e2d99 Added most common hashing codecs 7 months ago
ask.codec.b64.go 40ca2b9bfb Code reorganization 7 months ago
ask.codec.b64u.go 40ca2b9bfb Code reorganization 7 months ago
ask.codec.hex.go 40ca2b9bfb Code reorganization 7 months ago
ask.codec.md5.go 750e1e2d99 Added most common hashing codecs 7 months ago
ask.codec.sha1.go 750e1e2d99 Added most common hashing codecs 7 months ago
ask.codec.sha256.go 750e1e2d99 Added most common hashing codecs 7 months ago
ask.codec.sha512.go 750e1e2d99 Added most common hashing codecs 7 months ago
ask.codec.uri.go 40ca2b9bfb Code reorganization 7 months ago
ask.codecs.go 750e1e2d99 Added most common hashing codecs 7 months ago
ask.go 750e1e2d99 Added most common hashing codecs 7 months ago
ask.helpers.go cbcedfc083 Added some codecs to ask 7 months ago
ask.input.go bb98623c3a Cleaned some unused code 7 months ago

README.md

ask

Abstruse Swiss Knife –ask– is a tool for doing multiple encoding/decoding tasks.

Build/install

  • go get dev.hackercat.ninja/hcninja/ask
  • go install dev.hackercat.ninja/hcninja/ask

Usage

Standalone codec

To base64 URL safe:

─➤  dd if=/dev/urandom count=2 bs=8 | ask -b64ue
2+0 records in
2+0 records out
16 bytes transferred in 0.000031 secs (516222 bytes/sec)
Uy0477-977-977-977-977-977-977-977-9Iu-_vWNt77-9

From URI encoded

─➤  echo -n "Fancy+string+%3A%29" | ask -urid
Fancy string :)

Codec chain

─➤  dd if=/dev/urandom count=2 bs=8 | ask -cc='hexe,b64e,urie'
2+0 records in
2+0 records out
16 bytes transferred in 0.000048 secs (332222 bytes/sec)
ZWZiZmJkNmZlZmJmYmRlZmJmYmQ3OGVmYmZiZGRhYWU1MjExMTIwNTFlN2MzNWVmYmZiZA%3D%3D

Actual supported codecs

  • Base64
  • Base64 URL safe
  • URI component
  • Hexadecimal
  • md5
  • sha1
  • sha256
  • sha512