### Install StegCloak Globally Source: https://github.com/kurolabs/stegcloak/blob/master/README.md Install the StegCloak CLI globally using npm for command-line access. ```bash $ npm install -g stegcloak ``` -------------------------------- ### Install StegCloak Locally Source: https://github.com/kurolabs/stegcloak/blob/master/README.md Install StegCloak as a dependency for local use within your Node.js projects. ```bash $ npm install stegcloak ``` -------------------------------- ### StegCloak Reveal Command Options Source: https://github.com/kurolabs/stegcloak/blob/master/README.md Details the available options for the 'stegcloak reveal' command, including file input, clipboard access, and output streaming for the extracted secret. ```bash reveal [message] -f, --file Extract message from file -cp, --clip Copy message directly from clipboard -o, --output Stream the secret to an output file -c, --config Config file -h, --help display help for command ``` -------------------------------- ### Initialize StegCloak Source: https://github.com/kurolabs/stegcloak/blob/master/README.md Initializes the StegCloak class. Set the first argument to true for encryption and the second to false for no HMAC. ```javascript const StegCloak = require('stegcloak'); const stegcloak = new StegCloak(true, false); ``` -------------------------------- ### Reveal Operation Configuration Source: https://github.com/kurolabs/stegcloak/wiki/StegCloak-Configuration-File Use this JSON configuration to reveal a hidden message from a StegCloaked message. Provide the StegCloaked message, password, and an optional output file. If no output is specified, the deciphered secret is printed to STDOUT. ```json { "message": "We need food supplies here", // StegCloaked message "password": "Allies need help", "output": "out.txt" // optional } ``` -------------------------------- ### StegCloak Hide Command Options Source: https://github.com/kurolabs/stegcloak/blob/master/README.md Details the available options for the 'stegcloak hide' command, including file inputs for secret and cover text, encryption control, integrity flags, and output redirection. ```bash hide [options] [secret] [cover] -fc, --fcover Extract cover text from file -fs, --fsecret Extract secret text from file -n, --nocrypt If you don't need encryption (default: false) -i, --integrity If additional security of preventing tampering is needed (default: false) -o, --output Stream the results to an output file -c, --config Config file -h, --help display help for command ``` -------------------------------- ### Reveal Secret with StegCloak CLI Source: https://github.com/kurolabs/stegcloak/blob/master/README.md Use the 'reveal' command in the StegCloak CLI to extract a hidden secret from a message. Options include reading from a file, clipboard, or streaming the output. ```bash $ stegcloak reveal ``` -------------------------------- ### Hide Operation Configuration Source: https://github.com/kurolabs/stegcloak/wiki/StegCloak-Configuration-File Use this JSON configuration to hide a secret message within a cover message. Specify the secret, cover, password, and an optional output file. Defaults are applied for integrity and encryption if not specified. ```json { "secret": "Attack at Dawn!", "cover": "We need food supplies here", "password": "Allies need help", "output": "out.txt" // optional, default -> clipboard "integrity": false, // optional, default -> false "nocrypt": false // optional, default -> false } ``` -------------------------------- ### Hide Secret with StegCloak CLI Source: https://github.com/kurolabs/stegcloak/blob/master/README.md Use the 'hide' command in the StegCloak CLI to embed a secret within cover text. Options allow specifying files for secret and cover text, disabling encryption, adding integrity checks, and directing output to a file. ```bash $ stegcloak hide ``` -------------------------------- ### stegcloak.reveal Source: https://github.com/kurolabs/stegcloak/blob/master/README.md Reveals a secret message that was previously hidden using the hide method, requiring the same password. ```APIDOC ## stegcloak.reveal(data, password) -> string ### Description This method reveals a secret message that was previously hidden using the `stegcloak.hide` method. It requires the same password that was used during the hiding process and automatically detects the obfuscation method (encryption or integrity checks) applied. ### Method `reveal` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Parameters * **data** (string) - Required - The data (cover text) containing the hidden secret. * **password** (string) - Required - The password used during the hiding process. ### Request Example ```javascript const secret = stegcloak.reveal(magic, "mischief managed"); ``` ### Response #### Success Response * Returns a string representing the original secret message. #### Response Example ``` "Voldemort is back" ``` ``` -------------------------------- ### stegcloak.hide Source: https://github.com/kurolabs/stegcloak/blob/master/README.md Hides a secret message within a cover text using a password. The method utilizes internal encryption and integrity flags for obfuscation. ```APIDOC ## stegcloak.hide(secret, password, cover) -> string ### Description This method hides a secret message within a cover text using a provided password. It leverages the internal `stegcloak.encrypt` and `stegcloak.integrity` boolean flags to determine the obfuscation method. ### Method `hide` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Parameters * **secret** (string) - Required - The secret message to hide. * **password** (string) - Required - The password to use for obfuscation. * **cover** (string) - Required - The cover text in which to hide the secret. ### Request Example ```javascript const magic = stegcloak.hide("Voldemort is back", "mischief managed", "The WiFi's not working here!"); ``` ### Response #### Success Response * Returns a string representing the cover text with the secret hidden within it. #### Response Example ``` "The WiFi's not working here!" ``` ``` -------------------------------- ### Hide Secret Message Source: https://github.com/kurolabs/stegcloak/blob/master/README.md Hides a secret message within a cover text using the provided password. The encryption and integrity flags set during initialization determine the obfuscation method. ```javascript const magic = stegcloak.hide("Voldemort is back", "mischief managed", "The WiFi's not working here!"); console.log(magic); // The WiFi's not working here! ``` -------------------------------- ### Reveal Secret Message Source: https://github.com/kurolabs/stegcloak/blob/master/README.md Reveals a secret message from the provided data using the correct password. It automatically detects and applies the necessary decryption or integrity checks based on how the message was hidden. ```javascript const secret = stegcloak.reveal(magic, "mischief managed"); console.log(secret); // Voldemort is back ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.