{"id":19177715,"url":"https://github.com/simia-tech/crypt","last_synced_at":"2025-05-07T20:41:42.005Z","repository":{"id":28518384,"uuid":"118610276","full_name":"simia-tech/crypt","owner":"simia-tech","description":"Crypt implementation in pure Go","archived":false,"fork":false,"pushed_at":"2022-05-09T12:30:21.000Z","size":61,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-07T20:41:36.610Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simia-tech.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}},"created_at":"2018-01-23T12:54:57.000Z","updated_at":"2024-01-18T04:52:30.000Z","dependencies_parsed_at":"2022-08-08T18:00:05.264Z","dependency_job_id":null,"html_url":"https://github.com/simia-tech/crypt","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simia-tech%2Fcrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simia-tech%2Fcrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simia-tech%2Fcrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simia-tech%2Fcrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simia-tech","download_url":"https://codeload.github.com/simia-tech/crypt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252954127,"owners_count":21830893,"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-11-09T10:34:44.418Z","updated_at":"2025-05-07T20:41:41.983Z","avatar_url":"https://github.com/simia-tech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Crypt\n\n[![Build Status](https://travis-ci.org/simia-tech/crypt.svg?branch=master)](https://travis-ci.org/simia-tech/crypt) [![Go Report Card](https://goreportcard.com/badge/github.com/simia-tech/crypt)](https://goreportcard.com/report/github.com/simia-tech/crypt)  [![Documentation](https://pkg.go.dev/badge/github.com/simia-tech/crypt?status.svg)](https://pkg.go.dev/github.com/simia-tech/crypt)\n\nCrypt implementation in pure Go. It provides a unified interface to varous hashing algorithms for key derivation.\n\n# Example\n\n```go\nfunc main() {\n    password := \"password\"\n    settings := \"$argon2id$v=19$m=65536,t=2,p=4$c2FsdHNhbHQ\" // salt = \"saltsalt\"\n\n    encoded, err := crypt.Crypt(password, settings)\n    if err != nil {\n        log.Fatal(err)\n    }\n\n    fmt.Println(encoded)\n    // Output: $argon2id$v=19$m=65536,t=2,p=4$c2FsdHNhbHQ$mxUf7CB5gEwtDSiHfZCvxj17E8XeTFh2fpti1ioD3SA\n}\n```\n\n# Algorithm\n\nCurrently, the following algorithms are supported:\n\n|  Code    | Name     | Example                                                                                              |\n|----------|----------|------------------------------------------------------------------------------------------------------|\n|        1 | MD5      | $1$deadbeef$Q7g0UO4hRC0mgQUQ/qkjZ0                                                                   |\n|        5 | SHA256   | $5$saltstring$5B8vYYiY.CVt1RlTTf8KbXBH3hsxY/GNooZaBBGWEc5                                            |\n|        6 | SHA512   | $6$saltstring$svn8UoSVapNtMuq1ukKS4tPQd8iKwSMHWjl/O817G3uBnIFNjnQJuesI68u4OTLiBFdcbYEdFCoEOfaS35inz1 |\n|       2a | bcrypt   | $2a$05$/OK.fbVrR/bpIqNJ5ianF.Sa7shbm4.OzKpvFnX1pQLmQW96oUlCq                                         |\n|  argon2i | Argon2i  | $argon2i$v=19$m=65536,t=2$c29tZXNhbHQ$IMit9qkFULCMA/ViizL57cnTLOa5DiVM9eMwpAvPwr4                    |\n| argon2id | Argon2id | $argon2id$v=19$m=65536,t=2,p=4$c29tZXNhbHQ$GpZ3sK/oH9p7VIiV56G/64Zo/8GaUw434IimaPqxwCo               |\n\nIt's recommended that you used `argon2id` for crypting passwords.\n\n# Links\n\nThis implementation is inspired by [crypt](https://github.com/GehirnInc/crypt).\n\n# License\n\nThe code is licensed under [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimia-tech%2Fcrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimia-tech%2Fcrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimia-tech%2Fcrypt/lists"}