Skip to content

Latest commit

 

History

History
114 lines (79 loc) · 2.89 KB

readme.md

File metadata and controls

114 lines (79 loc) · 2.89 KB

IPFuscator

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 [email protected] instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.