need to programatically password protect for Excel file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kishore123
    New Member
    • May 2009
    • 2

    need to programatically password protect for Excel file

    I have created an Excel file using PYExcelerator API. I need to programatically password protect
    the file so that it can't be read unless the password is entered.

    working in Linux environment.


    Any code examples?
    Python
    Last edited by debasisdas; May 16 '09, 06:46 PM. Reason: moved
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    Can you password zip the file?

    Comment

    • kishore123
      New Member
      • May 2009
      • 2

      #3
      I have tried to Password the ZIP file

      zipFile=zipfile .ZipFile(zipFil eName,"w",zipfi le.ZIP_DEFLATED )
      .
      .
      .
      zipFile.setpass word("kishore12 3")

      but i am not sure why it is not working.
      when i tried to open the Zip it is simply opening with out prompting for Password

      Please suggest me

      Thanks
      Kishore

      Comment

      • Rossouw
        New Member
        • Jun 2009
        • 14

        #4
        Hi there,

        Whenever you password protect a zip file (doesn't matter the method), whenever you open up the zip file, it won't prompt you for a password (unlike with any other password protected file), but when you unzip or try to open a file in the zip file, it will prompt you for a password.

        Hope this is helpful,
        Kind Regards

        Comment

        Working...