Menu

#524 zip with AES encryption on command line

open
nobody
None
9
2024-03-31
2023-12-28
Brad Nguyen
No

Is there a way to compress using AES on the command line, currently the default is ZipCrypto. I can do it using the UI but this is not feasible for us.

Discussion

  • Igor Pavlov

    Igor Pavlov - 2023-12-28

    use the switch:

    -mem=aes
    

    -mem means: (m : method) + (em : encryption method)

     

    Last edit: Igor Pavlov 2024-03-31
  • Brad Nguyen

    Brad Nguyen - 2023-12-28

    Thank you so much :). I don't see it listed in the command line, is there any documentation for this?

     

    Last edit: Brad Nguyen 2023-12-28
  • AlexS

    AlexS - 2024-03-31

    The command line does not accept the key. Can you tell me how to use it?

     

    Last edit: AlexS 2024-03-31
    • Igor Pavlov

      Igor Pavlov - 2024-03-31
      7z a -pPSW 1.7z c:\file 
      7z a -p 2.7z c:\file 
      

      -mem=aes is for zip archives only.
      and 7-Zip for 7z archives always uses AES, so -mem=aes is not supported.

       
      👍
      1

      Last edit: Igor Pavlov 2024-03-31

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.