Title: Fernet Encryption
Author: Hubbard Labs
Published: <strong>September 2, 2021</strong>
Last modified: January 5, 2025

---

Search plugins

![](https://ps.w.org/fernet-encryption/assets/banner-772x250.png?rev=2611628)

![](https://ps.w.org/fernet-encryption/assets/icon-256x256.png?rev=2611628)

# Fernet Encryption

 By [Hubbard Labs](https://profiles.wordpress.org/hubbardlabs/)

[Download](https://downloads.wordpress.org/plugin/fernet-encryption.zip)

 * [Details](https://srd.wordpress.org/plugins/fernet-encryption/#description)
 * [Reviews](https://srd.wordpress.org/plugins/fernet-encryption/#reviews)
 * [Development](https://srd.wordpress.org/plugins/fernet-encryption/#developers)

 [Support](https://wordpress.org/support/plugin/fernet-encryption/)

## Description

Fernet Encryption is a plugin that can be used to encrypt and decrypt data in WordPress
using fernet.

Development was originally sponsered by Access Networks.

### Setup your Key

To setup your key, you need to add the following line to your wp-config file.

    ```
    `
    ```

define( ‘FERNET_KEY’, ‘YOUR_FERNET_KEY’ );
 `

If you choose not to setup your key, you will need to save a copy of the one provided
upon activation of the plugin.

_IMPORTANT: Changing your WordPress salts will invalidate the default Fernet key
provided._

### How to Use

To encrypt data simply use `$token = fernet_encrypt( 'YOUR MESSAGE' )` in your code.

To decrypt the data simply use `fernet_decrypt( $token )` in your code.

You can use the following shortcode to encrypt:

    ```
    [fernet-encrypt]YOUR MESSAGE[/fernet-encrypt]
    ```

You can use the following shortcode to decrypt:

    ```
    [fernet-decrypt]YOUR-FERNET-TOKEN[/fernet-decrypt]
    ```

We have also added useful helper functions:

 * fernet_get_post_meta
 * fernet_add_post_meta
 * fernet_update_post_meta
 * fernet_get_user_meta
 * fernet_add_user_meta
 * fernet_update_user_meta
 * fernet_add_option
 * fernet_get_option
 * fernet_update_option

### Credit

 * Illustrations provided by undraw.co
 * Fernent PHP modified from Kelvin Mo – Fernet-PHP

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Fernet Encryption” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Hubbard Labs ](https://profiles.wordpress.org/hubbardlabs/)
 *   [ Brandon Hubbard ](https://profiles.wordpress.org/bhubbard/)

[Translate “Fernet Encryption” into your language.](https://translate.wordpress.org/projects/wp-plugins/fernet-encryption)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/fernet-encryption/),
check out the [SVN repository](https://plugins.svn.wordpress.org/fernet-encryption/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/fernet-encryption/)
by [RSS](https://plugins.trac.wordpress.org/log/fernet-encryption/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.7

 * Readme improvements

#### 1.0.6

 * Add support for WordPress Rest API.
 * Add support for WordPress CLI.

#### 1.0.5

 * Added Helper Functions.

#### 1.0.4

 * Updated Readme

#### 1.0.3

 * Updated Readme.
 * Provided shortcodes for encrypting and decrypting.

#### 1.0.0

 * First release.

## Meta

 *  Version **1.1.0**
 *  Last updated **1 year ago**
 *  Active installations **10+**
 *  WordPress version ** 6.4 or higher **
 *  Tested up to **6.7.5**
 *  PHP version ** 8.0 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/fernet-encryption/)
 * Tags
 * [encryption](https://srd.wordpress.org/plugins/tags/encryption/)[security](https://srd.wordpress.org/plugins/tags/security/)
 *  [Advanced View](https://srd.wordpress.org/plugins/fernet-encryption/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/fernet-encryption/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/fernet-encryption/reviews/)

## Contributors

 *   [ Hubbard Labs ](https://profiles.wordpress.org/hubbardlabs/)
 *   [ Brandon Hubbard ](https://profiles.wordpress.org/bhubbard/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/fernet-encryption/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://hubbardlabs.com)