Skip to content

20Scoops-CNX/encrypt-pdf-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Encrypt File PDF

Code style: black Docker Build Download License: MIT

API for encrypt file PDF.

Install

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

Code Style

This project we used Black

pip install black

API

Endpoint: /encrypt-pdf

Method: POST

Parameter Description
file File for encrypt (.pdf only)
password your key for encrypt file

Production

// add env for production
FLASK_ENV = production

Recommend

If your PDF file size > 1MB. you must compress file before call API encrypt for reduces size and response time 😎

Releases

No releases published

Sponsor this project

Packages

No packages published