API for encrypt file PDF.
Make sure your uesed python3 and clone this repository
- Manual
1. cd src 2. pip install -r requirements.txt 3. python app.py
- Docker Compose
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 😎