{"id":13740594,"url":"https://github.com/lpil/antigone","last_synced_at":"2026-01-02T13:52:42.496Z","repository":{"id":229709206,"uuid":"777460115","full_name":"lpil/antigone","owner":"lpil","description":"Argon2 password hashing for Gleam.","archived":false,"fork":false,"pushed_at":"2024-06-01T14:47:27.000Z","size":7,"stargazers_count":21,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-21T23:03:06.727Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Gleam","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lpil.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2024-03-25T22:23:06.000Z","updated_at":"2025-01-17T08:28:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"77f08a08-3415-48ca-92a5-b36851a8cd2b","html_url":"https://github.com/lpil/antigone","commit_stats":null,"previous_names":["lpil/antigone"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fantigone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fantigone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fantigone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fantigone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lpil","download_url":"https://codeload.github.com/lpil/antigone/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243753990,"owners_count":20342537,"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","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":[],"created_at":"2024-08-03T04:00:50.305Z","updated_at":"2026-01-02T13:52:42.432Z","avatar_url":"https://github.com/lpil.png","language":"Gleam","funding_links":[],"categories":["Packages"],"sub_categories":["SDKs"],"readme":"# antigone\n\nArgon2 password hashing for Gleam.\n\n[![Package Version](https://img.shields.io/hexpm/v/antigone)](https://hex.pm/packages/antigone)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/antigone/)\n\nThis package uses the [elixir_argon2](https://github.com/riverrun/argon2_elixir)\nlibrary, so you will need to have Elixir installed and be running on Erlang to\nuse this package.\n\n```sh\ngleam add antigone\n```\n```gleam\nimport antigone\nimport gleam/bit_array\n\npub fn main() {\n  // You've got a password or token you wish to hash so that you can verify it\n  // later without having to store the password or hash itself.\n  let password = bit_array.from_string(\"blink182\")\n\n  // Hash the password with the default configuration:\n  antigone.hash(antigone.hasher(), password)\n  // -\u003e \"$argon2id$v=19$m=65536,t=3,p=4$h1bn4Va1EXJ+kReN0/q45Q$KMj1OQV0tueWPFKw97bB+RVGsYgdPpiVxZibzbc3dBw\"\n\n  // Alternatively you can specify your own configuration.\n  // Here we are lowering the costs to make the hashing faster. You may want to\n  // do this in your tests, but you must never do this in production.\n  antigone.hasher()\n  |\u003e antigone.time_cost(1)\n  |\u003e antigone.memory_cost(8)\n  |\u003e antigone.hash(password)\n  // -\u003e \"$argon2id$v=19$m=256,t=1,p=4$Q7MevutDdDKNtKFvygG7QQ$Ta+IOOaBq6iOfvUqBvehHmnVUzjpzOV7g3B+3VKqLfo\"\n}\n```\n\nFurther documentation can be found at \u003chttps://hexdocs.pm/antigone\u003e.\n\n### Why it is called Antigone?\n\nI really liked X2: The Threat as a kid.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpil%2Fantigone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flpil%2Fantigone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpil%2Fantigone/lists"}