{"id":36549404,"url":"https://github.com/g-crypt/g-crypt","last_synced_at":"2026-01-15T02:47:25.607Z","repository":{"id":332036870,"uuid":"875264735","full_name":"g-crypt/g-crypt","owner":"g-crypt","description":"Simple encryption library in Go using AES-256.","archived":false,"fork":false,"pushed_at":"2024-10-19T15:57:50.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-12T14:16:20.742Z","etag":null,"topics":["aes-encryption","aes256","crypter-2024","crypto","decryption","encryption","golang","library"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/g-crypt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-19T14:22:46.000Z","updated_at":"2024-10-19T15:57:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/g-crypt/g-crypt","commit_stats":null,"previous_names":["g-crypt/g-crypt"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/g-crypt/g-crypt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-crypt%2Fg-crypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-crypt%2Fg-crypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-crypt%2Fg-crypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-crypt%2Fg-crypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/g-crypt","download_url":"https://codeload.github.com/g-crypt/g-crypt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-crypt%2Fg-crypt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28441516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"online","status_checked_at":"2026-01-15T02:00:08.019Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["aes-encryption","aes256","crypter-2024","crypto","decryption","encryption","golang","library"],"created_at":"2026-01-12T06:30:48.675Z","updated_at":"2026-01-15T02:47:25.599Z","avatar_url":"https://github.com/g-crypt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# G-Crypt\n\nSimple encryption library in Go using AES-256.\n\n[![codecov](https://codecov.io/github/g-crypt/g-crypt/branch/master/graph/badge.svg?token=DZT5RJ1S8U)](https://codecov.io/github/g-crypt/g-crypt)\n\n## Installation\n\nTo install the package, run the following command:\n\n```bash\ngo get github.com/g-crypt/g-crypt\n```\n\nOr\n\n```bash\ngo install github.com/g-crypt/g-crypt\n```\n\n### Usage\n\nHere is an example of how to use the encryption and decryption functions provided by the g-crypt package:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\tgcrypt \"github.com/g-crypt/g-crypt\"\n)\n\nfunc main() {\n    text := \"Hello World\"\n    password := \"secret-password\"\n\n    // Encrypt the text\n    encrypted, err := gcrypt.EncryptAES256(text, password)\n    if err != nil {\n        fmt.Println(\"Error encrypting:\", err)\n        return\n    }\n    fmt.Println(\"Encrypted text:\", encrypted)\n\n    // Decrypt the text\n    decrypted, err := gcrypt.DecryptAES256(encrypted, password)\n    if err != nil {\n        fmt.Println(\"Error decrypting:\", err)\n        return\n    }\n    fmt.Println(\"Decrypted text:\", string(decrypted))\n}\n```\n\n### Functions\n#### EncryptAES256\n```go\nfunc EncryptAES256(text, password string) (string, error)\n```\nEncrypts a text using AES-256.\n\n- `text`: The text to be encrypted.\n- `password`: The password used to generate the encryption key.\n\nReturns the encrypted text in base64 or an error if it occurs.\n\n#### DecryptAES256\n```go\nfunc DecryptAES256(encryptedText, password string) ([]byte, error)\n```\nDecrypts a text encrypted using AES-256.\n\n- `encryptedText`: The encrypted text in base64.\n- `password`: The password used to generate the encryption key.\n\nReturns the decrypted text as a byte slice or an error if it occurs.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg-crypt%2Fg-crypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg-crypt%2Fg-crypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg-crypt%2Fg-crypt/lists"}