kamerk22/ipfuscator

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. IPFuscator allows us to easily convert to these alternative formats that are interpreted in the same way.

v1.0.0 2018-12-09 17:37 UTC

This package is auto-updated.

Last update: 2024-10-10 07:03:12 UTC


README

Scrutinizer Code Quality Build Status Code Coverage Code Intelligence Status Latest Version on Packagist Total Downloads

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.

SS

Installation

You can install this package via Composer.

$ composer require kamerk22/ipfuscator

Usage

use kamerk22\IPFuscator\IPFuscator;

Get Decimal

IPFuscator::getDecimal($ip);

Get Octal

IPFuscator::getOctal($ip);

Get Hexadecimal

IPFuscator::getHexadecimal($ip);

Get Full Octal

IPFuscator::getFullOct($ip);

Get Full Hexadecimal

IPFuscator::getFullHex($ip);

Get Random Pad Octal

IPFuscator::getRandomOctPad($ip);

Get Random Pad Hexadecimal

IPFuscator::getRandomHexPad($ip);

Get Random Base

IPFuscator::getRandomBase($ip);

Get Random Base With Random Pad

IPFuscator::getRandomBaseWithRandomPad($ip);

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email kashyapk62@gmail.com instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.