代码、数据与二维码工具

加密

提供加密的交互处理。

优先本地处理无需注册隐私说明 ↗

Encryption happens locally with AES-GCM and PBKDF2. The password and plaintext never leave this browser.

使用步骤

如何使用

  1. Choose Encrypt or Decrypt and enter the text plus password.
  2. Run the local AES-GCM operation and review the result.
  3. Copy the result and keep the password separate from the encrypted text.

Auditable browser cryptography

The page derives a 256-bit AES-GCM key from your password with PBKDF2 using SHA-256 and 150,000 iterations. A fresh 16-byte salt and 12-byte IV are generated for every encryption. The PTX1 output contains only the version marker, salt, IV, and authenticated ciphertext.

Keep the boundaries clear

The password is never included in the encrypted value and cannot be recovered from it. Keep the password separate, and treat the PTX1 text as sensitive because anyone with the encrypted text can attempt offline password guesses.

Local and ephemeral

Text and passwords are processed in this browser tab. The page does not upload, store, or log the input; clearing the form removes the visible values.

常见问题

你可能还想知道

Can I decrypt without the password?

No. AES-GCM authentication rejects the value when the password is missing or incorrect.

What is PTX1?

PTX1 is this tool’s versioned text format: a marker followed by URL-safe Base64 salt, IV, and ciphertext segments separated by periods.

Is this suitable for a password manager or legal archive?

Use a purpose-built audited encryption system for high-value or long-term secrets. This page is a local utility and does not provide key recovery, sharing, or backup.

Does the tool send my text anywhere?

No. Web Crypto performs the operation locally in your browser, and the page has no upload step.