Penjana token selamat
Jana kunci rahsia atau token
Berjalan dalam pelayar anda · Tiada muat naik
Alat ini dan arahan di halaman ini dalam bahasa Inggeris buat masa ini. Ia berfungsi dengan cara yang sama: semuanya berjalan dalam pelayar anda.
Pelayar anda terlalu lama untuk menjalankan alat ini. Sila kemas kininya, atau gunakan versi semasa Chrome, Edge, Firefox atau Safari.
- Tiada apa-apa meninggalkan peranti anda
- Tiada had saiz daripada pelayan
- Tiada pendaftaran, tiada tera air
- Percuma
How to generate a secure token
- Choose the format and strength (or length).
- Add a prefix if your keys use one, like sk_live_.
- 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.
Soalan lazim
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.