Skip to content

Latest commit

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

urlencode

A tool developed in Python to facilitate URL-encoding and decoding of strings

Usage

You can provide a string directly as an argument, or pass input through a pipe, you can even create a loop that concatenates base64.

$ urlencode 'example 1'
example%201
$ echo -n 'example 2'|urlencode
example%202
$ fordin {1..30};doecho -n $d|base64|urlencode ;done
MQ%3D%3D
Mg%3D%3D
Mw%3D%3D
<SNIP>

You can pass -d to decode the input.

$ urlencode -d 'example%201'
example 1
$ echo -e "example%201\nexample%202"| urlencode -d
example 1
example 2

You can keep a character unencoded with -n.

$ echo -n "'http://example.com'"|urlencode -n "'"'http%3A%2F%2Fexample.com'
$ echo -n "'http://example.com'"|urlencode -n "/"
%27http%3A//example.com%27

Installation

git clone https://github.com/DLL00P/urlencode
cd urlencode
chmod +x urlencode.py
sudo mv urlencode.py /usr/bin/urlencode

References

About

A CLI tool to URL-encode or decode strings.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages