Developer secrets

Purpose-specific random secrets with explicit consumer boundaries.

Open Secret, select a preset, and generate. Generic presets use 32 cryptographically random bytes (256 bits). JWT HS256 and session signing emit 43 unpadded Base64URL characters; webhook HMAC emits 64 lowercase hex characters. Encoding does not add entropy. Results can be copied/cleared; changing settings invalidates output. Values are not automatically persisted, downloaded or sent over the network.

These are recipes, not universal compatibility guarantees. HS256 uses a shared secret, not an asymmetric signing key, and this tool does not generate JWTs. The session preset is a server-side signing secret, not an entire session implementation or per-user ID. Webhook presets are for self-managed HMAC, not replacements for provider-issued credentials. Follow your library's encoding and key-decoding contract.

Use independent values per application/environment/purpose. Plan rotation and storage in your secret manager. Never put secrets in source control, public frontend environment variables, screenshots, or bug reports. Clipboard history and terminal output remain outside Zelk's control.

Framework recipes and .env output

v0.2.10 adds framework recipes reviewed against Auth.js deployment guidance and Django 5.2 settings. These are encoding/configuration recipes, not full authentication integration tests or universal framework compatibility claims.

PresetBytesEncoding / charactersFixed environment key
jwt-hs25632Base64URL / 43JWT_SECRET
session32Base64URL / 43SESSION_SECRET
webhook32Hex / 64WEBHOOK_SECRET
authjs32Base64URL / 43AUTH_SECRET
django64Base64URL / 86DJANGO_SECRET_KEY

Raw is the default. Choose .env to preview one unquoted KEY=value assignment and copy the exact displayed text, without writing a file. Changing preset/format invalidates output. Generic keys require consumer configuration; arbitrary key names are not accepted.

Auth.js v5 consumes AUTH_SECRET using its supported environment-loading mechanism; do not use NEXT_PUBLIC_ or other public frontend prefixes. OAuth client credentials still come from the provider and are not generated here. For Django, explicitly map the supplied environment to settings:

import os
SECRET_KEY = os.environ["DJANGO_SECRET_KEY"]

Django does not load .env files automatically. Configure environment injection or a trusted loader separately, use SECRET_KEY_FALLBACKS when appropriate for rotation, and remove retired keys deliberately. Zelk never overwrites .env. Generated alphabets exclude quotes, whitespace, $ and newlines, so no shell/dotenv escaping is needed. Representation alone does not prove randomness of externally supplied values.

On this page