{"id":26572433,"url":"https://github.com/gharib110/auth-methods","last_synced_at":"2025-03-23T00:34:39.127Z","repository":{"id":144486659,"uuid":"393610587","full_name":"Gharib110/auth-methods","owner":"Gharib110","description":"A package for encrypting and decrypting tokens and messages with Golang","archived":false,"fork":false,"pushed_at":"2021-08-09T20:52:03.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T05:53:56.440Z","etag":null,"topics":["golang","hmac","hmac-authentication","hmac-sha256","jwt","jwt-authentication","token"],"latest_commit_sha":null,"homepage":"","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/Gharib110.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":"2021-08-07T07:17:41.000Z","updated_at":"2021-08-21T19:16:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4f686fa-5d7f-4c50-9747-c1b8a6a3301f","html_url":"https://github.com/Gharib110/auth-methods","commit_stats":null,"previous_names":["dapperblondie/auth-methods"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gharib110%2Fauth-methods","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gharib110%2Fauth-methods/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gharib110%2Fauth-methods/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gharib110%2Fauth-methods/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gharib110","download_url":"https://codeload.github.com/Gharib110/auth-methods/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245040235,"owners_count":20551297,"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":["golang","hmac","hmac-authentication","hmac-sha256","jwt","jwt-authentication","token"],"created_at":"2025-03-23T00:34:20.726Z","updated_at":"2025-03-23T00:34:39.116Z","avatar_url":"https://github.com/Gharib110.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authentication Methods\n A package for encrypting and decrypting tokens and messages with Golang.\n A layer at the top of other packages for encrypting and decrypting.\n\n***\n\n## HMAC/sha Method\n Have to function for using them for signing and checking the validation of token\n Also you can define your DataAccess layer everything you want.\n***\n## JWT Method\n Have two handlers for signing and parsing the signed token for getting the claims.\n Using Hmac/sha methods that I implemented for HMAC method section.\n With creating random key for every token maybe you do not need rotating key.\n You can store keys as long as its own expiration date.\n\n```\nfunc (conf *AppConfig) CreateSignedToken(uc *UserClaims) (string, error)\n\nfunc (conf *AppConfig) ParseSignedToken(signedToken string) (*UserClaims, error)\n```\n***\n## Base64 Method\n Use these functionalities for encoding may be URLs or Messages or even \n use alongside of JWT method for creating keys or tokens.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgharib110%2Fauth-methods","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgharib110%2Fauth-methods","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgharib110%2Fauth-methods/lists"}