IPFuscation is a technique that allows for IP addresses to be represented in hexadecimal or decimal instead of the decimal encoding we are used to.
This package will provide simple and easy API convert IP to alternative formats that are interpreted in the same way.
Inspired by https://github.com/vysec/IPFuscator in Python.
You can install this package via Composer.
$ composer require kamerk22/ipfuscator
use kamerk22\IPFuscator\IPFuscator;
IPFuscator::getDecimal($ip);
IPFuscator::getOctal($ip);
IPFuscator::getHexadecimal($ip);
IPFuscator::getFullOct($ip);
IPFuscator::getFullHex($ip);
IPFuscator::getRandomOctPad($ip);
IPFuscator::getRandomHexPad($ip);
IPFuscator::getRandomBase($ip);
IPFuscator::getRandomBaseWithRandomPad($ip);
Please see the changelog for more information on what has changed recently.
$ composer test
Please see contributing.md for details and a todolist.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
MIT. Please see the license file for more information.