{"id":20666169,"url":"https://github.com/hazcod/gosecurity","last_synced_at":"2025-04-19T16:41:41.617Z","repository":{"id":48450078,"uuid":"152416768","full_name":"hazcod/gosecurity","owner":"hazcod","description":"Security library for Go, contains multihash-like library or encryption.","archived":false,"fork":false,"pushed_at":"2024-07-12T08:31:10.000Z","size":112,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-07-12T09:54:20.996Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/hazcod.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}},"created_at":"2018-10-10T12:02:42.000Z","updated_at":"2024-07-12T09:54:20.996Z","dependencies_parsed_at":"2024-06-19T13:44:35.285Z","dependency_job_id":null,"html_url":"https://github.com/hazcod/gosecurity","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazcod%2Fgosecurity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazcod%2Fgosecurity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazcod%2Fgosecurity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazcod%2Fgosecurity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hazcod","download_url":"https://codeload.github.com/hazcod/gosecurity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224964360,"owners_count":17399433,"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-16T19:35:42.416Z","updated_at":"2024-11-16T19:35:42.939Z","avatar_url":"https://github.com/hazcod.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gosecurity [![Go Report Card](https://goreportcard.com/badge/github.com/hazcod/gosecurity)](https://goreportcard.com/report/hazcod/gosecurity) [![codebeat badge](https://codebeat.co/badges/f124d157-7566-467a-862a-f183fc21f30d)](https://codebeat.co/projects/github-com-hazcod-gosecurity-master) [![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/HazCod/gosecurity/blob/master/LICENSE) \nWrapper library that contains security-related stuff.\n\n### gocrypto\nEncrypt and decrypt stuff using authenticated state-of-the-art crypto, provided by golang.org/x/crypto/nacl/secretbox.\n\n#### usage\n```\nfunc GenerateKey() ([]byte, error)\nfunc Encrypt(input []byte, key []byte) ([]byte, error)\nfunc Decrypt(input []byte, key []byte) ([]byte, error)\n```\n\n#### format\n```\n\u003cnonce(24b)\u003e\u003cciphertext\u003e\n```\n\n### gohash\nFormats your password hashes in a standard (multihash-like) format so it keeps on working whenever you change algo.\nDefaults to Argon2id from golang.org/x/crypto/argon2.\n\n#### usage\n```\nfunc GetHash(input string) (string, error)\nfunc VerifyHash(hash string, input string) (bool, error)\nfunc NeedsRehash(hash string) (bool, error)\n```\n\n#### format\n```\n$argon2$i:4:65536$IO+amcBFUXUETmI=$GpiSk2q1+y2DyfRVsg13BmIGE/oM0GLcM0SOs0s/H/s=\n\n$\u003calgo\u003e$\u003cparameters\u003e$salt$key$\n```\n\nWhere parameters contains information for the specific hashing algorhitm, such as size/modus/memory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazcod%2Fgosecurity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhazcod%2Fgosecurity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazcod%2Fgosecurity/lists"}