cryptr icon indicating copy to clipboard operation
cryptr copied to clipboard

Encrypt folder

Open Gu1llaum-3 opened this issue 1 year ago • 2 comments

I love your tool, but it's missing the ability to encrypt a folder, which I added.

Just use the same command, the folder will be detected then compressed into tar.gz and then encrypted. The intermediate tar.gz folder will be deleted. Then simply use the command to decrypt, you will then be asked if you want to decompress the archive and if you want to delete this archive after decompression.

Gu1llaum-3 avatar Aug 01 '24 13:08 Gu1llaum-3

@Gu1llaum-3 humm, I appreciate this PR, but I wonder if adding the additional code and complexity is really needed? Does the following work?

tar -czf - /path/to/directory | cryptr encrypt

nodesocket avatar Aug 01 '24 13:08 nodesocket

@nodesocket I appreciate your suggestion, but the command you mentioned does not work. Even if it did, it wouldn't be as straightforward as the code I added. While it does introduce some additional complexity, it remains quite reasonable and provides a very practical option that I find highly useful.

Gu1llaum-3 avatar Aug 01 '24 14:08 Gu1llaum-3

@Gu1llaum-3 heads up, just pushed version 2.4.0 with support for --stdout when decrypting to print to stdout instead of writing the plaintext file to disk.

nodesocket avatar Jul 03 '25 06:07 nodesocket