built in encryption of archived files #152470
Replies: 2 comments
-
There are several systematic ways to encrypt archived files to ensure data security. Here are some common approaches:
7-Zip: Supports AES-256 encryption for .7z and .zip formats. WinRAR: Provides AES-256 encryption for .rar archives. ZIP (via command line): zip -e archive.zip file.txt encrypts using a password.
Use GPG (GNU Privacy Guard):
Encrypt multiple files first, then archive:
Use BitLocker (Windows), FileVault (Mac), or LUKS (Linux) for encrypting entire drives or partitions that store archived files.
eCryptfs (Linux): Encrypts files dynamically before they are stored. EncFS: Creates encrypted directories that can be archived securely.
Create a shell script to automate encryption before archiving: #!/bin/bash
Use tools like Cryptomator or rclone with encryption to store archives securely in the cloud.
VeraCrypt: Create encrypted containers for archiving sensitive files. ZFS with Native Encryption: If using ZFS, enable dataset encryption. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Thanks für this complete answer…
I have some concern then, if we use encryption, that some built in functions of git would be unusable.
What about how the running of those :
* Git diff
* Git merge
* Git log
* Git blame
* Git cherry-picking
Thank you for your answer.
Best Regards
Von: Aakash ***@***.***>
Gesendet: Mittwoch, 26. Februar 2025 13:53
An: community/community ***@***.***>
Cc: Nicolas Muller ***@***.***>; Author ***@***.***>
Betreff: Re: [community/community] built in encryption of archived files (Discussion #152470)
There are several systematic ways to encrypt archived files to ensure data security. Here are some common approaches:
1. Built-in Encryption in Archiving Tools
7-Zip: Supports AES-256 encryption for .7z and .zip formats.
WinRAR: Provides AES-256 encryption for .rar archives.
ZIP (via command line): zip -e archive.zip file.txt encrypts using a password.
1. Encrypting Files Before Archiving
Use GPG (GNU Privacy Guard):
gpg -c --cipher-algo AES256 file.txt
Encrypt multiple files first, then archive:
gpg -c file1.txt
gpg -c file2.txt
tar -cvf archive.tar file1.txt.gpg file2.txt.gpg
1. Full-Disk Encryption Solutions
Use BitLocker (Windows), FileVault (Mac), or LUKS (Linux) for encrypting entire drives or partitions that store archived files.
1. Transparent Encryption via File Systems
eCryptfs (Linux): Encrypts files dynamically before they are stored.
EncFS: Creates encrypted directories that can be archived securely.
1. Automated Encryption with Scripts
Create a shell script to automate encryption before archiving:
#!/bin/bash
tar -cvf secure_archive.tar myfolder/
openssl enc -aes-256-cbc -salt -in secure_archive.tar -out secure_archive.tar.enc -pass pass:MySecretPass
rm secure_archive.tar
1. Cloud-Based Encryption
Use tools like Cryptomator or rclone with encryption to store archives securely in the cloud.
1. Enterprise-Level Solutions
VeraCrypt: Create encrypted containers for archiving sensitive files.
ZFS with Native Encryption: If using ZFS, enable dataset encryption.
—
Reply to this email directly, view it on GitHub<#152470 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BP3SZYXKOOQTSBCBN4KEDJ32RW2JNAVCNFSM6AAAAABX4VZEY2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMZSGU2TGMQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Hi,
What are the possibilities to encrypt systematically the files that are archived ?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions