Title: Fernet Encryption
Author: Hubbard Labs
Published: <strong>2. september 2021</strong>
Last modified: 5. januar 2025

---

Søk gjennom innstikk

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

Dette innstikket **er ikkje testa med dei tre siste utgåvene av WordPress**. Det
kan henda det ikkje blir vedlikehalde lenger, og kan ha problem med nyare versjonar
av WordPress.

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

# Fernet Encryption

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

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

 * [Detaljar](https://nn.wordpress.org/plugins/fernet-encryption/#description)
 * [Omtalar](https://nn.wordpress.org/plugins/fernet-encryption/#reviews)
 * [Utvikling](https://nn.wordpress.org/plugins/fernet-encryption/#developers)

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

## Skildring

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

## Omtalar

There are no reviews for this plugin.

## Bidragsytarar og utviklarar

“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/)

[Omset “Fernet Encryption” til ditt eige språk.](https://translate.wordpress.org/projects/wp-plugins/fernet-encryption)

### Interested in development?

[Les kjeldekoden](https://plugins.trac.wordpress.org/browser/fernet-encryption/),
sjekk [SVN-lageret](https://plugins.svn.wordpress.org/fernet-encryption/) eller 
abonner på [utviklingsloggen](https://plugins.trac.wordpress.org/log/fernet-encryption/)
med [RSS](https://plugins.trac.wordpress.org/log/fernet-encryption/?limit=100&mode=stop_on_copy&format=rss).

## Endringslogg

#### 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.

## Om

 *  Version **1.1.0**
 *  Last updated **2 år sidan**
 *  Active installations **10+**
 *  WordPress version ** 6.4 eller nyare **
 *  Tested up to **6.7.5**
 *  PHP version ** 8.0 eller nyare **
 *  Language
 * [English (US)](https://wordpress.org/plugins/fernet-encryption/)
 * Tags
 * [encryption](https://nn.wordpress.org/plugins/tags/encryption/)[security](https://nn.wordpress.org/plugins/tags/security/)
 *  [Avansert vising](https://nn.wordpress.org/plugins/fernet-encryption/advanced/)

## Vurderingar

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/)

## Hjelp

Har du noko å seia? Treng du hjelp?

 [Sjå hjelpeforumet](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)