FileZilla Decryptor Lib (fz-decrypt)
A lightweight, robust Python library for decrypting FileZilla Server passwords protected by a master password (sitemanager.xml).
This library implements FileZilla's cryptography logic (PBKDF2, X25519 Key Exchange, AES-GCM) in pure Python.
📋 Prerequisites
- Python 3.7 or higher
cryptographylibrary
🚀 Installation
Via PyPI (Recommended)
You can easily install the library from the Python Package Index (PyPI):
pip install fz-decrypt
(Note: Replace fz-decrypt with your actual package name if different)
From Source (Development)
If you want to modify the code or install a local version:
-
Clone the repository or download the source.
-
Navigate to the directory containing
pyproject.toml. -
Run:
pip install .
For development (changes are reflected immediately):
pip install -e .
💻 Usage
The library provides a main class FileZillaDecryptor. It requires no instantiation; the decrypt method is a static/class method.
Simple Example
from fz_decrypt import FileZillaDecryptor, DecryptionError, InvalidDataError
# 1. Data from FileZilla sitemanager.xml
# These strings can be found in the <PubKey> and <Pass> tags
xml_pubkey = "..." # Base64 String from <PubKey>
xml_pass_blob = "..." # Base64 String from <Pass>
# 2. The user's master password
master_password = "MySecretMasterPassword"
try:
# Attempt decryption
cleartext_password = FileZillaDecryptor.decrypt(
master_password,
xml_pubkey,
xml_pass_blob
)
print(f"The decrypted password is: {cleartext_password}")
except DecryptionError:
print("Error: The master password is incorrect or the data is corrupt.")
except InvalidDataError as e:
print(f"Error: Invalid data format (Base64 error, etc.): {e}")
except Exception as e:
print(f"An unexpected error occurred: {e}")
📖 API Reference
FileZillaDecryptor.decrypt(master_password, xml_pubkey, xml_pass)
Decrypts a password using the FileZilla algorithm.
Parameters:
master_password(str): The master password entered when starting FileZilla.xml_pubkey(str): The content of the<PubKey>tag from the XML file (Base64 encoded).xml_pass(str): The content of the<Pass>tag from the XML file (Base64 encoded).
Returns:
str: The decrypted password in cleartext.
Exceptions:
DecryptionError: Raised if the master password is incorrect (AES-GCM Tag Mismatch).InvalidDataError: Raised if the Base64 strings are invalid or the blobs have an incorrect length.
🔒 Security Note
This tool is intended for recovering your own passwords. Please handle decrypted credentials responsibly. Never store passwords unencrypted in text files if it can be avoided.
📄 License
This project is licensed under the MIT License.
Metadata
Release files for fz-decrypt 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fz_decrypt-0.1.1.tar.gz | 4.6 kB | Without provenance | Details for fz_decrypt-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fz_decrypt-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for fz_decrypt-0.1.1-py3-none-any.whl |
Total release size: 9.5 kB
Release files / fz_decrypt-0.1.1.tar.gz
| Download URL | fz_decrypt-0.1.1.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da431bb2b9c5d71508b2e79b47ad98986dbdd3f8317c42c04538b653433cb686
|
|
BLAKE2b-256 checksum How to use checksums |
7054f6425929cad7808ba36b28dec1cf4094d83bc5a592cd98af7722fe3e08b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Release files / fz_decrypt-0.1.1-py3-none-any.whl
| Download URL | fz_decrypt-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fbe9e1da39fea1d4fdf6a2b409c5e81f77c13426340f646d80cbf64f72d01fd
|
|
BLAKE2b-256 checksum How to use checksums |
49e01ff1474acb8adceb08d8c7fd3f64cbf6568022264260090cbc7ffc0717d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Security for fz-decrypt 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.