← 返回 Skills 市场
rishabhdugar

Lock PDF

作者 Rishabh Dugar · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
69
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install lock-pdf
功能描述
Add password protection and encryption to a PDF. Supports AES-256, AES-128, RC4-128 encryption and granular permissions.
使用说明 (SKILL.md)

Lock PDF

What It Does

Encrypts a PDF with password protection. Supports AES-256 (default), AES-128, and RC4-128 encryption. Allows setting separate user and owner passwords with granular permission controls.

When to Use

  • Protect a PDF with a password before sharing
  • Set permissions (allow print but deny copy/modify)
  • Re-encrypt an already encrypted PDF with a new password

Required Inputs

  • password — user password (required to open the PDF)
  • Plus one of: url, base64_pdf, or multipart file upload

Authentication

Send your API key in the CLIENT-API-KEY header.

Get your free API key at https://pdfapihub.com. Full API documentation is available at https://pdfapihub.com/docs.

Use Cases

  • Confidential Document Protection — Encrypt contracts, NDAs, or financial reports before sharing
  • Read-Only Distribution — Allow viewing and printing but prevent copying or editing
  • Client Deliverables — Password-protect reports or proposals sent to clients
  • Compliance — Encrypt sensitive PDFs (HIPAA, GDPR) before storage or transmission
  • Exam Papers — Lock exam PDFs with a password released only at exam time
  • IP Protection — Restrict copying from proprietary documents while allowing viewing

Permissions

Permission Description
print Allow printing
print_highres Allow high-res printing
copy Allow copying text
modify Allow modifying content
annotate Allow adding annotations
fill_forms Allow filling form fields
extract Allow extracting content
assemble Allow assembling pages

Example Usage

curl -X POST https://pdfapihub.com/api/v1/lockPdf \
  -H "CLIENT-API-KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://pdfapihub.com/sample.pdf",
    "password": "viewerPass",
    "owner_password": "adminPass",
    "permissions": { "print": true, "copy": false, "modify": false },
    "output": "url"
  }'
安全使用建议
This skill forwards your PDF content and an API key to pdfapihub.com to perform encryption. Before using it, verify the service and its privacy/retention policies (especially if your PDFs contain PHI or other regulated data), confirm TLS and that the CDN/endpoint domains are legitimate, and avoid sending highly sensitive documents until you've validated compliance. Consider local encryption tools if you need to keep documents on-premises. Also ensure you handle and store the CLIENT-API-KEY securely (don't paste it into chatlogs) and test the service with non-sensitive sample documents first. Finally, note the minor metadata inconsistency: the skill expects an API key header at runtime even though the registry metadata shows no platform-stored credential.
功能分析
Type: OpenClaw Skill Name: lock-pdf Version: 1.0.0 The skill is a standard API wrapper for the pdfapihub.com service, designed to provide PDF encryption and password protection. All files (SKILL.md, skill.json, and example.json) consistently describe legitimate functionality, and there are no indicators of malicious intent, data exfiltration, or prompt injection.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The skill's name/description (locking/encrypting PDFs) matches the instructions and skill.json which call an external API (pdfapihub.com) and require an API key header. Requiring an API key and accepting url/base64/file inputs is appropriate for this purpose. Minor metadata mismatch: registry-level 'Required env vars' lists none while skill.json declares apiKey auth required; this is explainable (the API key is provided at request time via header rather than as a platform env var) but should be noted.
Instruction Scope
SKILL.md instructs the agent to POST PDF data (url/base64/multipart file) and an API key to pdfapihub.com. There is no instruction to read unrelated local files, secrets, or system config. Important operational note: using the skill will transmit entire PDF contents (possibly sensitive) to a third-party endpoint — the SKILL.md lists HIPAA/GDPR use cases but provides no proof of compliance or retention policy.
Install Mechanism
Instruction-only skill with no install spec and no code files — nothing is written to disk by the skill itself. This is the lowest-risk installation model.
Credentials
The skill requires an API key sent in the CLIENT-API-KEY header (documented in SKILL.md and skill.json). The platform metadata shows no declared primary credential or required env vars; this is not harmful but is a minor inconsistency in how credentials are represented (runtime header vs platform-stored env var). No other credentials or unrelated secrets are requested.
Persistence & Privilege
always is false and the skill does not request persistent or elevated platform privileges. Autonomous invocation is allowed (default) but not combined with other privilege-escalating flags.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install lock-pdf
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /lock-pdf 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Add password protection and encryption to PDFs. Supports AES-256 (default), AES-128, and RC4-128. Set separate user/owner passwords and granular permissions (print, copy, modify, annotate, fill forms).
元数据
Slug lock-pdf
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Lock PDF 是什么?

Add password protection and encryption to a PDF. Supports AES-256, AES-128, RC4-128 encryption and granular permissions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 69 次。

如何安装 Lock PDF?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install lock-pdf」即可一键安装,无需额外配置。

Lock PDF 是免费的吗?

是的,Lock PDF 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Lock PDF 支持哪些平台?

Lock PDF 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Lock PDF?

由 Rishabh Dugar(@rishabhdugar)开发并维护,当前版本 v1.0.0。

💬 留言讨论