5
Views
2
Comments
[Special Character Zip Generator] How can I add password encryption to this ZIP?
special-character-zip-generator
Web icon
Forge asset by Ricardo Pisco
Application Type
Traditional Web
Service Studio Version
11.55.69 (Build 64809)

Hi Team,

I've just used your extension and it's great to having the ZIP extracted with the Special Characters.

However I need to add a password to the ZIP, how can I do that?

Thank you!

2023-09-06 07-26-35
Sudip Pal

Hi @Aditya Kristuaji 

You need to create Backend .NET logic using Integration Studio to achieve this. Follow the below steps to create the backend logic.

1: Create Extension

  • Open Integration Studio
  • Create new extension (e.g., ZipPasswordExtension)

2: Add .NET Library

  • Add reference to Ionic.Zip.dll (DotNetZip)

3: Create Structure Create a structure FileItem:

  • FileName (Text)
  • FileContent (Binary Data)

4. Create Server Action CreatePasswordZip Inputs:

  • Files (List of FileItem)
  • Password (Text)

Output:

  • ZipBinary (Binary Data)

5. Implement C# Code

6. Publish Extension

7. Use in OutSystems

  • Call CreatePasswordZip
  • Pass file list + password
  • Return Binary Data

8. Download File

  • Content-Type: application/zip
  • FileName: SecureFiles.zip


I have checked other solution like adding CDN from ZIP.JS but it did not work. So, use the above .NET backend approach to add password.

Thanks,

Sudip

2023-09-06 07-26-35
Sudip Pal

Hey @Aditya Kristuaji 

You can also take the reference from below post

How to generate zip with password protection? | OutSystems

This is marked as resolved.

Thanks

Sudip 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.