lduboeuf / utzipper

Archive reader/writer for Ubuntu Touch.
Other
1 stars 4 forks source link

feature request: please add passphrase protection #16

Open uwahl opened 10 months ago

uwahl commented 10 months ago

Could you please add a password protection - for the commandline is somewhat complicated to use... thank you for your work!!

lduboeuf commented 9 months ago

humm can't find with KArchive ( the core that handles archives creation/reading) how to do that https://api.kde.org/frameworks/karchive/html/index.html

uwahl commented 9 months ago

...sorry that I'm not familiar with programming and its libraries... The only complete command - for compressing AND encryption with a passphrase in one step - I found in the UT-bin folder is gpgtar e.g.with symmetric encryption keys. I hoped this could be implemented somehow into your app...

--

lduboeuf commented 9 months ago

...sorry that I'm not familiar with programming and its libraries... The only complete command - for compressing AND encryption with a passphrase in one step - I found in the UT-bin folder is gpgtar e.g.with symmetric encryption keys. I hoped this could be implemented somehow into your app...

If you give some full command lines, i could give a try to integrate them, but no guarantees

uwahl commented 9 months ago

It would be desirable to compress not only files but also directories - the utzipper-gui not allowing this at the moment. A complete commandline using the tar command to compress the whole Documents folder in /home/phablet is

tar -czvf Downloads.tar Downloads

resulting in a file Downloads.tar

Finally encrypting the file Downloads.tar with with a symmetric key using the gpg command:

gpg --symmetric --cipher-algo aes256 Documents.tar

resulting in a file Downloads.tar.gpg encrypted symmetric with one passphrase. There is also a command targpg combining the two commands. It would be great, having a gui doing the two steps above. The idea in my mind is to do an encrypted backup of my system on an usb stick, since in the moment it is not possible (?) to lock/ unlock the whole usb stick with a password...

lduboeuf commented 9 months ago

It would be desirable to compress not only files but also directories - the utzipper-gui not allowing this at the moment. A complete commandline using the tar command to compress the whole Documents folder in /home/phablet is

tar -czvf Downloads.tar Downloads

resulting in a file Downloads.tar

Finally encrypting the file Downloads.tar with with a symmetric key using the gpg command:

gpg --symmetric --cipher-algo aes256 Documents.tar

resulting in a file Downloads.tar.gpg encrypted symmetric with one passphrase. There is also a command targpg combining the two commands. It would be great, having a gui doing the two steps above. The idea in my mind is to do an encrypted backup of my system on an usb stick, since in the moment it is not possible (?) to lock/ unlock the whole usb stick with a password...

humm, i'm not sure if using a folder is doable with the way UT handle copy of elements between apps, except if this app becomes unconfined. I'm afraid trying encryption will takes too much work for me sorry

But i agree having a backup/restore on UT is still a missing piece

uwahl commented 9 months ago

Of course the last command password protecting the .tar file above should be gpg --symmetric --cipher-algo aes256 Downloads.tar Sorry... You are right, KArchive doesn't have the features of compressing folders or gpg encryption. What a pity... Thanks for thinking about and thanks for your work!