Tạo khóa ngẫu nhiên

API key, JWT secret, hex key, UUID và hơn nữa - bấm để sao chép.

Công cụ tạo khóa và secret ngẫu nhiên miễn phí

Đang thiết lập dịch vụ mới? Bạn cần API key, JWT secret, hex token và các chuỗi ngẫu nhiên khác. Dokall tạo nhiều định dạng khóa trong một nơi - bấm vào kết quả để sao chép vào clipboard.

Rất tiện để khởi tạo file .env, test luồng auth hoặc tạo credential phát triển mà không cần mở terminal.

Frequently Asked Questions

What types of keys can I generate?
Dokall generates hex keys, Base64 keys, alphanumeric strings, UUIDs, and JWT-compatible secrets in various lengths. Each format suits different use cases - hex for crypto keys, Base64 for API tokens, UUIDs for unique identifiers.
Are the keys cryptographically secure?
Yes. Keys are generated using crypto.getRandomValues(), which pulls from your operating system's cryptographic random number generator. This is the same source used by security libraries and password managers.
What length should a JWT secret be?
For HS256, use at least 256 bits (32 bytes) of randomness. A 64-character hex string or 44-character Base64 string provides adequate entropy. Longer secrets are better but rarely necessary beyond 512 bits.
Can I generate multiple keys at once?
Yes. Generate batches of keys in your chosen format and length. Click any result to copy it to your clipboard.
Is it safe to generate secrets online?
Dokall generates keys entirely in your browser - nothing is sent to a server. For production secrets, browser-based generation is acceptable when using crypto.getRandomValues(). Avoid generating secrets on untrusted or public computers.