{"id":18151192,"url":"https://github.com/msantos/crypt","last_synced_at":"2026-03-10T22:35:17.675Z","repository":{"id":46124266,"uuid":"472081","full_name":"msantos/crypt","owner":"msantos","description":"Erlang NIF wrapping Unix crypt(3)","archived":false,"fork":false,"pushed_at":"2025-08-16T11:55:23.000Z","size":172,"stargazers_count":12,"open_issues_count":0,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T02:24:56.545Z","etag":null,"topics":["libcrypt","password"],"latest_commit_sha":null,"homepage":"","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msantos.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}},"created_at":"2010-01-14T15:35:28.000Z","updated_at":"2025-08-16T11:55:26.000Z","dependencies_parsed_at":"2025-04-28T17:49:14.173Z","dependency_job_id":null,"html_url":"https://github.com/msantos/crypt","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/msantos/crypt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Fcrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Fcrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Fcrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Fcrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msantos","download_url":"https://codeload.github.com/msantos/crypt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Fcrypt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30359045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["libcrypt","password"],"created_at":"2024-11-02T01:06:53.129Z","updated_at":"2026-03-10T22:35:17.661Z","avatar_url":"https://github.com/msantos.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crypt library for Erlang\n\n[![Package Version](https://img.shields.io/hexpm/v/crypt)](https://hex.pm/packages/crypt)\n[![Hex Docs](https://img.shields.io/badge/hex-docs)](https://hexdocs.pm/crypt/)\n\nWrapper around the system `crypt(3)` library for Erlang.\n\n## WARNING\n\nThe algorithms supported by `crypt` are dependent on the system `crypt(3)`\nlibrary.\n\n## USAGE\n\n```\ncrypt(Key, Salt) -\u003e binary()\ncrypt_to_string(Key, Salt) -\u003e string()\n\n    Types   Key = iodata()\n            Salt = iodata()\n            Crypted = binary()\n\n    Calls the system crypt(3) function with the provided arguments.\n\n    If crypt(3) is not supported by the OS, the crypt module will\n    fail to load.\n\n    Depending on your system crypt(3) library, errors may or may not\n    be returned. Some implementations return NULL. If this occurs,\n    crypt/2 will throw a bad arg exception. Other implementations\n    may choose to return a fixed string (if this is a concern,\n    the caller will need to test for this condition).\n\n    The NetBSD man page for crypt(3) summarizes the situation as:\n\n        The behavior of crypt() on errors isn't well standardized.\n        Some implementations simply can't fail (unless the process\n        dies, in which case they obviously can't return), others\n        return NULL or a fixed string.  Most implementations\n        don't set errno, but some do.  Version 2 of the Single\n        UNIX Specification (``SUSv2'') specifies only returning\n        NULL and setting errno as a valid behavior, and defines\n        only one possible error (ENOSYS, ``The functionality is\n        not supported on this implementation.'') Unfortunately,\n        most existing applications aren't prepared to handle NULL\n        returns from crypt().  The description below corresponds\n        to this implementation of crypt() only.  The behavior may\n        change to match standards, other implementations or existing\n        applications.\n\n        crypt() may only fail (and return) when passed an invalid\n        or unsupported setting, in which case it returns a pointer\n        to a magic string that is shorter than 13 characters and is\n        guaranteed to differ from setting.  This behavior is safe\n        for older applications which assume that crypt() can't fail,\n        when both setting new passwords and authenticating against\n        existing password hashes.\n```\n\n## EXAMPLES\n\n```\n1\u003e crypt:crypt(\"test\",\"aa\").\n\u003c\u003c\"aaqPiZY5xR5l.\"\u003e\u003e\n2\u003e crypt:crypt(\"test\",\"$1$aaaaaaaa\").\n\u003c\u003c\"$1$aaaaaaaa$lWxWtPmiNjS/cwJnGm6fe0\"\u003e\u003e\n3\u003e crypt:crypt(\"test\",\"$6$aaaaaaaa\").\n\u003c\u003c\"$6$aaaaaaaa$HREHv6TuSmUS/7spCDO5Js3ssSZ6.iwVkUoVtatJUhJDKVmERrRKBTolrPMub2s5dX6IEjZg6d6wZzFRlidV41\"\u003e\u003e\n4\u003e crypt:crypt_to_string(\u003c\u003c\"test\"\u003e\u003e,\"aa\").\n\"aaqPiZY5xR5l.\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsantos%2Fcrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsantos%2Fcrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsantos%2Fcrypt/lists"}