Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luka2220/file-encrypt-decrypt
Command-line tool that encrypts and decrypts files using symmetric encryption algorithms
https://github.com/luka2220/file-encrypt-decrypt
aes cli encryption-decryption golang
Last synced: 19 days ago
JSON representation
Command-line tool that encrypts and decrypts files using symmetric encryption algorithms
- Host: GitHub
- URL: https://github.com/luka2220/file-encrypt-decrypt
- Owner: luka2220
- License: other
- Created: 2023-12-28T01:20:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-25T22:55:20.000Z (12 months ago)
- Last Synced: 2024-01-25T23:53:38.143Z (12 months ago)
- Topics: aes, cli, encryption-decryption, golang
- Language: Go
- Homepage: https://medium.com/@piplicaluka64/introducing-a-golang-cli-application-for-file-encryption-and-decryption-df3588b3d708
- Size: 6.81 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# File-Encrypt-Decrypt
A command-line tool that encrypts and decrypts files using symmetric encryption algorithms.***
## Project Setup
Note: Make sure you have GO installed on your system
* Clone the repo on your system
* Create a config file in your home directory to store an encryption key (must be a string of 32-byte length)
- `touch ~/.cipher_cli.yaml`
- Create the key in the file: `SECRET_KEY: "this_must_be_of_32_byte_length!!"`
* In the project directory run the following commands:
- `go mod install`
- `go install`
- `go build`
***## Running the CLI commands
Once you have set up the project on your system, you can access the `crypto` command.* ### Encryption command:
- `crypto encrypt ~/Desktop/names.txt --path=/Users/luka/Desktop/names-encrypted.txt`
- The argument `~/Desktop/names.txt` is the path of the file you want to be encrypted.
- The path flag `/Users/luka/Desktop/names-encrypted.txt` is where you want to store the encrypted file result.* ### Decryption command:
- `crypto decrypt ~/Desktop/names-encrypted.txt --path=/Users/luka/Desktop/names.txt`
- The argument `~/Desktop/names-encrypted.txt` is the path of the file you want to be decrypted.
- The path flag `/Users/luka/Desktop/names.txt` is where you want to store the decrypted file result.***
### Note
The path flag must be the full system path of where you want to store the result of the operation. The file is not required to exist, but the path must be valid.***
### Updates
If you have any feature requests, updates, or problems please let me know. Any collaborators and contributors are all welcome!!!