Skip to content

vsdmars/ip_to_utf8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iuctl converts CIDR IPv4/IPv6 string to UTF8 format and vice versa.

$iuctl --help
iuctl converts CIDR IP string to UTF8 format and vice versa.
Usage: iuctl [OPTIONS] input

Positionals:
  input TEXT REQUIRED         string to be converted either to IP or UTF8

Options:
  -h,--help                   Print this help message and exit

example

$ iuctl 192.168.1.1
\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u00ff\u00ff\u00c0\u00a8\u0001\u0001
$ iuctl "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u00ff\u00ff\u00c0\u00a8\u0001\u0001"
192.168.1.1
$ echo "1.1.1.1" | xargs iuctl
\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u00ff\u00ff\u0001\u0001\u0001\u0001
$ iuctl "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u00ff\u00ff\u0001\u0001\u0001\u0001"
1.1.1.1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published