Cow-encryptor
Encrypt your files in cow language ๐ฎ
Installation ๐ฆ
Arch Linux ๐ง
cow-encryptor is in the AUR
yay -S cow-encryptor
Other ๐ช๐ง
With make - Linux ๐ง
Build with make
# ๐ cow-encryptor/
make
Copy the binary to bin folder
# ๐ cow-encryptor/
make install
Build from source - Linux ๐ง & Windows ๐ช
Clone this repo
git clone https://github.com/SkwalExe/cow-encryptor.git
build with cargo
# ๐ cow-encryptor/
cargo build --release
[ LINUX ONLY ] : Move the binary
# ๐ cow-encryptor/
sudo cp target/release/cow-encryptor /usr/bin/cow-encryptor
On windows the executable will be target\release\cow-encryptor.exe
you can move it wherever you want.
Usage ๐
โoverwrite
Folder content :
If you try
cow-encryptor secret.txt
You will get the following error :
Because a destination file already exists.
Use the โoverwrite flag to overwrite the destination file.
โencrypt
Enter encryption mode, the specified file will be encrypted.
Original file :
cow-encryptor --encrypt secret.txt
Result :
Encryption mode will be used by default if the file doensโt have the .cow
extension.
โdecrypt
Enter decription mode, the specified file will be decrypted.
Encrypted file :
cow-encryptor [--decrypt] secret.txt.cow
The decryption mode will automatically be used if the file ends with .cow
โprint
With this option, the encrypted/decrypted file will be printed to the standard output instead if saving it to a file.
Docker ๐ณ
Run the latest version
docker run --rm -it ghcr.io/skwalexe/cow-encryptor:main
Test your changes ๐ง
Build ๐ ๏ธ
# ๐ cow-encryptor/
docker build -t cow-encryptor .
Run ๐
docker run --rm -it cow-encryptor [OPTIONS]
Uninstall ๐
With make
Run make uninstall
# ๐ cow-encryptor/
make uninstall
removing the binary
sudo rm /usr/bin/cow-encryptor
Setting up development environment
For this project, I recommend Visual Studio Code.
Youโll need to install the rust extension
ext install rust-lang.rust
contributing
Start by forking this repository.
Then clone your fork to your local machine.
git clone https://github.com/your-username/cow-encryptor.git
Create a new branch
git checkout -b super-cool-feature
Then edit the source code in the ๐/src/
folder.
Once youโre done, commit your changes and push them to the remote repository.
git add --all
git commit -m "Add super-cool-feature"
git push origin super-cool-feature
Then, open a pull request on GitHub from your fork.
final
If you have any problem, donโt hesitate to open an issue