Skip to main content

Cryptography & Ciphers

Fernet Encryption

Apply Fernet Encrypt with explicit key, format, and algorithm settings. Enter the data and key material, choose the parameters, then review the result.

Tool workspace

Your input stays in this browser.

Add the required input to continue.

Needs input

You can run the tool again after any change.

Options

Your result appears here

Apply Fernet Encrypt with explicit key, format, and algorithm settings. Enter the data and key material, choose the parameters, then review the result.

This tool runs open-source code from CyberChef by GCHQ (Apache License 2.0). See open-source credits.

Fernet Encryption uses Fernet to process the supplied input. Encryption returns a Fernet token; decryption returns the authenticated plaintext or fails verification. This record describes encryption or encoding for Fernet Encryption.

Encryption returns a Fernet token; decryption returns the authenticated plaintext or fails verification. This record describes encryption or encoding for Fernet Encryption. Processing runs in the browser for this catalog category, so the result depends on the supplied bytes and settings. Processing runs in the browser.

Fernet combines encryption and authentication for a token; it does not replace access control or secure key storage.

Instructions

  1. Provide text or data for this tool.
  2. Use a generated test key and do not paste a production key. This applies to Fernet Encryption.
  3. Copy the complete token without changing its URL-safe Base64 characters. This applies to Fernet Encryption.
  4. Decrypt with the same key and inspect authentication errors before retrying. This applies to Fernet Encryption.

Example

Input: Plaintext "Test message"; key: a public 32-byte URL-safe Base64 test key. Operation direction: encryption or encoding; algorithm: Fernet Encryption.

Settings: Fernet Encryption: Key: URL-safe Base64 Fernet key. Input: Text; output: the Fernet token string. Use the paired encrypt or decrypt operation.

Result: Encryption returns a Fernet token; decryption returns the authenticated plaintext or fails verification. This record describes encryption or encoding for Fernet Encryption. Processing runs in the browser for this catalog category, so the result depends on the supplied bytes and settings.

Limits

  • Fernet Encryption: The operation cannot recover a missing or incorrect key.
  • Fernet Encryption: Token validity does not identify the person who created it.
  • Fernet Encryption: Use an application key-management system for production secrets.