20scoops/encrypt-file-pdf
API encrypt file PDF with Python
100K+
API for encrypt file PDF.
Make sure your uesed python3 and clone this repository
1. cd src2. pip install -r requirements.txt3. python app.py
docker-compose up -d --build
This project we used Black
pip install black
Endpoint: /encrypt-pdf
Method: POST
Parameter | Description |
---|---|
file | File for encrypt (.pdf only) |
password | your key for encrypt file |
// add env for production
FLASK_ENV = production
If your PDF file size > 1MB. you must compress file before call API encrypt for reduces size and response time 😎
docker pull 20scoops/encrypt-file-pdf