Skip to content

Attacler/directus-extension-jsc-encrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

directus-jsc-encrypt

Introduction

This package is designed for encrypting and decrypting data within Directus. It ensures that data is always stored in an encrypted form inside your database, and targets specific collection fields.

Setup

To install the package, use either npm or yarn:

npm i directus-extension-jsc-encrypt

or

yarn add directus-extension-jsc-encrypt

Next, register two environment variables:

  • DE_ENCRYPTION: A comma-separated list of collection fields that you want to encrypt, in the format "CollectionName.Field, CollectionName.Field2"
  • DE_KEY: The encryption key you want to use, can be any random string

Restart your Directus instance to complete the setup.

Supported Features

The package currently supports the following operations:

  • Creating records
  • Updating records
  • Reading records

These operations can be performed via the Directus app, SDK, and API.

Keep in mind that search for the encrypted fields is not supported.

About

Encrypt your Directus data safely

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published