Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.

Question regarding Zipping / DES encryption

  • 08-02-2010 01:17AM
    #1
    Registered Users, Registered Users 2 Posts: 1,263 ✭✭✭


    Hi, I was wondering if anyone knew about DES encryption?

    Specifically i have a text file that's 1.5mb, when i encrypt it with DES it's still 1.5mb, however if i Zip both the normal and the encrypted file, the zipped encrypted file ends up being about 10 times larger than the zipped normal file. Can anyone tell me why this is? When i view the encypted DES file it seems to be full of chinese characters, is it something to do with this?

    Thanks.
    Tagged:


Comments

  • Registered Users, Registered Users 2 Posts: 1,456 ✭✭✭FSL


    If you think about it it's obvious.

    Put simply, encryption is replacing every byte in the file with a different one according to a given algorithm and key; compression is replacing strings of the same character with a smaller string which indicates a replacement, the character and the number of times it occurs.

    Unless the encryption was very basic, which DES is not, the occurrence of strings of the same character will be less likely in the encrypted file than the unencrypted one.


  • Registered Users, Registered Users 2 Posts: 1,263 ✭✭✭johnnykilo


    Yeah i guess it is obvious if you think about :). Thanks for your help anyway


Advertisement