{"id":26053308,"url":"https://github.com/zfi2/teavault","last_synced_at":"2026-05-20T16:40:49.305Z","repository":{"id":280699288,"uuid":"942870383","full_name":"zfi2/teavault","owner":"zfi2","description":"compile-time string encryption using the TEA algorithm","archived":false,"fork":false,"pushed_at":"2025-03-04T20:22:40.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T21:21:49.580Z","etag":null,"topics":["compile-time","cpp","cryptography","encryption","header-only","obfuscation","reverse-engineering","security","string-encryption","tea-cipher"],"latest_commit_sha":null,"homepage":"","language":"C++","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/zfi2.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":"2025-03-04T20:09:25.000Z","updated_at":"2025-03-04T20:24:43.000Z","dependencies_parsed_at":"2025-03-04T21:21:50.809Z","dependency_job_id":"fd0dbdb8-ecf6-47ed-9690-f9f7c82c39bb","html_url":"https://github.com/zfi2/teavault","commit_stats":null,"previous_names":["zfi2/teavault"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfi2%2Fteavault","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfi2%2Fteavault/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfi2%2Fteavault/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfi2%2Fteavault/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zfi2","download_url":"https://codeload.github.com/zfi2/teavault/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242515280,"owners_count":20141988,"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":["compile-time","cpp","cryptography","encryption","header-only","obfuscation","reverse-engineering","security","string-encryption","tea-cipher"],"created_at":"2025-03-08T07:27:53.673Z","updated_at":"2026-05-20T16:40:44.267Z","avatar_url":"https://github.com/zfi2.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## teavault - a header-only compile-time string encryption functionality using the tiny encryption algorithm (tea).\n\n## features\n- compile-time encryption to resist reverse-engineering\n- automatic or manual decryption at runtime\n- order scrambling for additional obfuscation\n- flexible key generation with optional custom seeds\n\n## how it works\nthe encryption uses the tea algorithm with a 128-bit key. by default, the key is generated using `__TIME__` and `__DATE__` preprocessor macros, ensuring a unique key for each compilation. you can also provide custom seed values to generate the key.\n\n## example usage\n```cpp\n#include \u003ciostream\u003e\n#include \"tea_str.hpp\"\n\nint main() {\n    // automatic decryption with default key generation\n    auto decrypted_str = tea_str(\"automatically decrypted string!\");\n\n    // manual decryption object\n    auto encrypted_obj = tea_str_m(\"manually decrypted string\");\n\n    // custom seed key generation\n    auto custom_seed_str = tea_str(\"custom seed example\", 1234, 5678, 91011, 1213);\n\n    std::cout \u003c\u003c \"automatic decryption: \" \u003c\u003c decrypted_str \u003c\u003c \"\\n\";\n    std::cout \u003c\u003c \"manual decryption: \" \u003c\u003c encrypted_obj.decrypt() \u003c\u003c \"\\n\";\n    std::cout \u003c\u003c \"custom seed decryption: \" \u003c\u003c custom_seed_str \u003c\u003c \"\\n\";\n\n    return 0;\n}\n```\n\n## macro references\n- `tea_str(str, ...)`: creates encrypted string with automatic decryption\n  - `str`: string to encrypt\n  - `...`: optional custom seed values\n\n- `tea_str_m(str, ...)`: creates encrypted string object for manual decryption\n  - `str`: string to encrypt\n  - `...`: optional custom seed values\n\n## key generation\nthe `key_generator::generate()` method creates a 128-bit key from:\n- default: `__TIME__` and `__DATE__` preprocessor macros\n- custom: user-provided seed values\n\n## license\nthis project is licensed under the MIT license. see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzfi2%2Fteavault","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzfi2%2Fteavault","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzfi2%2Fteavault/lists"}