Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@zhangchunlin
zhangchunlin / batch_qpdf.py
Last active September 16, 2022 15:15
batch_qpdf.py 批量移除 pdf 密码脚本,batch remove pdf password
#!/usr/bin/env python
#coding=utf-8
from __future__ import print_function
import os
import sys
def main():
dpath_in = os.path.expanduser(r"~/1del/")
dpath_out = os.path.expanduser(r"~/1delt/")
import hashlib as hasher
import datetime as date
# Define what a Snakecoin block is
class Block:
def __init__(self, index, timestamp, data, previous_hash):
self.index = index
self.timestamp = timestamp
self.data = data
self.previous_hash = previous_hash