Disappear CLI is a command-line interface for Disappear.net, enabling users to securely share encrypted and ephemeral messages and files using mnemonic phrases.
Disappear.net is a platform that offers secure, ephemeral messaging by utilizing mnemonic phrases for encryption and decryption. Messages and files encrypted through Disappear.net are stored temporarily and automatically expire after a specified duration.
- Secure Encryption: Uses mnemonic phrases to derive encryption keys.
- Ephemeral Messaging: Set expiration times for messages and files.
- File Support: Encrypt and decrypt files up to 10MB.
- CLI Convenience: Interact with Disappear.net directly from your terminal.
- Node.js version 16 or higher.
- npm (Node Package Manager).
-
Clone the Repository
bash git clone https://github.com/yourusername/disappear-cli.git cd disappear-cli
-
Install Dependencies
bash npm install
-
Build the Executable (Optional)
If you want to build standalone executables for Linux and macOS: ```bash npm run build ``` The executables will be located in the `build/` directory.
You can use the CLI directly with Node.js or use the built executables.
node src/main.js [command] [options]
./build/disappear-cli [command] [options]
put
: Encrypt and store a note or file.get
: Decrypt and retrieve a note or file using a mnemonic.
node src/main.js put --text "Your secret message here"
Example:
node src/main.js put --text "Hello, this is a secret note!"
Output:
Generated Mnemonic Phrase:
--------------------------
glove once frozen vendor among shrimp pilot ocean plug grid radar system
? Select expiration time in hours: (Use arrow keys)
❯ 1
2
4
8
12
24
48
After selecting the expiration time, your note will be encrypted and stored. Keep the mnemonic phrase safe; you'll need it to decrypt the note.
node src/main.js put --file /path/to/your/file.txt
Example:
node src/main.js put --file ./secret.pdf
Output:
Generated Mnemonic Phrase:
--------------------------
float smart salad maze bonus picnic relief bus dinner giant concert buzz
? Select expiration time in hours: (Use arrow keys)
❯ 1
2
4
8
12
24
48
Use the mnemonic phrase generated during encryption to decrypt and retrieve your note or file.
node src/main.js get --mnemonic "your mnemonic phrase here"
Example for Note:
node src/main.js get --mnemonic "glove once frozen vendor among shrimp pilot ocean plug grid radar system"
Output:
Decrypted Note:
----------------
Hello, this is a secret note!
Example for File:
node src/main.js get --mnemonic "float smart salad maze bonus picnic relief bus dinner giant concert buzz"
Output:
File saved as secret.pdf
Jest is used as the testing framework.
npm test
This command will run all test suites located alongside the source files, matching the pattern *.test.js
.
Tests are located next to their corresponding modules. For example:
src/
├── main.js
├── main.test.js
├── models
│ ├── encryption.js
│ └── encryption.test.js
└── utils
├── utils.js
└── utils.test.js
Contributions are welcome! Please follow these steps:
- Fork the Repository
- Create a Feature Branch
bash git checkout -b feature/YourFeature
- Commit Your Changes
bash git commit -m "Add your feature"
- Push to the Branch
bash git push origin feature/YourFeature
- Open a Pull Request
disappear-cli © 2024 by @eliyastein is licensed under CC BY-NC 4.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc/4.0/
Disclaimer: This CLI is a tool to interact with Disappear.net. Please ensure you comply with all relevant laws and terms of service when using this application.