{"id":21454579,"url":"https://github.com/dhcgn/crypto","last_synced_at":"2025-03-17T03:22:04.334Z","repository":{"id":57620134,"uuid":"390799850","full_name":"dhcgn/crypto","owner":"dhcgn","description":"Wrapper of secure encryption implementation to simplify the usage.","archived":false,"fork":false,"pushed_at":"2023-03-06T23:25:07.000Z","size":23,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-23T13:08:21.530Z","etag":null,"topics":["cryptography","encryption","go","golang"],"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/dhcgn.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-07-29T17:17:59.000Z","updated_at":"2021-07-30T09:06:32.000Z","dependencies_parsed_at":"2024-06-20T14:03:20.521Z","dependency_job_id":"aefd358a-86ac-4c88-aa6f-ff097646bafa","html_url":"https://github.com/dhcgn/crypto","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhcgn%2Fcrypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhcgn%2Fcrypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhcgn%2Fcrypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhcgn%2Fcrypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhcgn","download_url":"https://codeload.github.com/dhcgn/crypto/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243965719,"owners_count":20375920,"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":["cryptography","encryption","go","golang"],"created_at":"2024-11-23T05:08:13.470Z","updated_at":"2025-03-17T03:22:04.315Z","avatar_url":"https://github.com/dhcgn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple go crypto framework\n\n[![Go](https://github.com/dhcgn/crypto/actions/workflows/go.yml/badge.svg)](https://github.com/dhcgn/crypto/actions/workflows/go.yml)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=dhcgn_crypto\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=dhcgn_crypto)\n[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=dhcgn_crypto\u0026metric=sqale_index)](https://sonarcloud.io/dashboard?id=dhcgn_crypto)\n[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=dhcgn_crypto\u0026metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=dhcgn_crypto)\n[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=dhcgn_crypto\u0026metric=bugs)](https://sonarcloud.io/dashboard?id=dhcgn_crypto)\n[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=dhcgn_crypto\u0026metric=code_smells)](https://sonarcloud.io/dashboard?id=dhcgn_crypto)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=dhcgn_crypto\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=dhcgn_crypto)\n[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=dhcgn_crypto\u0026metric=ncloc)](https://sonarcloud.io/dashboard?id=dhcgn_crypto)\n\n## Samples\n### Simple Encryption\n\nUses AES-256-GCM (an authenticated encryption mode) to encrypt and decrypt data, password will be derived with PBKDF2 and 100.000 iterations. Because of this high iteration count the encryption and decryption process takes a minimum of around 200ms.\n\n```go\ncipherstring, err := simple.Encrypt(\"my secret password\", []byte(\"my-secret-data\"))\n\nencrypted, err := simple.Decrypt(\"my secret password\", \"CSv1.443MMQSEWDPHEYKVS42FWJN633PS4EQIOFXDGMJOM2ON4ACJ.CIG44UL5BXWJU6JSW2BQ.KIORDLXAIJAT7NCTJHWYCE273Q\")\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhcgn%2Fcrypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhcgn%2Fcrypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhcgn%2Fcrypto/lists"}