Working with ZIP files

From: Rob Strover (dislexic_wobmat_at_NOSPAMyahoo.com.invalid)
Date: 07/30/04

  • Next message: Don Libes: "Re: [expect] how to match multiple times in one expect"
    Date: Fri, 30 Jul 2004 15:54:15 GMT
    
    

    Using Tcl I want to be able to read from and write to zip files which may
    contain encrypted data (zip 2.0 compatible only).

    I've looked at vsf::zip which looks very good, but seems to be read-only and
    doesn't pass much info on the files contained inside the zip file back so it
    can be used within Tcl code. Also, vsf::zip doesn't appear to cater for
    where files in the zip file are encrypted.

    Is there any work going on to make vsf::zip handle writing to zip files and
    handle encryption? Are there other packages which I should be looking at to
    get the features I want?

    I'm trying to get my head around how the vsf::zip code works and what would
    need to be changed to include encryption, etc..

    My lack of experience with C is not helping the process of doing this, but I
    can read it <slowly>.

    Any advice on ways to make the package include some or all of my
    requirements would be appreciated. I'm an experienced programmer, but am
    still fairly new to Tcl .

    My other thought was to somehow use the DLLs from the Info-Zip project to
    provide the required functionality. In the past I've used these DLLs from
    Visual Basic code, so it's not totally new territory to me. Am I correct my
    understanding that a module written in C is needed to handle communication
    between Tcl code and the DLLs? If so, is any documentation available to
    help me begin writing such a module?

    At present I'm working on Win 98 & XP, but also have access to Linux and
    would like my project to work there as well with as little change as
    possible.

    TIA

            Rob.


  • Next message: Don Libes: "Re: [expect] how to match multiple times in one expect"

    Relevant Pages

    • Re: Working with ZIP files
      ... "Rob Strover" wrote ... > and handle encryption? ... > My other thought was to somehow use the DLLs from the Info-Zip ... Tcl is a great glue language. ...
      (comp.lang.tcl)
    • Re: Workable encryption in Tcl??
      ... >>have not tried the package on the platform you intend to use it on. ... It was my understanding that Tcl wasn't ... I'm sure that TclDES will be slower than just about any C/Assembly ... dealing with block-mode encryption ...
      (comp.lang.tcl)
    • How do I filter Tcl code as it is being executed?
      ... I've inherited code that I'm tasked with supporting that uses an embedded Tcl interpreter. ... The Tcl code that the application consumes has procedures whose arguments are strings derived from data that might possibly have square brackets in them. ... This unfortunately causes the Tcl interpreter to execute the portion of the string inside the square brackets, which is not the intended behavior. ...
      (comp.lang.tcl)
    • Re: clTcl: yet another interface to Tcl/Tk
      ... stream that we use for our own communication. ... All evaluation of Tcl code sent from LTk now happens in a catch, which in the case of an error sends back the error properly wrapped. ...
      (comp.lang.lisp)
    • Re: Tcl crashed(core dump) under IBM AIX 5.3 when use "string compare" to compare 2 big buffer
      ... I found a problem of TCL under IBM AIX 5.3, if I use some tcl code ... Are you sure this is a problem of [string compare] and not with? ...
      (comp.lang.tcl)