Chuyển đến nội dung

Bảo vệ PDF

Mã hóa một PDF bằng mật khẩu và đặt những gì người đọc được phép làm.

Xử lý trên thiết bị của bạn

Công cụ này chạy hoàn toàn trong trình duyệt của bạn. Tệp của bạn không bao giờ được tải lên, và bạn có thể tự kiểm chứng điều đó trong tab mạng của trình duyệt. Tự kiểm chứng: mở tab mạng của trình duyệt và theo dõi. Bạn sẽ thấy một yêu cầu nhỏ hỏi xem bạn còn tác vụ nào không - một tên công cụ và một mã băm, không bao giờ là tệp.

Công cụ này làm gì

Two different things are called protection, and a PDF offers both. A user password encrypts the file: without it the document cannot be opened by anyone, and that is real cryptography rather than a preference. The permission flags are not encryption at all - they record a request, such as do not print, that a well-behaved reader honours and any other reader may ignore.

Use the password before a document travels somewhere you do not control: a payslip going to a personal address, a contract sent to a counterparty, tax papers going to an adviser. Reach for the permission flags in the softer case, where a request is all you need and all you will get.

Cách hoạt động

  1. Drop the PDF onto this page. A document that is already encrypted is refused rather than encrypted twice, because a doubly encrypted file is one no reader can open.
  2. Type the password people will need in order to open it. This is the field that actually encrypts; everything below it is weaker.
  3. Set a separate permissions password if opening the file and controlling it should be different privileges. Leave it empty and the open password is used for both.
  4. Choose the encryption strength, then set the toggles for printing, copying, editing, annotating and form filling.
  5. Press Protect PDF. The password is the only way back in, so keep it somewhere you will still have it next year.

The encryption is done by qpdf compiled to WebAssembly, running in a worker inside your browser. The password you type is used there to derive the file's key and is never transmitted - open the network tab, protect a document, and the one request you will find asks whether you have tasks left, carrying a tool name and a hash.

The two passwords do different jobs. The open password decrypts the file; the permissions password is what lets somebody lift the restrictions afterwards. qpdf needs a permissions password to set any restriction at all, so when only one box is filled in that password is used for both - one password that opens and fully controls the file.

Take the permission flags for what they are. Acrobat and most commercial readers honour them; plenty of free readers do not, and stripping them takes one pass through Unlock PDF and no password whatsoever. If a document genuinely must not be printed, the answer is not to send it.

AES 256-bit is the default because it is the strongest thing the format offers and every reader since roughly Acrobat 9 understands it. The 128-bit settings are compatibility choices for older software and are meaningfully weaker, RC4 especially. Whichever you pick, the length of your password matters more than the cipher, because the password is what gets guessed.

Công cụ này không làm được gì

  • The permission flags are advisory. The encryption is real, but do not print and do not copy are requests, and any reader is free to ignore them.
  • A lost open password cannot be recovered, here or anywhere else. Nothing in the file remembers it.
  • An already-encrypted PDF is refused rather than encrypted a second time. Remove the existing protection with Unlock PDF first.
  • The 128-bit options exist for readers too old to understand AES and are not a serious defence. AES 256-bit is the only setting worth relying on.

Câu hỏi thường gặp

Khác biệt giữa mật khẩu mở và mật khẩu quyền hạn là gì?
Mật khẩu mở mã hóa tài liệu: không có nó thì không đọc được gì. Mật khẩu quyền hạn không mã hóa gì cả - nó là thứ cho phép ai đó gỡ bỏ các hạn chế về sau. Chỉ điền mật khẩu mở thì nó được dùng cho cả hai; hãy điền cả hai khi người được đọc tệp không nên là người được gỡ hạn chế.
Có ai in hay sao chép PDF của tôi được không dù tôi đã tắt điều đó?
Có, nếu họ muốn. Các hạn chế là những cờ trong tệp, và tuân theo chúng chỉ là một quy ước. Acrobat và hầu hết trình đọc trả phí đều tuân theo; một số trình đọc miễn phí thì không, và bất kỳ công cụ nào gỡ mật khẩu chủ sở hữu đều bỏ chúng đi trong một giây.
Tôi nên chọn độ mạnh mã hóa nào?
AES 256-bit, trừ khi bạn biết một trình đọc cũ cụ thể phải mở được tệp. Mọi thứ từ khoảng Acrobat 9 trở đi đều xử lý được nó. Các tùy chọn 128-bit dành cho phần mềm cũ hơn thế, và RC4 có những điểm yếu đã biết. Dù thế nào đi nữa, một mật khẩu ngắn cũng phá hỏng tất cả chúng.
Tôi quên mật khẩu. Bạn có khôi phục được nó không?
Không, và điều đó là có chủ đích. Định dạng này không có cửa hậu và CekPDF không đoán mật khẩu - dựng một công cụ bẻ khóa vào trong một công cụ bảo mật riêng tư sẽ thay đổi mục đích của trang web này. Nếu tài liệu mở được mà không cần mật khẩu và chỉ từ chối in, thì Mở khóa PDF khắc phục điều đó.
Mật khẩu của tôi có được gửi đi đâu không?
Không. Việc mã hóa chạy bên trong trình duyệt của bạn trong một Web Worker, và mật khẩu được dùng ở đó rồi bị loại bỏ cùng với công việc. Bạn có thể xác nhận điều đó bằng cách mở tab mạng trước khi nhấn nút. Sau khi trang đã tải xong một lần, công cụ hoạt động khi kết nối bị tắt.
Quyền dành cho trình đọc màn hình làm gì?
Nó kiểm soát xem phần mềm hỗ trợ có được trích xuất văn bản để đọc to lên hay không, nên tắt nó đi khiến tài liệu trở nên không dùng được với bất kỳ ai dựa vào một trình đọc màn hình. Nó mặc định bật. Ở AES 256-bit, cờ này hoàn toàn không được mang theo, nên thiết lập này chỉ áp dụng ở độ mạnh 128-bit.

Công cụ liên quan