HACKERALERT/Picocrypt

A small suggestion

Closed this issue · 4 comments

I like the simplicity and small size of Picocrypt, and agree that it is feature complete. The part with dropping folders into the app itself works great, though it might not work on some desktop environments/window managers, and it would be a pity if somebody wasn't able to use Picocrypt simply becaouse his DE doesn't support drag and drop, or the feature has been broken by an update. So maybe it's not a bad idea to add an area where you can manually type in names of the folders/files?

Yeah, this has been asked before, and my general idea is that since 80% of Picocrypt's user base is Windows and macOS, which have stable drag and drop support, it's unlikely that most users will come upon this problem. Of the other 20% that use Linux, I think most will be using a file manager like Nautilus which has support for drag and drop as well. Less than 1% of users will be using a weird system with no drag and drop, and I don't see a point in supporting them since the weird systems will always be weird. Can you list some DEs that don't have drag and drop support?

I can't name any DEs/WMs, but you never know what will be broken by the next update. I do agree that it is very unlikely that this specific function of a DE will get broken, but things never break as we expect.

I still think it's unnecessary to support these very unlikely scenarios. There will always be systems that software can't support, and trying to support them will only increase codebase size and introduce more places for bugs. For almost all systems, drag and drop will be present and you can use Picocrypt. For the 0.01% that don't have drag and drop, they might as well use a command line encryption tool. So I won't be adding support for manually selecting files. I appreciate your suggestion and thoughfulness though! Thanks for letting me know about this situation, even if I have decided to not worry about it 👍 .

@Tsu-gu

In a spark of motivation, I've finally added a simple CLI to Picocrypt! So on systems where the UI won't run, you can still encrypt files through the CLI. Let me know what you think.

https://github.com/HACKERALERT/Picocrypt/tree/main/cli