Sign inSign up

20scoops/encrypt-file-pdf

By 20scoops

•Updated over 6 years ago

API encrypt file PDF with Python

Image
1

100K+

20scoops/encrypt-file-pdf repository overview

⁠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

ParameterDescription
fileFile for encrypt (.pdf only)
passwordyour 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 😎

Tag summary

Content type

Image

Digest

Size

32.8 MB

Last updated

over 6 years ago

docker pull 20scoops/encrypt-file-pdf