GoCrypt
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.

Table of Contents
Features
- 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
Installation
Pre-built Binaries
For quick installation, you can download the pre-built binaries for your operating system:
Ubuntu
wget https://amulyaparitosh.github.io/GoCrypt/build/ubuntu/gocrypt
chmod +x gocrypt
sudo mv gocrypt /usr/local/bin/
Windows
- Download the executable from this link.
- Add the directory containing
gocrypt.exe
to your system's PATH environment variable.
Building from Source
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 gocrypt
in your current directory.
-
(Optional) Move the executable to a directory in your PATH for easy access:
sudo mv gocrypt /usr/local/bin/
Usage
GoCrypt is designed to be simple and straightforward to use. Here's the general syntax:
gocrypt <command> [arguments]
Commands
encrypt
: Encrypts a file given a password
decrypt
: Tries to decrypt a file using a password
help
: Displays help text
Basic Usage
To encrypt a file:
gocrypt encrypt /path/to/your/file
To decrypt a file:
gocrypt decrypt /path/to/your/encrypted/file
To display help:
gocrypt help
Examples
-
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
Security Considerations
- 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.
Contributing
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
License
This project is licensed under the MIT License - see the LICENSE file for details.