PrivTab

安全令牌生成器

生成密钥或令牌

在浏览器中运行 · 无需上传

此工具及本页说明目前仍为英文。功能完全相同:一切都在你的浏览器中运行。

–
  • 任何内容都不会离开你的设备
  • 服务器不限制文件大小
  • 无需注册,无水印
  • 免费

How to generate a secure token

  1. Choose the format and strength (or length).
  2. Add a prefix if your keys use one, like sk_live_.
  3. Copy or download the tokens.

Which strength to choose

  • 128 bits is the minimum for API keys, secrets and session IDs.
  • 256 bits suits signing keys (for example JWT HS256 secrets) and long-lived secrets.
  • Digits-only codes are for short-lived codes only: 6 digits is about 20 bits.

How the tokens are made

Every token comes from your browser's cryptographic random generator (crypto.getRandomValues), the same one used for encryption keys. Letters are picked without bias, so every character is equally likely. Nothing is stored or sent: once you leave the page, the tokens exist only where you copied them.

常见问题

How is this different from the Password Generator?

The Password Generator makes passwords for people to type and remember. This makes machine secrets: API keys, signing secrets and IDs, in hex or Base64.

Are the tokens sent anywhere?

No. Everything happens in your browser, and the page is blocked from uploading anything.