{"id":31588619,"url":"https://github.com/jedisct1/ipcrypt-elixir","last_synced_at":"2025-10-06T02:12:04.385Z","repository":{"id":312393155,"uuid":"1047351121","full_name":"jedisct1/ipcrypt-elixir","owner":"jedisct1","description":"IPCrypt implementation in Elixir","archived":false,"fork":false,"pushed_at":"2025-09-10T18:01:30.000Z","size":33,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-21T16:47:34.659Z","etag":null,"topics":["cipher","elixir","encryption","ip","ipcipher","ipcrypt","obfuscation"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jedisct1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-30T08:12:33.000Z","updated_at":"2025-09-10T17:56:30.000Z","dependencies_parsed_at":"2025-08-30T10:18:52.818Z","dependency_job_id":"c0fd362b-6c80-48fa-9ad5-4fb30ac8bb6a","html_url":"https://github.com/jedisct1/ipcrypt-elixir","commit_stats":null,"previous_names":["jedisct1/ipcrypt-elixir"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jedisct1/ipcrypt-elixir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedisct1%2Fipcrypt-elixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedisct1%2Fipcrypt-elixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedisct1%2Fipcrypt-elixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedisct1%2Fipcrypt-elixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jedisct1","download_url":"https://codeload.github.com/jedisct1/ipcrypt-elixir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedisct1%2Fipcrypt-elixir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278547821,"owners_count":26004775,"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-10-06T02:00:05.630Z","response_time":65,"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":["cipher","elixir","encryption","ip","ipcipher","ipcrypt","obfuscation"],"created_at":"2025-10-06T02:11:36.878Z","updated_at":"2025-10-06T02:12:04.379Z","avatar_url":"https://github.com/jedisct1.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IPCrypt Elixir Implementation\n\nThis is an Elixir implementation of the [IPCrypt](https://ipcrypt-std.github.io/) specification for IP address encryption and obfuscation.\n\n## Features\n\n- **ipcrypt-deterministic**: Deterministic encryption using AES-128\n- **ipcrypt-pfx**: Prefix-preserving encryption using dual AES-128\n- **ipcrypt-nd**: Non-deterministic encryption using KIASU-BC with 8-byte tweaks\n- **ipcrypt-ndx**: Non-deterministic encryption using AES-XTS with 16-byte tweaks\n\n## Installation\n\nAdd `ipcrypt` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:ipcrypt, \"~\u003e 0.2.0\"}\n  ]\nend\n```\n\n## Usage\n\n```elixir\n# Deterministic encryption\nkey16 = \u003c\u003c1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16\u003e\u003e\nip = \"192.0.2.1\"\nencrypted_ip = IPCrypt.Deterministic.encrypt(ip, key16)\ndecrypted_ip = IPCrypt.Deterministic.decrypt(encrypted_ip, key16)\n\n# Prefix-preserving encryption\nkey32 = \u003c\u003c1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32\u003e\u003e\nencrypted_ip_pfx = IPCrypt.Pfx.encrypt(ip, key32)\ndecrypted_ip_pfx = IPCrypt.Pfx.decrypt(encrypted_ip_pfx, key32)\n\n# Non-deterministic encryption with KIASU-BC\nencrypted_data_nd = IPCrypt.Nd.encrypt(ip, key16)\ndecrypted_ip_nd = IPCrypt.Nd.decrypt(encrypted_data_nd, key16)\n\n# Non-deterministic encryption with AES-XTS\nencrypted_data_ndx = IPCrypt.Ndx.encrypt(ip, key32)\ndecrypted_ip_ndx = IPCrypt.Ndx.decrypt(encrypted_data_ndx, key32)\n```\n\nYou can also use the main module for a unified interface:\n\n```elixir\n# Using the main IPCrypt module\nencrypted_ip = IPCrypt.encrypt(ip, key32, :pfx)\ndecrypted_ip = IPCrypt.decrypt(encrypted_ip, key32, :pfx)\n```\n\n## Testing\n\nTo run the tests:\n\n```bash\nmix test\n```\n\nThe tests verify the implementation against the official test vectors from the IPCrypt specification.\n\n## License\n\nThis implementation is released under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedisct1%2Fipcrypt-elixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjedisct1%2Fipcrypt-elixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedisct1%2Fipcrypt-elixir/lists"}