### Cryptify Macros and Functions Source: https://docs.rs/cryptify/latest/cryptify/all.html Overview of the available macros and functions provided by the Cryptify library. ```APIDOC ## Macros ### encrypt_string - Description: Macro used for encrypting string data. ### flow_stmt - Description: Macro used for handling flow statements within the library. ## Functions ### decrypt_string - Description: Function used for decrypting string data. ``` -------------------------------- ### Functions Source: https://docs.rs/cryptify/latest/cryptify/index.html Runtime functions provided by the cryptify crate. ```APIDOC ## Functions ### decrypt_string #### Description A helper decryption function meant to decrypt encrypted strings at runtime. ``` -------------------------------- ### Macros Source: https://docs.rs/cryptify/latest/cryptify/index.html Procedural macros provided by the cryptify crate for compile-time operations. ```APIDOC ## Macros ### encrypt_string #### Description A procedural macro that encrypts a string literal at compile time. ### flow_stmt #### Description A procedural macro that adds a compile-time randomly generated loop and variables. ``` -------------------------------- ### Runtime Functions Source: https://docs.rs/cryptify/latest/cryptify Helper functions for runtime operations. ```APIDOC ## decrypt_string ### Description A helper decryption function meant to decrypt encrypted strings at runtime. ``` -------------------------------- ### Procedural Macros Source: https://docs.rs/cryptify/latest/cryptify Macros used for compile-time string encryption and code obfuscation. ```APIDOC ## encrypt_string ### Description A procedural macro that encrypts a string literal at compile time. ## flow_stmt ### Description A procedural macro that adds a compile-time randomly generated loop and variables. ``` -------------------------------- ### Decrypt String at Runtime Source: https://docs.rs/cryptify/latest/src/cryptify/lib.rs.html Use this helper function to decrypt strings at runtime. It uses a key from the CRYPTIFY_KEY environment variable or a default key if the variable is not set. ```rust pub use labyrinth_macros::*; /// A helper decryption function meant to decrypt encrypted strings at runtime /// /// # Parameters /// - `input`: The encrypted string literal /// pub fn decrypt_string(encrypted: &str) -> String { let key = std::env::var("CRYPTIFY_KEY").unwrap_or_else(|_| "xnasff3wcedj".to_string()); encrypted .chars() .zip(key.chars().cycle()) .map(|(encrypted_char, key_char)| ((encrypted_char as u8) ^ (key_char as u8)) as char) .collect() } ``` -------------------------------- ### encrypt_string Macro Source: https://docs.rs/cryptify/latest/index.html A procedural macro that encrypts a string literal at compile time. ```APIDOC ## encrypt_string ### Description A procedural macro that encrypts a string literal at compile time. ### Usage Use this macro to wrap string literals to ensure they are stored in an encrypted format within the compiled binary. ``` -------------------------------- ### encrypt_string Macro Source: https://docs.rs/cryptify/latest/cryptify/macro.encrypt_string.html A procedural macro used to encrypt string literals during the compilation process. ```APIDOC ## encrypt_string ### Description A procedural macro that encrypts a string literal at compile time. ### Parameters - **input** (string literal) - Required - The string literal to be encrypted. ``` -------------------------------- ### Decrypt String Function Source: https://docs.rs/cryptify/latest/src/cryptify/lib.rs.html Provides a function to decrypt strings at runtime using a key. ```APIDOC ## decrypt_string ### Description A helper decryption function meant to decrypt encrypted strings at runtime. ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Function Signature `pub fn decrypt_string(encrypted: &str) -> String` ### Usage This function takes an encrypted string slice as input and returns the decrypted string. It uses an environment variable `CRYPTIFY_KEY` for the decryption key, falling back to a default key if the environment variable is not set. ### Example ```rust let encrypted_message = "some_encrypted_data"; let decrypted_message = cryptify::decrypt_string(encrypted_message); println!("{}", decrypted_message); ``` ### Environment Variable - **CRYPTIFY_KEY** (string) - Optional - The key used for decryption. If not provided, a default key "xnasff3wcedj" is used. ``` -------------------------------- ### flow_stmt Macro Source: https://docs.rs/cryptify/latest/index.html A procedural macro that adds a compile-time randomly generated loop and variables. ```APIDOC ## flow_stmt ### Description A procedural macro that adds a compile-time randomly generated loop and variables to obfuscate code execution flow. ``` -------------------------------- ### decrypt_string Function Source: https://docs.rs/cryptify/latest/cryptify/fn.decrypt_string.html Provides details on the decrypt_string function, its parameters, and its purpose. ```APIDOC ## decrypt_string ### Description A helper decryption function meant to decrypt encrypted strings at runtime. ### Function Signature ```rust pub fn decrypt_string(encrypted: &str) -> String ``` ### Parameters #### Path Parameters - **encrypted** (str) - Required - The encrypted string literal to be decrypted. ``` -------------------------------- ### Usage of encrypt_string macro Source: https://docs.rs/cryptify/latest/cryptify/macro.encrypt_string.html The encrypt_string macro is a procedural macro used to encrypt string literals at compile time. ```rust encrypt_string!() { /* proc-macro */ } ``` -------------------------------- ### decrypt_string Function Source: https://docs.rs/cryptify/latest/index.html A helper decryption function meant to decrypt encrypted strings at runtime. ```APIDOC ## decrypt_string ### Description A helper decryption function meant to decrypt encrypted strings at runtime that were previously encrypted using the encrypt_string macro. ``` -------------------------------- ### Decrypt String Function Signature Source: https://docs.rs/cryptify/latest/cryptify/fn.decrypt_string.html This is the function signature for decrypt_string. It takes an encrypted string slice as input and returns a decrypted String. Use this helper function to decrypt encrypted strings at runtime. ```rust pub fn decrypt_string(encrypted: &str) -> String ``` -------------------------------- ### Declare flow_stmt! Macro Source: https://docs.rs/cryptify/latest/cryptify/macro.flow_stmt.html This macro adds a compile-time randomly generated loop and variables. The unsafe operation is intended to prevent compiler optimizations from removing the dummy loop. ```rust flow_stmt!() { /* proc-macro */ } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.