Last Updated:

Xojo FPDF - Encryption Module

Jean-Yves POCHEZ Xojo FPDF

πŸ”Protect Your Sensitive Documents with Military-Grade Security

The Problem

Standard PDFs are completely open - anyone can read, copy, print, or modify your confidential documents. Whether it’s financial reports, medical records, legal contracts, or proprietary research, unprotected PDFs put your sensitive information at risk.

The Solution

The VNS PDF Encryption Module adds professional-grade security to your PDFs with password protection and granular permissions control. Choose from industry-standard encryption algorithms ranging from legacy RC4-128 to cutting-edge AES-256.


✨ Key Features

Three Encryption Levels

  • AES-256 (PDF Revision 5-6) - Maximum security for highly sensitive data
  • AES-128 (PDF Revision 4) - RECOMMENDED - Perfect balance of security and compatibility
  • RC4-128 (PDF Revision 3) - Legacy support for older systems

Dual Password Protection

  • User Password - Required to open the document
  • Owner Password - Required to change permissions

Granular Permissions

Control exactly what users can do:

  • βœ… Print (high-quality or degraded)
  • βœ… Modify content
  • βœ… Copy text and images
  • βœ… Add annotations and comments
  • βœ… Fill in form fields
  • βœ… Extract pages
  • βœ… Assemble document

πŸ’Ό Perfect For

Financial Services Secure bank statements, investment reports, tax documents, and confidential financial analysis with AES-256 encryption.

Healthcare Protect patient records, medical reports, and HIPAA-compliant documents with granular access controls.

Legal Industry Safeguard contracts, NDAs, court documents, and privileged communications with dual-password protection.

Corporate Security Lock down proprietary research, strategic plans, HR documents, and board materials with permission controls.

Education Distribute exams, answer keys, and confidential student records with print and copy restrictions.


πŸ”§ Pure Xojo Implementation

No External Dependencies

  • 100% native Xojo code
  • Works on Desktop, Web, iOS, and Console
  • No DLLs, plugins, or external libraries
  • Full source code included

Battle-Tested Algorithms

  • RFC-compliant AES implementation
  • ISO 32000-2 (PDF 2.0) compatible
  • SHA-256/384/512 hash functions
  • Secure random IV generation

πŸ“ Simple to Use

// Encrypt with AES-128 (recommended)
// SetProtection(userPass, ownerPass, allowPrint, allowModify, allowCopy, _
//              allowAnnotate, allowFillForms, allowExtract, allowAssemble, allowPrintHQ, encryption)
pdf.SetProtection("userpass", "ownerpass", True, False, False, _
                  False, False, False, False, False, _
                  VNSPDFModule.gkEncryptionAES_128)

// Maximum security with AES-256
pdf.SetProtection("userpass", "ownerpass", True, False, False, _
                  False, False, False, False, False, _
                  VNSPDFModule.gkEncryptionAES_256)

One line of code. That’s all it takes to add professional encryption.


βœ… What You Get

  • βœ… Full source code - Unencrypted, readable, modifiable
  • βœ… Lifetime license - No subscriptions or renewals
  • βœ… All platforms - Desktop, Web, iOS, Console
  • βœ… 12 months free updates - Compatible with future versions
  • βœ… Documentation - Detailed usage guides and examples

πŸ†š Free vs Premium

FeatureFree VersionPremium Module
RC4-40βœ… Basic encryption (weak)βœ… Included
RC4-128❌ Not availableβœ… Legacy support
AES-128❌ Not availableβœ… Recommended
AES-256❌ Not availableβœ… Maximum security
Password protectionβœ… User password onlyβœ… User + Owner passwords
Granular permissions❌ All or nothingβœ… 8 permission controls
Source codeβœ… Includedβœ… Included

Why upgrade? RC4-40 (40-bit) is easily cracked in minutes. For any sensitive document, you need AES-128 or AES-256 encryption with proper permission controls.


πŸ’° Pricing

One-Time Purchase: €50

Special Offer: Buy 2, Get 1 Free! Mix and match any premium modules. Perfect for combining Encryption with Tables, Zlib, PDF/A, Forms, or E-Invoice.

What’s Included:

  • Complete source code for all encryption algorithms
  • AES-256, AES-128, RC4-128 implementations
  • SHA-2 hash functions (SHA-256/384/512)
  • 12 months free updates
  • Installation guide and documentation

πŸ’³ Payment & Delivery

Payment: PayPal only (secure payment processing)

Delivery: Manual process - please allow 2-3 business days after payment for delivery via email.

You will receive:

  • VNSPDFEncryptionPremium.xojo_code
  • VNSAESCore.xojo_code (AES implementation)
  • Complete documentation and examples
  • Installation guide
  • License information

πŸ›’ Purchase

PayPal payment button below. After payment, you’ll receive an email confirmation, and your module will be delivered within 2-3 business days.

Purchase Encryption Module - €50


πŸ›‘οΈ Security Standards

The Encryption Module implements encryption according to:

  • ISO 32000-1:2008 (PDF 1.7)
  • ISO 32000-2:2020 (PDF 2.0)
  • RFC 2898 (PKCS #5: Password-Based Cryptography)
  • FIPS 197 (AES Standard)

Compatible with Adobe Acrobat, Preview, Chrome, Firefox, and all major PDF readers.


❓ Frequently Asked Questions

Q: Does this work on all Xojo platforms? A: Yes! Desktop (Windows, macOS, Linux), Web, iOS, and Console applications.

Q: Can users with older PDF readers open encrypted files? A: Yes. AES-128 (recommended) works with Adobe Reader 7.0+ (2005). For maximum compatibility with ancient readers, use RC4-128.

Q: What if I need stronger encryption in the future? A: The module already includes AES-256, the strongest encryption standard. Future updates are free.

Q: Is the source code obfuscated? A: No! Full, readable, commented source code is provided. Modify it as needed.

Q: What about export restrictions? A: Encryption is legal worldwide for commercial software. Check your local laws if distributing to restricted countries.


Secure Your PDFs Today - €50

πŸ’‘ Bundle & Save: Buy 2 modules, get 1 free! View All Modules β†’

Β