den

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 1 Imported by: 0

README

DEN

den is a simple command-line tool for encoding and decoding strings. It provides various flags that allow you to specify the type of encoding or decoding you want to perform.

Usage

Usage of den:

  -all
        Encode in all Available Format
  -base64
        Encode in Base64
  -bin
        Encode in Binary
  -dec
        Encode in Decimal
  -hex
        Encode in Hexadecimal
  -html
        Encode in HTML
  -url
        Encode in URL
  -dall
        Decode in all Available Formats
  -dbase64
        Decode from Base64
  -dbin
        Decode from Binary
  -ddec
        Decode from Decimal
  -dhex
        Decode from Hex
  -dhtml
        Decode from HTML
  -durl
        Decode from URL
Syntax
# for single line strings

echo "string" | den -<encoding/decoding format>

# for multiple lines put the string in a text file

cat file.txt | den -<encoding/decoding format>

Examples

To encode a string in base64, use the -base64 flag:

echo "hii" | den -base64

To decode a string from base64, use the -dbase64 flag:

echo "SGVsbG8sIHdvcmxkIQ==" | den -dbase64

To encode a string in all available formats, use the -all flag:

echo "hi" | den -all

License

den is released under the MIT License. See LICENSE for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL