Title: Fernet Encryption
Author: Hubbard Labs
Published: <strong>2021 年 9 月 2 日</strong>
Last modified: 2025 年 1 月 5 日

---

搜尋外掛

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

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

# Fernet Encryption

 由 [Hubbard Labs](https://profiles.wordpress.org/hubbardlabs/) 開發

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

 * [詳細資料](https://tw.wordpress.org/plugins/fernet-encryption/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/fernet-encryption/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/fernet-encryption/#developers)

 [技術支援](https://wordpress.org/support/plugin/fernet-encryption/)

## 外掛說明

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

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Fernet Encryption〉的開發相關工作。

參與者

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

[將〈Fernet Encryption〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/fernet-encryption)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/fernet-encryption/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/fernet-encryption/)，或透過 
[RSS](https://plugins.trac.wordpress.org/log/fernet-encryption/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/fernet-encryption/)。

## 變更記錄

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

## 中繼資料

 *  版本 **1.1.0**
 *  最後更新 **2 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 6.4 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.7.7**
 *  PHP 版本需求 ** 8.0 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/fernet-encryption/)
 * 標籤:
 * [encryption](https://tw.wordpress.org/plugins/tags/encryption/)[security](https://tw.wordpress.org/plugins/tags/security/)
 *  [進階檢視](https://tw.wordpress.org/plugins/fernet-encryption/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/fernet-encryption/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/fernet-encryption/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/fernet-encryption/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://hubbardlabs.com)