{"id":13546124,"url":"https://github.com/CasualX/obfstr","last_synced_at":"2025-04-02T17:32:35.018Z","repository":{"id":34305620,"uuid":"169165852","full_name":"CasualX/obfstr","owner":"CasualX","description":"Compiletime string literal obfuscation for Rust.","archived":false,"fork":false,"pushed_at":"2024-10-06T16:31:03.000Z","size":98,"stargazers_count":497,"open_issues_count":0,"forks_count":27,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-04T08:49:06.519Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/CasualX.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}},"created_at":"2019-02-04T23:28:58.000Z","updated_at":"2025-03-01T05:54:18.000Z","dependencies_parsed_at":"2024-06-18T22:45:22.325Z","dependency_job_id":"cc4159da-1fae-4d25-9e0f-0d3e0892f106","html_url":"https://github.com/CasualX/obfstr","commit_stats":{"total_commits":43,"total_committers":2,"mean_commits":21.5,"dds":"0.046511627906976716","last_synced_commit":"087aac4205e0cd644e1e6b5366a062f05cc36fb0"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CasualX%2Fobfstr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CasualX%2Fobfstr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CasualX%2Fobfstr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CasualX%2Fobfstr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CasualX","download_url":"https://codeload.github.com/CasualX/obfstr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246860264,"owners_count":20845634,"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":[],"created_at":"2024-08-01T12:00:32.180Z","updated_at":"2025-04-02T17:32:34.716Z","avatar_url":"https://github.com/CasualX.png","language":"Rust","funding_links":[],"categories":["Offensive Security and Red Teaming","Rust"],"sub_categories":["Packing, Obfuscation, Encryption, Anti-analysis"],"readme":"String Obfuscation\n==================\n\n[![MIT License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![crates.io](https://img.shields.io/crates/v/obfstr.svg)](https://crates.io/crates/obfstr)\n[![docs.rs](https://docs.rs/obfstr/badge.svg)](https://docs.rs/obfstr)\n[![Build status](https://github.com/CasualX/obfstr/workflows/CI/badge.svg)](https://github.com/CasualX/obfstr/actions)\n\nCompiletime string constant obfuscation for Rust.\n\nThe string constant itself is embedded in obfuscated form and deobfuscated locally.\nThis reference to a temporary value must be used in the same statement it was generated.\nSee the documentation for more advanced use cases.\n\nLooking for obfuscating formatting strings? See `fmtools` ([github](https://github.com/CasualX/fmtools), [crates.io](https://crates.io/crates/fmtools), [docs.rs](https://docs.rs/fmtools/0.1.2/fmtools/)) with the optional dependency `obfstr` enabled to automatically apply string obfuscation to formatting strings.\n\nExamples\n--------\n\nThe `obfstr!` macro returns the deobfuscated string as a temporary value:\n\n```rust\nuse obfstr::obfstr as s;\nassert_eq!(s!(\"Hello 🌍\"), \"Hello 🌍\");\n```\n\nThe `wide!` macro provides compiletime utf16 string constants:\n\n```rust\nlet expected = \u0026['W' as u16, 'i' as u16, 'd' as u16, 'e' as u16, 0];\nassert_eq!(obfstr::wide!(\"Wide\\0\"), expected);\n```\n\nThe `random!` macro provides compiletime random values:\n\n```rust\nconst RND: i32 = obfstr::random!(u8) as i32;\nassert!(RND \u003e= 0 \u0026\u0026 RND \u003c= 255);\n```\n\nCompiletime random values are based on `file!()`, `line!()`, `column!()` and a fixed seed to ensure reproducibility.\nThis fixed seed is stored as text in the environment variable `OBFSTR_SEED` and can be changed as desired.\n\nLicense\n-------\n\nLicensed under [MIT License](https://opensource.org/licenses/MIT), see [license.txt](license.txt).\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCasualX%2Fobfstr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCasualX%2Fobfstr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCasualX%2Fobfstr/lists"}