
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Encrypt and decrypt text securely with your own passphrase.
An easy-to-use command-line tool for encoding and decoding sensitive data. Securely encrypt your messages into unreadable formats, then decrypt them using the same key.
Official test UI:
diec-test-gui
To install diec, you can use pip
:
pip install diec
This will install the latest stable version of diec. Ensure that you have Python 3.9 or higher installed.
Dependencies:
If you're using a virtual environment (recommended), make sure to activate it before running the pip install
command.
The diec tool is designed to encrypt and decrypt text using a passphrase. When you encrypt text, diec converts it into an unreadable format. Later, you can use the same passphrase to decrypt it back into its original form. This makes diec a perfect solution for encrypting sensitive information that needs to be shared or stored securely.
Encrypt your plain text with a passphrase to ensure it is safely stored or shared.
python -m diec encode "This is the text to encode" --passphrase "your_passphrase"
Command Options:
text
: The plaintext message you want to encrypt.--passphrase
: The secret passphrase used for encryption (you will be prompted for this if not provided directly).--output
: (Optional) Specify the output file to save the encrypted data. By default, the encrypted data will be stored in a file named encrypted_data.diec
.Once encrypted, the file will contain the salted, IV-based, and encrypted data in a secure format.
To decrypt an encrypted file, simply use the same passphrase that was used during the encryption process.
python -m diec decode --passphrase "your_passphrase"
Command Options:
--passphrase
: The passphrase used to decrypt the data.--input
: (Optional) Specify the input file that contains the encrypted data. By default, it looks for encrypted_data.diec
.Encryption:
Decryption:
The diec command-line interface (CLI) provides two main commands for encoding and decoding:
encode
: Encrypt TextThis command is used to encrypt the provided text.
python -m diec encode <text> --passphrase <passphrase> --output <output_file>
Parameters:
<text>
: The plaintext message you want to encrypt.<passphrase>
: The passphrase used to secure the data.--output
: (Optional) Specify the output file to save the encrypted data. Defaults to encrypted_data.diec
.Example:
python -m diec encode "Sensitive information here" --passphrase "your_secret_passphrase" --output "encrypted_message.diec"
decode
: Decrypt TextUse this command to decrypt the previously encrypted file.
python -m diec decode --passphrase <passphrase> --input <input_file>
Parameters:
<passphrase>
: The passphrase used to decrypt the data.--input
: (Optional) Specify the file that contains the encrypted data. Defaults to encrypted_data.diec
.Example:
python -m diec decode --passphrase "your_secret_passphrase" --input "encrypted_message.diec"
Imagine you need to send sensitive information, like a password or secret key, to someone securely. With diec, you can encrypt the information into a file, and share the file along with the passphrase securely (e.g., via another communication channel). The recipient can use diec to decrypt the information using the same passphrase.
If you need to store sensitive data locally (such as API keys, passwords, etc.), diec allows you to encrypt the data before saving it to a file. This ensures that even if the file is compromised, the data remains protected as long as the passphrase is kept secure.
This project is licensed under the MIT License. See the LICENSE file for more details.
Eldritchy
GitHub: @Velis
Email: velis.help@web.de
FAQs
A tool that encodes text and provides a key for decoding!
We found that diec demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.