Skip to content

Convert a hexadecimal number/IPv6 address to other notations

License

Notifications You must be signed in to change notification settings

z33kz33k/hexconv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hexconv


While reading up on IPv6 it struck me that (if only we didn't have to stick to octets) the format that was chosen for addresses (39 characters in most cases) was needlessly long and unwieldy. Wouldn't base32 be better suited for the job? You don't really trade anything in terms of readibility. Especially if you choose the Crockford's variety - it's just a bunch of additional letters. And it should be a lot shorter.

But how shorter exactly? Well, I know you just have to divide 128 by 5 (32 = 2^5) to see that you need at least 26 characters to express a 128-bit number space with base32, but still to see it clearer I needed some kind of converter. And thus this little script was born.

Ignoring the built-in Python capabilities in numbers' conversion was intentional.

For instructions how to use type hexconv.py -h or hexconv.py --help in terminal.

About

Convert a hexadecimal number/IPv6 address to other notations

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages