{"id":17919854,"url":"https://github.com/dwisiswant0/ipfuscator","last_synced_at":"2025-09-10T22:42:11.884Z","repository":{"id":190603616,"uuid":"682696701","full_name":"dwisiswant0/ipfuscator","owner":"dwisiswant0","description":"A blazing-fast, thread-safe, straightforward and zero memory allocations tool to swiftly generate alternative IP(v4) address representations in Go.","archived":false,"fork":false,"pushed_at":"2023-08-25T09:28:34.000Z","size":11,"stargazers_count":86,"open_issues_count":1,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T19:52:30.794Z","etag":null,"topics":["go","go-library","go-package","ip-obfuscator","ipv4"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dwisiswant0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["dwisiswant0"]}},"created_at":"2023-08-24T18:20:26.000Z","updated_at":"2025-03-17T18:05:51.000Z","dependencies_parsed_at":"2023-08-25T13:32:22.113Z","dependency_job_id":null,"html_url":"https://github.com/dwisiswant0/ipfuscator","commit_stats":null,"previous_names":["dwisiswant0/ipfuscator"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dwisiswant0/ipfuscator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwisiswant0%2Fipfuscator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwisiswant0%2Fipfuscator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwisiswant0%2Fipfuscator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwisiswant0%2Fipfuscator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwisiswant0","download_url":"https://codeload.github.com/dwisiswant0/ipfuscator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwisiswant0%2Fipfuscator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274536999,"owners_count":25303945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","go-library","go-package","ip-obfuscator","ipv4"],"created_at":"2024-10-28T20:19:36.067Z","updated_at":"2025-09-10T22:42:11.839Z","avatar_url":"https://github.com/dwisiswant0.png","language":"Go","funding_links":["https://github.com/sponsors/dwisiswant0"],"categories":[],"sub_categories":[],"readme":"# ipfuscator\n\n**ipfuscator** is a _blazing-fast_, thread-safe, straightforward and zero memory allocations tool to swiftly generate alternative IP(v4) address representations through conversion and manipulation techniques.\n\n## Install\n\n### CLI\n\n**with Binary**\n\nJust grab the bin based on your arch from [release page](https://github.com/dwisiswant0/ipfuscator/releases).\n\n**with Go**\n\n\u003e **Note**\n\u003e Installation of [Go](https://golang.org/doc/install) version 1.16 or newer is required.\n\n```console\ngo install github.com/dwisiswant0/ipfuscator@latest\n```\n\n### Library\n\n```console\ngo get github.com/dwisiswant0/ipfuscator/pkg/ipfuscator@latest\n```\n\n## Usage\n\n### Tool\n\n```\n  ipfuscator 1.0.0\n  by @dwisiswant0\n  --\n  A blazing-fast, thread-safe, straightforward and zero memory allocations\n  tool to swiftly generate alternative IP(v4) address representations in Go.\n\nUsage\n  ipfuscator [OPTIONS] --method [METHOD] [ADDR]\n\nOptions:\n  -m, --method \u003cMETHOD\u003e    Specify the glob conversion method to use (default: \"*\")\n  -l, --list               Display a list of available conversion methods\n\nExamples:\n  ipfuscator -l\n  ipfuscator 127.0.0.1\n  ipfuscator -m \"To*\" 127.0.0.1\n  ipfuscator -m \"*Padding\" 127.0.0.1\n  ipfuscator -m \"ToHexWithPadding\" 127.0.0.1\n```\n\n### Library\n\n[![GoDoc](https://pkg.go.dev/static/frontend/badge/badge.svg)](http://pkg.go.dev/github.com/dwisiswant0/ipfuscator/pkg/ipfuscator)\n\nSee the [docs](http://pkg.go.dev/github.com/dwisiswant0/ipfuscator/pkg/ipfuscator).\n\n**Examples**\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"net\"\n\n\t\"github.com/dwisiswant0/ipfuscator/pkg/ipfuscator\"\n)\n\nfunc main() {\n\tipv4 := net.ParseIP(\"127.0.0.1\")\n\tipf, err := ipfuscator.New(ipv4)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"Base w/ Padding: \\t%s\\n\", ipf.ToBaseWithPadding())\n\tfmt.Printf(\"Circled digits: \\t%s\\n\", ipf.ToCircledDigits())\n\tfmt.Printf(\"Decimal: \\t\\t%s\\n\", ipf.ToDecimal())\n\tfmt.Printf(\"Hex w/ Padding: \\t%s\\n\", ipf.ToHexWithPadding())\n\tfmt.Printf(\"Hex: \\t\\t\\t%s\\n\", ipf.ToHex())\n\tfmt.Printf(\"IPv6 Embedded: \\t\\t%s\\n\", ipf.ToIPv6CompatibleV4())\n\tfmt.Printf(\"No zeros: \\t\\t%s\\n\", ipf.ToNoZeros())\n\tfmt.Printf(\"Octal w/ Padding: \\t%s\\n\", ipf.ToOctalWithPadding())\n\tfmt.Printf(\"Octal: \\t\\t\\t%s\\n\", ipf.ToOctal())\n\tfmt.Printf(\"Rand 8-bits: \\t\\t%s\\n\", ipf.ToRand8Bits())\n\tfmt.Printf(\"Rand w/ Padding: \\t%s\\n\", ipf.ToRandBaseWithPadding())\n\tfmt.Printf(\"Rand: \\t\\t\\t%s\\n\", ipf.ToRandBase())\n\n\t// Output:\n\t// Base w/ Padding:     127.00000000000000.000000000.1\n\t// Circled digits:      ①②⑦.⓪.⓪.①\n\t// Decimal:             2130706433\n\t// Hex w/ Padding:      0x0000000000007f.0x0000000000000000000000.0x0000000000000000000000.0x0000000001\n\t// Hex:                 0x7f.0x0.0x0.0x1\n\t// IPv6 Embedded:       [::ffff:127.0.0.1]\n\t// No zeros:            127.1\n\t// Octal w/ Padding:    00000000000177.000000.0000000000000000.0000000000000000001\n\t// Octal:               0177.0.0.1\n\t// Rand 8-bits:         127.0.0.119\n\t// Rand w/ Padding:     0x000000000000000000000007f.0x00000000000000000000000000.0x0000000.0x01\n\t// Rand:                0x7f.0x0.0x0.0x1\n}\n```\n\n## Benchmark\n\n```console\n$ make bench\ngoos: linux\ngoarch: amd64\npkg: github.com/dwisiswant0/ipfuscator/pkg/ipfuscator\ncpu: 11th Gen Intel(R) Core(TM) i9-11900H @ 2.50GHz\nBenchmarkToBaseWithPadding-16        \t 6483795\t       178.3 ns/op\nBenchmarkToCircledDigits-16          \t 8223832\t       142.3 ns/op\nBenchmarkToDecimal-16                \t43212138\t        26.25 ns/op\nBenchmarkToHex-16                    \t31927065\t        40.15 ns/op\nBenchmarkToHexWithPadding-16         \t 1927899\t       635.0 ns/op\nBenchmarkToIPv6CompatibleV4-16       \t16217696\t        72.04 ns/op\nBenchmarkToNoZeros-16                \t26995516\t        45.83 ns/op\nBenchmarkToOctal-16                  \t22103026\t        55.83 ns/op\nBenchmarkToOctalWithPadding-16       \t 3390346\t       359.3 ns/op\nBenchmarkToRand8Bits-16              \t16113920\t        75.93 ns/op\nBenchmarkToRandBase-16               \t 9400024\t       128.6 ns/op\nBenchmarkToRandBaseWithPadding-16    \t 2534938\t       472.0 ns/op\nPASS\nok  \tgithub.com/dwisiswant0/ipfuscator/pkg/ipfuscator\t16.722s\n```\n\n## License\n\n**ipfuscator** is released under [Apache-2.0](/LICENSE). Copyright (c) 2023 Dwi Siswanto.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwisiswant0%2Fipfuscator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwisiswant0%2Fipfuscator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwisiswant0%2Fipfuscator/lists"}