Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Locking files/folders [FF] in GNU/Linux via text-based user interface (TUI)

License

camarman/FFLocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FFLocker

Locking files/folders in GNU/Linux via text-based user interface (TUI).

The most important part of the algorithm is that during the locking process, your password is never saved on the computer and only displayed in the terminal for you to save it.

It's tested for GNU/Linux, however it should also work in macOS. If you ever encounter with a problem, feel free to create an issue.

Description

FFLocker uses AES encryption. You can either create a password with 16, 24, and 32 characters (which corresponds to 128, 192, 256 bits, respectively) or generate a random password with the help of the secrets.choice.

After you lock the file/folder, the program will change the binary data of the file/folder, and it will overwrite the files. To read/open the encrypted files, you have to enter the password.

I have programmed the code so that when you decrypt the file/folder, a new file/folder will be created as a precaution against entering the wrong password. After the decryption is complete, you can permanently delete the encrypted file/folder via a single command.

Additionally, I have also programmed the code in such a way that every file and folder receives .enc and ENC extensions respectively. If your pathname does not contain these extensions, the decryption process does not start.

WARNING

Even your password is wrong, the program will decrypt the file/folder and produce a result, if it has a sufficient number of characters (bytes). In this case, be careful about deleting the encrypted file/folder since the decrypted one will be unreadable due to the wrong password. As for advice, always open and read the decrypted file/folder before you delete the encrypted one.

Installation

Clone the repository via

git clone https://github.com/seVenVo1d/FFLocker.git

to your desired directory. FFLocker requires pycryptodome which can be installed by running

python3 -m pip install pycryptodome

Other packages are already available in python3. However, if they are somehow missing, you can always install them via

python3 -m pip install <package_name>

Overview

Encryption process of a file Decryption process of a file
enc_file dec_file
Encryption process of a folder Decryption process of a folder
enc_folder dec_folder