{"id":15322128,"url":"https://github.com/edmartt/go-password-hasher","last_synced_at":"2025-08-22T23:26:26.960Z","repository":{"id":41747687,"uuid":"473082594","full_name":"Edmartt/go-password-hasher","owner":"Edmartt","description":"Password hasher with random salts","archived":false,"fork":false,"pushed_at":"2024-12-11T23:31:32.000Z","size":37,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T14:22:16.402Z","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/Edmartt.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":"2022-03-23T07:38:16.000Z","updated_at":"2025-02-11T13:48:35.000Z","dependencies_parsed_at":"2024-06-20T18:50:43.411Z","dependency_job_id":null,"html_url":"https://github.com/Edmartt/go-password-hasher","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edmartt%2Fgo-password-hasher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edmartt%2Fgo-password-hasher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edmartt%2Fgo-password-hasher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edmartt%2Fgo-password-hasher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Edmartt","download_url":"https://codeload.github.com/Edmartt/go-password-hasher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248995107,"owners_count":21195497,"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-10-01T09:14:17.782Z","updated_at":"2025-04-15T02:37:22.483Z","avatar_url":"https://github.com/Edmartt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Password Hasher\n\nThis project is intended to ease the use of **bcrypt** package abstracting the developer from using arrays of bytes and all necessary stuff for hashing a string and making it as simple as just to call the need function and passing a string as argument\n\n### What you can do:\n- convert a plaintext string to hash \n- checks if a plaintext string is equal to a hash\n\n\n#### How to use\n\n##### hashing strings\n\n```\nimport (\n\t\"fmt\"\n\t\"github.com/Edmartt/go-password-hasher/hasher\"\n\n\t)\n\nfunc main(){\n\n\tmyString := \"12345\"\n\thashedString := hasher.ConvertToHash(myString)\n\n\tfmt.Println(hashedString)\n\n}\n```\n\nWe'll see some output like this:\n- **$2a$10$J65kHWsGVPLJq47D5aBJmeBpytRtXM5F6iN4ZId/Eum5IXw4cOMfi**\n\n\n##### Checking if a hash equals to a string we pass as argument:\n\n```\nimport (\n\t\"fmt\"\n\t\"github.com/Edmartt/go-password-hasher/hasher\"\n\n\t)\n\nfunc main(){\n\n\tmyString := \"12345\"\n\thashedString := hasher.ConvertToHash(myString)\n\n\tisTheSame := hasher.CheckHash(hashedString, \"12345\")\n\n\tfmt.Println(isTheSame)\n}\n\n```\nOur output here would be:\n- **true**\n\n#### Unit Test\n\nFor running test:\n\n```\ngo test -v ./tests\n\n```\n\n#### Coverage\n\nRunning coverage:\n\n```\ngo test -v --coverprofile=coverage.out -coverpkg ./hasher ./tests\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedmartt%2Fgo-password-hasher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedmartt%2Fgo-password-hasher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedmartt%2Fgo-password-hasher/lists"}