Results 1 to 2 of 2

Thread: zpaq feature request: abort if no -key for encrypted archive

  1. #1
    Member
    Join Date
    Mar 2015
    Location
    Albuquerque
    Posts
    3
    Thanks
    0
    Thanked 3 Times in 2 Posts

    zpaq feature request: abort if no -key for encrypted archive

    I recently did "zpaq list archive.zpaq" to an encrypted archive,
    forgetting to add "-key mykey", and the process took forever to report
    that archive.zpaq wasn't a valid (unencrypyed) archive. Apparently,
    zpaq scanned the entire file before realizing it was invalid.

    Ironically, "-key wrongkey" aborts almost immediately with "password
    incorrect".

    Could zpaq abort rapidly if there's no key provided and the file
    doesn't look like an unencrypted archive?

    Quasi-related: is there an open source way to update the "magic" file that the
    Unix "file" command uses? The entries below could rapidly identify
    (unencrypted) zpaq archives:

    0 string 7kSt ZPAQ file
    0 string zPQ ZPAQ file (fragile mode)

  2. The Following User Says Thank You to barrycarter For This Useful Post:

    surfersat (13th March 2015)

  3. #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
    I suppose it could, but inserting random data at the beginning of an archive (like a self extracting archive) is still a valid archive.

    Not sure how to update the "file" command. I'm sure this happens a lot.

Similar Threads

  1. PLEASE HELP ME ABOUT THIS COMPRESSED ARCHIVE !!!
    By CoreGames in forum Data Compression
    Replies: 8
    Last Post: 22nd September 2014, 18:20
  2. Opera Web Browser's Turbo Feature
    By osmanturan in forum Data Compression
    Replies: 0
    Last Post: 19th January 2011, 16:46
  3. Bit Archive Format
    By osmanturan in forum Forum Archive
    Replies: 39
    Last Post: 29th December 2007, 00:57
  4. New archive format
    By Matt Mahoney in forum Forum Archive
    Replies: 9
    Last Post: 25th December 2007, 12:22
  5. Replies: 13
    Last Post: 6th August 2006, 18:10

Posting Permissions

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