From 6160185ace79657422be543d46eba8e8c818abf2 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sat, 9 Jul 2022 23:19:00 +0800 Subject: [PATCH] feat: add obfstr --- README.md | 5 ++++- __misc/obfstr/Cargo.lock | 16 ++++++++++++++++ __misc/obfstr/Cargo.toml | 10 ++++++++++ __misc/obfstr/src/main.rs | 9 +++++++++ 4 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 __misc/obfstr/Cargo.lock create mode 100644 __misc/obfstr/Cargo.toml create mode 100644 __misc/obfstr/src/main.rs diff --git a/README.md b/README.md index d8cc118..1769bcd 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,7 @@ Project or files: │   ├── lazy_static │   ├── libmacchina │   ├── num_cpus +│   ├── obfstr │   ├── reed-solomon │   ├── regex │   ├── shadowrs @@ -182,6 +183,8 @@ Project or files: ├── __translate │   └── retranslate ├── __wasm +│   ├── deno_rust_wasm_import_functions +│   ├── deno_rust_wasm_js_sandbox │   ├── deno_rust_wasm_qr_decode │   ├── wasi │   ├── wasm @@ -227,7 +230,7 @@ Project or files: ├── vec.rs └── while.rs -197 directories, 33 files +200 directories, 33 files ``` diff --git a/__misc/obfstr/Cargo.lock b/__misc/obfstr/Cargo.lock new file mode 100644 index 0000000..de33408 --- /dev/null +++ b/__misc/obfstr/Cargo.lock @@ -0,0 +1,16 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "obfstr" +version = "0.1.0" +dependencies = [ + "obfstr 0.3.0", +] + +[[package]] +name = "obfstr" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b2b2cbbfd8defa51ff24450a61d73b3ff3e158484ddd274a883e886e6fbaa78" diff --git a/__misc/obfstr/Cargo.toml b/__misc/obfstr/Cargo.toml new file mode 100644 index 0000000..cba43bb --- /dev/null +++ b/__misc/obfstr/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "obfstr" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +obfstr = "0.3.0" + diff --git a/__misc/obfstr/src/main.rs b/__misc/obfstr/src/main.rs new file mode 100644 index 0000000..e68a120 --- /dev/null +++ b/__misc/obfstr/src/main.rs @@ -0,0 +1,9 @@ +use obfstr::obfstr; + +fn main() { + obfstr!( + let secret = "Secret!!"; + ); + + println!("{}", secret); +}