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.
Requires
- php: >=7.1
- illuminate/support: ~5
Requires (Dev)
This package is auto-updated.
Last update: 2024-12-10 07:18:00 UTC
README
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.
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.