{"id":22122085,"url":"https://github.com/michaelvanstraten/encryption-macros","last_synced_at":"2025-07-25T13:32:20.006Z","repository":{"id":62438018,"uuid":"478964358","full_name":"michaelvanstraten/encryption-macros","owner":"michaelvanstraten","description":"Macros for compile time String obfuscations","archived":false,"fork":false,"pushed_at":"2022-09-07T06:15:24.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-29T04:13:52.069Z","etag":null,"topics":["macros","obfuscate-strings","rust","string-obfuscation","xor-cipher"],"latest_commit_sha":null,"homepage":"https://docs.rs/encryption-macros/","language":"Rust","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/michaelvanstraten.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}},"created_at":"2022-04-07T11:58:36.000Z","updated_at":"2024-09-14T14:47:42.000Z","dependencies_parsed_at":"2022-11-01T21:51:23.264Z","dependency_job_id":null,"html_url":"https://github.com/michaelvanstraten/encryption-macros","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelvanstraten%2Fencryption-macros","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelvanstraten%2Fencryption-macros/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelvanstraten%2Fencryption-macros/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelvanstraten%2Fencryption-macros/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelvanstraten","download_url":"https://codeload.github.com/michaelvanstraten/encryption-macros/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227457067,"owners_count":17777943,"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":["macros","obfuscate-strings","rust","string-obfuscation","xor-cipher"],"created_at":"2024-12-01T15:17:17.862Z","updated_at":"2024-12-01T15:17:18.510Z","avatar_url":"https://github.com/michaelvanstraten.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# encryption-marcos\n\nThis crate provides macros to XOR strings declarative or automatically at compile time and automatically decode them at run time.\n\nThe XOR key is automatically generated via a macro expansion in the utils sub-crate. \nTo generate a new key just run cargo clean and recompiled the target to re-expand this macro. \n\n## Example \n```rust\nuse encryption_macros::encrypt_strings;\n\nencrypt_strings!{\n    fn main() {\n        println!(\"everything in this scope gets encrypted, {}\", \"even this\")\n    }\n}\n```\n\n## Warning\n\n`format_args!` cannot capture variables when the format string is expanded from a macro.\n\nSo something like this: ```println!(\"{variable_a}\")``` sadly doesn't work when inside an encrypted scope.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelvanstraten%2Fencryption-macros","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelvanstraten%2Fencryption-macros","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelvanstraten%2Fencryption-macros/lists"}