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 → Encrypt a ZIP

AI-generated

Overview

The "Encrypt a ZIP" operation in the files resource of this n8n node allows you to encrypt an existing ZIP file with a password. This is useful for automating workflows where sensitive files need to be securely locked before sharing, archiving, or transferring. For example, you might use this node to automatically encrypt reports or backups before emailing them or uploading them to cloud storage.

Properties

Name Meaning
Password A string containing the secret password which will be used to lock (encrypt) the ZIP file.
Zip file The ZIP file to be encrypted.
Binary Property Name of the binary property to which the encrypted ZIP data will be written.

Output

  • The output contains a binary field whose name matches the value provided in Binary Property.
  • This binary field holds the encrypted ZIP file.
  • Any existing binary data on the input item is preserved and passed through alongside the new encrypted file.
  • The json part of the output remains unchanged from the input unless an error occurs.

Example output structure:

{
  "json": { /* original input json */ },
  "binary": {
    "data": { /* encrypted zip file as binary data */ }
  }
}

(If "Binary Property" is set to "data")

Dependencies

  • External Service: Requires access to the 1001fx API.
  • Credentials: You must configure the 1001fxApi credential in n8n.
  • Environment: No special environment variables are required beyond standard n8n setup.

Troubleshooting

  • Common Issues:

    • Missing Credentials: If the 1001fxApi credential is not configured, the node will fail to execute.
    • Invalid File Input: If the specified ZIP file is missing or not valid, encryption will fail.
    • Incorrect Binary Property Name: If the binary property name does not match any input or is left blank, the output may not contain the expected encrypted file.
  • Error Messages:

    • "error": "Request failed with status code 401" – Indicates authentication issues; check your API credentials.
    • "error": "File not found" – The specified ZIP file could not be located in the input.
    • "error": "Invalid password" – The password parameter was empty or invalid.

    To resolve these, ensure all required properties are filled correctly and that your credentials are valid.

Links and References

Discussion