{"id":34043002,"url":"https://github.com/esoadamo/ssage","last_synced_at":"2026-04-08T19:31:40.211Z","repository":{"id":262870885,"uuid":"888624499","full_name":"esoadamo/ssage","owner":"esoadamo","description":"Supe-Simple AGE","archived":false,"fork":false,"pushed_at":"2025-10-18T06:57:44.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T04:22:24.550Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/esoadamo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-11-14T18:07:30.000Z","updated_at":"2025-10-18T06:57:47.000Z","dependencies_parsed_at":"2024-11-14T19:02:41.517Z","dependency_job_id":null,"html_url":"https://github.com/esoadamo/ssage","commit_stats":null,"previous_names":["esoadamo/ssage"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/esoadamo/ssage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esoadamo%2Fssage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esoadamo%2Fssage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esoadamo%2Fssage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esoadamo%2Fssage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esoadamo","download_url":"https://codeload.github.com/esoadamo/ssage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esoadamo%2Fssage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31571600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-12-13T22:54:59.434Z","updated_at":"2026-04-08T19:31:40.203Z","avatar_url":"https://github.com/esoadamo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Super-Simple AGE\n\nA wrapper around the [age](https://pypi.org/project/age/) encryption library that makes it easier to use.\nAGE stands for Actually Good Encryption, and is a modern encryption library that is easy to use and secure.\n\nAdditionally, this library provides an authenticated encryption. However, this feature is fully optional and can be disabled, achieving full compatibility with the age library.\n\n## Installation\n\n```bash\npip install ssage\n```\n\n## Supported backends\n\nWhen using the `ssage` library, you can choose between backends\nwhich handle the actual encryption and decryption.\nBackends are chosen by passing `backend=` param to the `SSAGE` class.\nThe following backends are supported:\n\n### Python age\n\nThis is the default backend, and it is a pure Python implementation of the age encryption library.\nIts main advantage is that it does not require any additional dependencies,\nbut does not guarantee side-channel resistance, nor multi-threading support.\n\n### Native\n\nNative backend uses the `age` and `age-keygen` binaries to perform encryption and decryption.\nIts main advantage is that is runs anywhere the `age` binaries are available,\nthe main disadvantage is that is stores the private key in a temporary file.\n\n### Pyrage\n\nPyrage is using a Rust-based binding for the age encryption.\nMain advantage is that it is faster than the Python age backend, but\nthe Rust library needs to be compiled for the target platform.\n\n## Code Example\n\n### Simple Encryption\n\n```python\nfrom ssage import SSAGE\ne = SSAGE(SSAGE.generate_private_key())\nencrypted = e.encrypt('Hello, world!')\nprint(encrypted)\ndecrypted = e.decrypt(encrypted)\nprint(decrypted)\nassert decrypted == 'Hello, world!'\nprint('Test passed!')\n```\n\n### Simple Authenticated Encryption\n\n```python\nfrom ssage import SSAGE\ne = SSAGE(SSAGE.generate_private_key(), strip=True, authenticate=True)\nencrypted = e.encrypt('Hello, world!')\nprint(encrypted)\ndecrypted = e.decrypt(encrypted)\nprint(decrypted)\nassert decrypted == 'Hello, world!'\nprint('Test passed!')\n```\n\n### Public Key Encryption\n\n```python\nfrom ssage import SSAGE\npublic_key = SSAGE(SSAGE.generate_private_key()).public_key\ne = SSAGE(public_key=public_key)\nencrypted = e.encrypt('Hello, world!')\nprint(encrypted)\ndecrypted = e.decrypt(encrypted) # This will fail because the private key is not available\n```\n\n### Multiple Recipients\n\n```python\nfrom ssage import SSAGE\npublic_key_1 = SSAGE(SSAGE.generate_private_key()).public_key\npublic_key_2 = SSAGE(SSAGE.generate_private_key()).public_key\ne = SSAGE(public_key=public_key_1)\ne.encrypt('Hello, world!', additional_recipients=[public_key_2])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesoadamo%2Fssage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesoadamo%2Fssage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesoadamo%2Fssage/lists"}