简体   繁体   中英

How to add a digital signature to any given file using python

How to add a digital signature to any given file using python and verify the same . That is input a file and output a digitally signed file and giving a digitally signed file with a key verify the digital signature. How to do this using python?

There are many packages presents.

pdfrw: Read and write PDF files; watermarking, copying images from one PDF to another. Includes sample code.

slate : Simplifies extracting text from PDF files. Wrapper around PDFMiner.

PDFQuery : PDF scraping with Jquery or XPath syntax. Requires PDFMiner, pyquery and lxml libraries.

PDFMiner : Extracting text, images, object coordinates, metadata from PDF files. Pure Python.

PyPDF2 : Split, merge, crop, etc. of PDF files.

GroupDocs.Signature Cloud SDK for Python can digital sign all common file formats and verify the same from cloud storage. It is paid product but also provides 150 free API calls against a free trial. Currently, it supports the following providers along with default internal GroupDocs Cloud storage:

  • Amazon S3 DropBox
  • Google Drive Storage
  • Google Cloud Storage Windows
  • Azure Storage
  • FTP Storage

PS: I am a developer evangelist at GroupDocs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM