Results 1 to 4 of 4

Thread: Change ZPaq header to have my own compression

  1. #1
    Member
    Join Date
    Dec 2016
    Location
    Germany
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Change ZPaq header to have my own compression

    Hi
    I am new and beginer in this awesome world of encryption !
    I am looking for a way to change the header of zpaq without damaging the file it self for compress/decompressing ?

    Why ? in order to avoid any other person decrypting it and have my own version of this amazing archiver !
    I know that there a password protection ... but i don't want go this way.

    And the main reason too, that i don't want that other archivers like peazip, winrar etc ... be able to read archived files from zpaq (i want have my own extension).

    Any idea or approch please ?

  2. #2
    Expert
    Matt Mahoney's Avatar
    Join Date
    May 2008
    Location
    Melbourne, Florida, USA
    Posts
    3,255
    Thanks
    306
    Thanked 778 Times in 485 Posts
    The most secure way would be to hard code the encryption key. On zpaq.cpp line 1172:

    Code:
      password=0;  // no password
    change 0 to a 32 byte random string.

  3. #3
    Member
    Join Date
    Dec 2016
    Location
    Germany
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you sir for your answer and your awesome open source archiver !

    This way only the content of the file that will change no ?

    Is there a way to change the header for both Encryption/Decryption to have my personal archiver ?

    I managed to use password to encrypt it with AES but that will no prevent other from knowing that it archived with ZPAQ.

  4. #4
    Member
    Join Date
    Dec 2016
    Location
    Germany
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Any idea on how to process ?

Similar Threads

  1. Replies: 8
    Last Post: 23rd September 2016, 13:41
  2. zpaq grayscale compression (intro to zpaql)
    By mo_ in forum Data Compression
    Replies: 2
    Last Post: 13th May 2015, 22:45
  3. Replies: 75
    Last Post: 24th March 2014, 19:34
  4. jpeg to zpaq lossy compression
    By toi007 in forum Data Compression
    Replies: 11
    Last Post: 24th January 2013, 04:20
  5. Design change
    By Skymmer in forum The Off-Topic Lounge
    Replies: 2
    Last Post: 16th November 2009, 18:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •