GoCrypt is a powerful and user-friendly command-line tool built in Go that allows you to easily encrypt and decrypt files using a password. It utilizes the SHA-1 algorithm to ensure the security of your sensitive data, making it an ideal solution for your day-to-day encryption needs.
- Simple and intuitive command-line interface
- File encryption using SHA-1 algorithm
- Password-based encryption and decryption
- Cross-platform compatibility (Windows and Ubuntu)
- Lightweight and fast execution
For quick installation, you can download the pre-built binaries for your operating system:
wget https://amulyaparitosh.github.io/GoCrypt/build/ubuntu/gocrypt
chmod +x gocrypt
sudo mv gocrypt /usr/local/bin/- Download the executable from this link.
- Add the directory containing
gocrypt.exeto your system's PATH environment variable.
If you prefer to build the tool from source or want to contribute to its development, follow these steps:
-
Ensure you have Go installed on your system. If not, download and install it from the official Go website.
-
Clone the repository:
git clone https://github.com/AmulyaParitosh/GoCrypt.git
-
Navigate to the project directory:
cd GoCrypt -
Build the project:
go build -o gocrypt .This will create an executable named
gocryptin your current directory. -
(Optional) Move the executable to a directory in your PATH for easy access:
sudo mv gocrypt /usr/local/bin/
GoCrypt is designed to be simple and straightforward to use. Here's the general syntax:
gocrypt <command> [arguments]
encrypt: Encrypts a file given a passworddecrypt: Tries to decrypt a file using a passwordhelp: Displays help text
To encrypt a file:
gocrypt encrypt /path/to/your/fileTo decrypt a file:
gocrypt decrypt /path/to/your/encrypted/fileTo display help:
gocrypt help-
Encrypting a file:
gocrypt encrypt /home/user/documents/secret.txt
You will be prompted to enter a password for encryption.
-
Decrypting a file:
gocrypt decrypt /home/user/documents/secret.txt.encrypted
You will be prompted to enter the password used for encryption.
-
Displaying help information:
gocrypt help
- GoCrypt uses the SHA-1 algorithm for encryption. While SHA-1 is considered cryptographically broken for digital signatures, it can still provide a reasonable level of security for file encryption in many scenarios.
- Always use strong, unique passwords for each file you encrypt.
- Remember that the security of your encrypted files depends on the strength of your password and how well you protect it.
- For highly sensitive data, consider using more advanced encryption tools or consult with a security expert.
Contributions to GoCrypt are welcome! If you have suggestions for improvements or bug fixes, please feel free to:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.