https://github.com/kamerk22/ipfuscator
IPFuscator - A tool to automatically generate alternative IP formats that are interpreted in the same way. This package will provide simple and easy API convert IP to alternative formats that are interpreted in the same way.
https://github.com/kamerk22/ipfuscator
composer fuscator ip network package php
Last synced: 5 months ago
JSON representation
IPFuscator - A tool to automatically generate alternative IP formats that are interpreted in the same way. This package will provide simple and easy API convert IP to alternative formats that are interpreted in the same way.
- Host: GitHub
- URL: https://github.com/kamerk22/ipfuscator
- Owner: kamerk22
- License: other
- Created: 2018-12-08T15:55:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-09T17:50:43.000Z (over 7 years ago)
- Last Synced: 2025-08-03T16:10:57.218Z (11 months ago)
- Topics: composer, fuscator, ip, network, package, php
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 15
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- Contributing: contributing.md
- License: license.md
Awesome Lists containing this project
README
# IPFuscator
[](https://scrutinizer-ci.com/g/kamerk22/ipfuscator/?branch=master)
[![Build Status][ico-travis]][link-travis]
[](https://scrutinizer-ci.com/g/kamerk22/ipfuscator/?branch=master)
[](https://scrutinizer-ci.com/code-intelligence)
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Total Downloads][ico-downloads]][link-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](https://github.com/vysec/IPFuscator) in Python.

## Installation
You can install this package via Composer.
``` bash
$ composer require kamerk22/ipfuscator
```
## Usage
```php
use kamerk22\IPFuscator\IPFuscator;
```
### Get Decimal
```php
IPFuscator::getDecimal($ip);
```
### Get Octal
```php
IPFuscator::getOctal($ip);
```
### Get Hexadecimal
```php
IPFuscator::getHexadecimal($ip);
```
### Get Full Octal
```php
IPFuscator::getFullOct($ip);
```
### Get Full Hexadecimal
```php
IPFuscator::getFullHex($ip);
```
### Get Random Pad Octal
```php
IPFuscator::getRandomOctPad($ip);
```
### Get Random Pad Hexadecimal
```php
IPFuscator::getRandomHexPad($ip);
```
### Get Random Base
```php
IPFuscator::getRandomBase($ip);
```
### Get Random Base With Random Pad
```php
IPFuscator::getRandomBaseWithRandomPad($ip);
```
## Change log
Please see the [changelog](changelog.md) for more information on what has changed recently.
## Testing
``` bash
$ composer test
```
## Contributing
Please see [contributing.md](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
- [Kashyap Merai][link-author]
- [All Contributors][link-contributors]
## License
MIT. Please see the [license file](license.md) for more information.
[ico-version]: https://img.shields.io/packagist/v/kamerk22/ipfuscator.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/kamerk22/ipfuscator.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/com/kamerk22/ipfuscator.svg?style=flat-square
[link-packagist]: https://packagist.org/packages/kamerk22/ipfuscator
[link-downloads]: https://packagist.org/packages/kamerk22/ipfuscator
[link-travis]: https://travis-ci.org/kamerk22/ipfuscator
[link-author]: https://github.com/kamerk22
[link-contributors]: ../../contributors]