Hs256 Secret. SecretKey key = Keys. Create 32-byte keys, 256-bit keys, 512-bit k