{"id":21094693,"url":"https://github.com/teawithsand/crypka","last_synced_at":"2026-04-23T12:33:07.223Z","repository":{"id":64307541,"uuid":"457777311","full_name":"teawithsand/crypka","owner":"teawithsand","description":"Crypka makes writting apps that use cryptography easier","archived":false,"fork":false,"pushed_at":"2022-03-16T11:51:31.000Z","size":168,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-01T10:42:03.330Z","etag":null,"topics":["crypto","cryptography","encryption","encryption-decryption-library"],"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/teawithsand.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-10T12:47:03.000Z","updated_at":"2025-05-20T12:16:13.000Z","dependencies_parsed_at":"2023-01-15T11:00:42.198Z","dependency_job_id":null,"html_url":"https://github.com/teawithsand/crypka","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/teawithsand/crypka","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teawithsand%2Fcrypka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teawithsand%2Fcrypka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teawithsand%2Fcrypka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teawithsand%2Fcrypka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teawithsand","download_url":"https://codeload.github.com/teawithsand/crypka/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teawithsand%2Fcrypka/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32181371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T11:42:27.955Z","status":"ssl_error","status_checked_at":"2026-04-23T11:42:18.877Z","response_time":53,"last_error":"SSL_read: 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":["crypto","cryptography","encryption","encryption-decryption-library"],"created_at":"2024-11-19T22:18:38.919Z","updated_at":"2026-04-23T12:33:07.207Z","avatar_url":"https://github.com/teawithsand.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crypka\n\nCrypka is library, which abstracts away crypto, so one can easily do:\n- Swap cryptosystems by swapping algorithm object in one place\n- Easily and securely marshal keys\n\nCrypka also implemented benchamrking and testing utils for various packag crypto primitives like signing or encryption.\n\nTesting API for now is subject to changes.\n\n## Algorithms\nFor now following algorithms are implemented and integrated with crypka:\n * Symmetric signing using STL hashes \n * Symmetric signing using HMAC + STL hashes\n * Asymmetric signing using ed25519\n * Key exchange using x25519\n * Asymmetric encryption using symmetric encryption algo and key exchange algorithm\n * Symmetric encryption using any AEAD cipher from golang's STL\n * Symmetric stream encryption using any symmetric encryption(with authentication and truncation-prevention); think of SSL for files\n * RNG from any stream cipher\n * IEC78164 padding algorithm\n\n## Why even bother doing something like that?\nThere is a couple of reasons:\n * (IMO) nobody has created library, which allows easy cryptosystem swapping, so one could go from RSA4096 to some quantumm secure algorithm by swapping single algorithm declaration\n * Since it allows easy algorithm swapping, it simplifies performance testing with various algorithms\n * Also APIs here are designed in a way, which is easy for end user(not that much consise though). If some crypto API can be implemented in slower but less error prone way, crypka will provide the 2nd one.\n\n## TODOs:\n * Support for post quantumm algorithms\n * Rekeing for stream encryptors, so one can encrypt infiite amount of data\n * Slow hashes for passwords and and proof of work\n * Better struct hashing, preferrably automated via reflection with possibility to implement interface manually, just like `encoding/json` package\n with marshalJSON\n * Implement methods like marshalJson and other, so keys can be marshaled to JSON automatically without calling `MarhsalToWriter`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteawithsand%2Fcrypka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteawithsand%2Fcrypka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteawithsand%2Fcrypka/lists"}