F5F Stay Refreshed Software Operating Systems Yes, you can encrypt files using GPG and then pad them with additional data or formatting.

Yes, you can encrypt files using GPG and then pad them with additional data or formatting.

Yes, you can encrypt files using GPG and then pad them with additional data or formatting.

X
XoXSneakyXoX
Member
55
01-11-2023, 06:09 AM
#1
The process doesn't automatically add random padding to encrypted files like GPG does. You'll need to implement your own method to insert random characters at the beginning and end of the .zip file. Adding padding could be effective but may not be necessary depending on your security needs.
X
XoXSneakyXoX
01-11-2023, 06:09 AM #1

The process doesn't automatically add random padding to encrypted files like GPG does. You'll need to implement your own method to insert random characters at the beginning and end of the .zip file. Adding padding could be effective but may not be necessary depending on your security needs.

O
opticgunship
Posting Freak
815
01-16-2023, 06:15 PM
#2
You check the file's metadata or the archive's properties to see what padding characters are used.
O
opticgunship
01-16-2023, 06:15 PM #2

You check the file's metadata or the archive's properties to see what padding characters are used.

J
jklim101
Member
209
01-20-2023, 01:43 AM
#3
You seem to be misunderstanding the question: I have an unencrypted .zip file I want to encrypt it with something like GPG Since .zip files have a standard header, it is possible to analyze the first 'n' bytes of the encrypted file to try and crack the encryption If there is a random few bytes of information at the start of the file, it makes that analysis much more difficult. This isn't a new concept, it's a pretty well defined problem (and some cryptography methods actually require padding to make a message long enough to be encrypted). I'm just asking if there's a way to pad files with GPG (or a homebrew solution to accomplish the same thing).
J
jklim101
01-20-2023, 01:43 AM #3

You seem to be misunderstanding the question: I have an unencrypted .zip file I want to encrypt it with something like GPG Since .zip files have a standard header, it is possible to analyze the first 'n' bytes of the encrypted file to try and crack the encryption If there is a random few bytes of information at the start of the file, it makes that analysis much more difficult. This isn't a new concept, it's a pretty well defined problem (and some cryptography methods actually require padding to make a message long enough to be encrypted). I'm just asking if there's a way to pad files with GPG (or a homebrew solution to accomplish the same thing).

T
tsnyder01
Member
171
01-20-2023, 02:59 AM
#4
Here’s a simplified version of your idea:

This script demonstrates two modes—regularization and obfuscation.
Regularization removes random data, while obfuscation adds it.
It supports two usage options and handles encryption or decryption using GPG.
T
tsnyder01
01-20-2023, 02:59 AM #4

Here’s a simplified version of your idea:

This script demonstrates two modes—regularization and obfuscation.
Regularization removes random data, while obfuscation adds it.
It supports two usage options and handles encryption or decryption using GPG.