{"id":24431996,"url":"https://github.com/syniol/sycrypt","last_synced_at":"2025-03-13T20:13:17.603Z","repository":{"id":205480709,"uuid":"714339080","full_name":"syniol/sycrypt","owner":"syniol","description":"Password Encryption and Verification Library for Golang","archived":false,"fork":false,"pushed_at":"2023-11-04T22:32:49.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T15:41:44.114Z","etag":null,"topics":["encryption-decryption","golang","pki","rsa-cryptography","security-tools"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syniol.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":"2023-11-04T16:07:00.000Z","updated_at":"2023-11-04T16:18:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"d52abd38-4ca2-4607-a825-8b99a0f46b49","html_url":"https://github.com/syniol/sycrypt","commit_stats":null,"previous_names":["syniol/sycrypt"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syniol%2Fsycrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syniol%2Fsycrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syniol%2Fsycrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syniol%2Fsycrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syniol","download_url":"https://codeload.github.com/syniol/sycrypt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243475368,"owners_count":20296712,"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":["encryption-decryption","golang","pki","rsa-cryptography","security-tools"],"created_at":"2025-01-20T15:29:08.837Z","updated_at":"2025-03-13T20:13:17.571Z","avatar_url":"https://github.com/syniol.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SyCrypt\nIt's a password hashing package to create a strong military grade passwords.\n\n\n## Motivation\nTo stop using ridiculous \u0026 outdated libraries for password hashing with salt and crap!\n\n\n## How-to Guide\nYou can instantiate a creation of new `Credentials` data object using:\n\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/syniol/sycrypt\"\n)\n\nfunc main() {\n\tcredentials, err := sycrypt.NewCredential(\"johnspassword1\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// prints hashed password with public and private key\n\tresult, err := json.Marshal(credentials)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tprintln(string(result))\n}\n```\n\nThis will execution will output a credentials JSON object where public, private key, and hashed \npassword is stored in `base64` before `hex` encode.\n\n```json\n{\n  \"key\":      \"MmQyZDJkMmQyZDQyNDU0NzQ5NGUyMDUwNTU0MjRjNDk0MzIwNGI0NTU5MmQyZDJkMmQyZDBhNGQ0MzZmNzc0MjUxNTk0NDRiMzI1Njc3NDE3OTQ1NDE2MTVhNTc2NjZlNmUzNzQxNmU0YzQ0NDY2MTRmMzM0NzMwNDQ2OTdhNzA1NzRhNDY2MjdhNzI3NjcyNDIzMTRhNjE3YTc1NzM0NjY5MzQ2ODY4Mzg2NzNkMGEyZDJkMmQyZDJkNDU0ZTQ0MjA1MDU1NDI0YzQ5NDMyMDRiNDU1OTJkMmQyZDJkMmQwYQ==\",\n  \"hashedPassword\": \"ZDRkM2QzMWQyN2JjZTYyZTRjODI2MTFkYmZjMzk0YmIzNTI4MmRhODMwYTBhMWI3NjBiZjhkZjQzOGZjZDViOTViMGI4ZDBjMTY5ZjlhMzAxNGIwMGY4ZDVlYTMyMWE5MDAzNzVhNGE0MWZhMTFhZDViNjEwYTg0YTk2ZTAyMDI=\"\n}\n```\n\nThis could be stored in database for verification. Please see code below for verification.\n\n```go\n\npackage main\n\nimport (\n\t\"github.com/syniol/sycrypt\"\n)\n\nfunc main() {\n\t// populate hashed password, public key and private keys from initial creation\n\t// this could be stored in database to use in verification process 'VerifyPassword'\n\tcredentials := \u0026sycrypt.Credential{\n\t\tKey:      \"MmQyZDJkMmQyZDQyNDU0NzQ5NGUyMDUwNTU0MjRjNDk0MzIwNGI0NTU5MmQyZDJkMmQyZDBhNGQ0MzZmNzc0MjUxNTk0NDRiMzI1Njc3NDE3OTQ1NDE2MTVhNTc2NjZlNmUzNzQxNmU0YzQ0NDY2MTRmMzM0NzMwNDQ2OTdhNzA1NzRhNDY2MjdhNzI3NjcyNDIzMTRhNjE3YTc1NzM0NjY5MzQ2ODY4Mzg2NzNkMGEyZDJkMmQyZDJkNDU0ZTQ0MjA1MDU1NDI0YzQ5NDMyMDRiNDU1OTJkMmQyZDJkMmQwYQ==\",\n\t\tHashedPassword: \"ZDRkM2QzMWQyN2JjZTYyZTRjODI2MTFkYmZjMzk0YmIzNTI4MmRhODMwYTBhMWI3NjBiZjhkZjQzOGZjZDViOTViMGI4ZDBjMTY5ZjlhMzAxNGIwMGY4ZDVlYTMyMWE5MDAzNzVhNGE0MWZhMTFhZDViNjEwYTg0YTk2ZTAyMDI=\",\n\t}\n\n\tisVerified := credentials.VerifyPassword(\"johnspassword1\")\n\t\n\t// prints if password is verified\n\tif isVerified == true {\n\t\tprintln(\"verified\")\n\t\t\n\t\treturn\n    }\n\t\n\tprintln(\"not verified\")\n}\n```\n\n\u003e __Please refer at test file for more examples and test cases.__\n\n\n#### Credits\nEngineered by [Hadi Tajallaei](mailto:hadi@syniol.com) in London.\n\nCopyright \u0026copy; 2023 Syniol Limited. All rights Reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyniol%2Fsycrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyniol%2Fsycrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyniol%2Fsycrypt/lists"}