This repository is a fork of reportlab 3.6.11 with faster (2X-3X) AES-256 PDF encryption
pip install reportlab2
Example:
from reportlab.pdfgen import canvas
c = canvas.Canvas("encrypted.pdf")
c.drawString(100, 750, "Hello")
c.showPage()
c.setEncrypt("password")
c.save()