Fernet Encrypt/Decrypt — Free Online Fernet Encryption Tool

Encrypt and decrypt messages with the Fernet specification — AES-128-CBC + HMAC-SHA256, Python cryptography library compatible.

100% Client-Side — Your data never leaves your browser

Frequently Asked Questions

Fernet: Authenticated Symmetric Encryption for Python Applications

Fernet is a high-level symmetric encryption recipe defined in the Fernet specification. It was popularized by Python's cryptography library and is commonly used in Django applications, configuration file encryption, and anywhere Python developers need reliable symmetric encryption without low-level cryptography decisions.

Internally, Fernet combines two well-understood primitives: AES-128 in CBC mode for encryption and HMAC-SHA256 for authentication. Every token includes a timestamp, making it possible to implement token expiry. The key format — 32 random bytes encoded as URL-safe base64 — is designed for safe storage in environment variables and configuration files.

This browser implementation follows the Fernet specification exactly, producing tokens that are compatible with Python's cryptography library, Django's signing module, and any other Fernet-compliant implementation. Tokens created here can be decrypted in Python and vice versa.

Related Tools