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

Fernet Encryption

描述

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

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

評價

There are no reviews for this plugin.

貢獻者及開發者

“Fernet Encryption” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Fernet Encryption 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

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.