{"id":17108470,"url":"https://github.com/g-andrade/elixir-ff3-1","last_synced_at":"2025-08-11T18:07:33.883Z","repository":{"id":170119272,"uuid":"646232614","full_name":"g-andrade/elixir-ff3-1","owner":"g-andrade","description":"Format-preserving encryption for Elixir (FF3-1)","archived":false,"fork":false,"pushed_at":"2024-01-01T16:46:42.000Z","size":356,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T21:15:27.207Z","etag":null,"topics":["ff3","format-preserving-encryption","fpe"],"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/g-andrade.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-05-27T18:00:14.000Z","updated_at":"2024-10-18T01:48:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"6df31cce-d1e1-4531-a0a9-e13a6ec57904","html_url":"https://github.com/g-andrade/elixir-ff3-1","commit_stats":null,"previous_names":["g-andrade/fpe-elixir","g-andrade/elixir-fpe","g-andrade/elixir-ff3-1"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/g-andrade/elixir-ff3-1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-andrade%2Felixir-ff3-1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-andrade%2Felixir-ff3-1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-andrade%2Felixir-ff3-1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-andrade%2Felixir-ff3-1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/g-andrade","download_url":"https://codeload.github.com/g-andrade/elixir-ff3-1/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-andrade%2Felixir-ff3-1/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269931450,"owners_count":24498720,"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-08-11T02:00:10.019Z","response_time":75,"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":["ff3","format-preserving-encryption","fpe"],"created_at":"2024-10-14T16:05:27.062Z","updated_at":"2025-08-11T18:07:33.833Z","avatar_url":"https://github.com/g-andrade.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FF3_1: Format-preserving encryption for Elixir\n\nWork in progress to provide format-preserving encryption through the FF3-1 algorithm,\n[a revised version of FF3](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-38Gr1-draft.pdf)\nafter security issues were uncovered.\n\nI wrote this for the kicks - it is not a serious project.\n\n```elixir\n    key = \u003c\u003c\n      0xAD, 0x41, 0xEC, 0x5D, 0x23, 0x56, 0xDE, 0xAE,\n      0x53, 0xAE, 0x76, 0xF5, 0x0B, 0x4B, 0xA6, 0xD2\n    \u003e\u003e\n    tweak = \u003c\u003c0xCF, 0x29, 0xDA, 0x1E, 0x18, 0xD9, 0x70\u003e\u003e\n\n    {:ok, ctx} = FF3_1.new_ctx(key, 10)\n    assert \"4716569208\" == FF3_1.encrypt!(ctx, tweak, \"6520935496\")\n    assert \"6520935496\" == FF3_1.decrypt!(ctx, tweak, \"4716569208\")\n```\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `fpe` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:ff3_1, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at \u003chttps://hexdocs.pm/fpe\u003e.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg-andrade%2Felixir-ff3-1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg-andrade%2Felixir-ff3-1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg-andrade%2Felixir-ff3-1/lists"}