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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Question regarding Zipping / DES encryption

  • 08-02-2010 12:17am
    #1
    Registered Users, Registered Users 2 Posts: 1,209 ✭✭✭


    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,209 ✭✭✭johnnykilo


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


Advertisement