omkarium / rufendec

Rufendec aka (Rust File Encryptor-Decryptor) is a CLI utility tool which helps you to do AES-256 Encryption and Decryption on specified directories/folders and retain the complete directory structure of the source directory files you provide into the target directory
Apache License 2.0
4 stars 0 forks source link

Why password-file? #1

Closed Abhishekkarunakaran closed 11 months ago

Abhishekkarunakaran commented 11 months ago

Why u used password-file, instead of entering password?

omkarium commented 11 months ago

@Abhishekkarunakaran Hi, so my reasoning for using the password-file is that, if you enter the password directly in the command line/terminal, anyone who gains access to your machine can see the logs especially when you are using GNULinux based os. The commands you type in the terminal are logged at several places like var.log, bash profile history etc. It's not safe. Which is why you put the password into a file and later put some file access restrictions only for your users or select users.

Note: I am releasing a new version taking few comments I received into consideration. Namely, introducing the AES - GCM mode with a --mode option parameter. And a PBDFK2 for key generation. Planning to release it very soon. Follow the repo so you get a notification. Let me know if you have any questions. Thanks.

Abhishekkarunakaran commented 11 months ago

Thanks man 🙌

omkarium commented 11 months ago

@Abhishekkarunakaran The GCM mode and PBKDF2 feature is now added to the code with version 0.3.0. You can test the new feature. There should be no performance loss when you choose GCM over ECB, and GCM is must secure. I am closing this issue now.