{"id":17861129,"url":"https://github.com/jonathanstowe/crypt-sodiumpasswordhash","last_synced_at":"2025-04-02T20:47:01.934Z","repository":{"id":66980391,"uuid":"229343636","full_name":"jonathanstowe/Crypt-SodiumPasswordHash","owner":"jonathanstowe","description":"Password hashing using the libsodium recommended algorithm","archived":false,"fork":false,"pushed_at":"2024-04-10T08:58:51.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-11T08:48:28.336Z","etag":null,"topics":["crypt","hash","libsodium","password","raku"],"latest_commit_sha":null,"homepage":null,"language":"Raku","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonathanstowe.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","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":"2019-12-20T22:12:12.000Z","updated_at":"2024-04-11T08:48:28.337Z","dependencies_parsed_at":"2024-10-28T09:05:44.489Z","dependency_job_id":"e5bd10db-7a35-4c25-a7fd-cddf29059c41","html_url":"https://github.com/jonathanstowe/Crypt-SodiumPasswordHash","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FCrypt-SodiumPasswordHash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FCrypt-SodiumPasswordHash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FCrypt-SodiumPasswordHash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FCrypt-SodiumPasswordHash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonathanstowe","download_url":"https://codeload.github.com/jonathanstowe/Crypt-SodiumPasswordHash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246892796,"owners_count":20850846,"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":["crypt","hash","libsodium","password","raku"],"created_at":"2024-10-28T08:43:00.032Z","updated_at":"2025-04-02T20:47:01.798Z","avatar_url":"https://github.com/jonathanstowe.png","language":"Raku","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crypt::SodiumPasswordHash\n\nPassword hashing using the libsodium recommended algorithm\n\n![Build Status](https://github.com/jonathanstowe/Crypt-SodiumPasswordHash/workflows/CI/badge.svg)\n\n## Synopsis\n\n\n    use Crypt::SodiumPasswordHash;\n\n    my $password =  'somepa55word';\n\n    my $hash     =  sodium-hash($password);\n\n    if sodium-verify($hash, $password ) {\n\n        #  password ok\n\n    }\n\n## Description\n\nThis module provides a binding to the password hashing functions provided by [libsodium](https://libsodium.gitbook.io/doc/).\n\nThe algorithm used is the one recomended by the installed version of libsodium. as of version 23 this is a variant of Argon2, but older versions may provide a different one as may future versions. Additionally the `sodium-verify` should be able to verify a password hash created by other libraries that support the Argon2 family such as [Crypt::Argon2](|https://github.com/skinkade/p6-crypt-argon2).\n\nThe hash returned by `sodium-hash` is in the format used in `/etc/shadow` and can be verified by other libraries that understand the algorithm. By default the *interactive* limits for memory and CPU usage are used, which is a reasonable compromise for the time taken for both hashing and verification. If the `:sensitive` switch is supplied to `sodium-hash` then both hashing and verification take significantly longer (and use more memory,) so this may not suitable for some applications.\n\n\n## Installation\n\nYou will need to have C\u003clibsodium\u003e installed for this to work, it is commonly packaged for various Linux distributions, so you should be able\nto use the usual package management tools.\n\nAssuming that you have a working installation of Rakudo then you should be able to install this with *zef* :\n\n    zef install Crypt::SodiumPasswordHash\n\n    # Or from a local clone\n\n    zef install .\n\nThe tests take a little longer than might be expected because it tests the _sensitive_ profile which is designed to take longer.\n\n## Support\n\nIf you any suggestions/patches feel free to send them via:\n\nhttps://github.com/jonathanstowe/Crypt-SodiumPasswordHash/issues\n\nI've tested this with libsodium versions from 13 to 23, but if you find it doesn't work please let me know which version you have installed.\n\n## Licence \u0026 Copyright\n\nThis is free software please see the [LICENCE](LICENCE) file in the distribution\nfor details.\n\n© Jonathan Stowe 2019 - 2021\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanstowe%2Fcrypt-sodiumpasswordhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathanstowe%2Fcrypt-sodiumpasswordhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanstowe%2Fcrypt-sodiumpasswordhash/lists"}