Secret Key Generator
Generate strong secret keys for JWT signing, symmetric encryption, HMAC signing and other cryptographic operations. Everything is generated in your browser using the Web Crypto API (crypto.getRandomValues), so no secret ever leaves your device.
常見問題
JWT密鑰應該有多長?
對於HS256,至少需要32位元組(256位元)。使用44個字母數字字元的金鑰可以留有安全餘量。
我可以用這個產生AES加密金鑰嗎?
AES-256需要精確的32位元組。產生一個32個字元的金鑰,然後將其編碼為Base64或十六進位格式,以便在大多數程式庫中使用。