1001fx - NoCode functions icon

1001fx - NoCode functions

1001fx is a set of functions for any automation platform. Our functions are simple, very well tested, scalable and offer features that most automation platforms do not offer.

Actions74

files → Decrypt a ZIP

AI-generated

Overview

This node provides the ability to decrypt password-protected ZIP files within n8n workflows. It is useful in scenarios where you receive encrypted ZIP archives (for example, via email or file upload) and need to automatically extract their contents as part of an automation process. Practical applications include processing secure document deliveries, automated data ingestion from protected sources, or integrating with systems that require ZIP encryption for compliance.

Properties

Name Meaning
Password A string containing the secret password which will be used to unlock the ZIP archive.
Zip file The ZIP file to be decrypted. This should be provided as a binary input.
Binary Property Name of the binary property to which the extracted file's data will be written.

Output

  • Binary Data:
    The node outputs the decrypted file(s) as binary data under the property name specified by "Binary Property". The output includes:

    • The file content extracted from the ZIP.
    • Metadata such as filename and MIME type, as provided by the response headers.
  • JSON Field:
    The original JSON data from the input item is preserved in the output.

Dependencies

  • External Service: Requires access to the 1001fx API.
  • API Key: You must configure the 1001fxApi credential in n8n.
  • n8n Configuration: Ensure binary data is passed correctly between nodes if chaining file operations.

Troubleshooting

  • Common Issues:

    • Incorrect Password: If the password is wrong, the node will return an error indicating decryption failure.
    • Invalid ZIP File: Supplying a non-ZIP file or a corrupted ZIP may result in errors or empty output.
    • Missing Binary Input: If the "Zip file" property does not reference valid binary data, the node will fail.
  • Error Messages:

    • "error": "Decryption failed" or similar: Check that the password is correct and the file is a valid encrypted ZIP.
    • "error": "Cannot read property 'fileName' of undefined": Ensure the binary property name matches the input binary data.

Links and References

Discussion