Socket
Book a DemoInstallSign in
Socket

@k6-contrib/fields-encrypted

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@k6-contrib/fields-encrypted

Keystone 6 Reversible encryption field

Source
npmnpm
Version
5.0.0
Version published
Weekly downloads
26
188.89%
Maintainers
1
Weekly downloads
 
Created
Source

Encrypted Field

import { encrypted } from '@k6-contrib/fields-encrypted';
import 'dotenv/config';

const Product = list({
  fields: {
    title: text({ validation: { isRequired: true } }),
    content: text(),
    encrypted: encrypted({reverse: true, secret: "some secret to encrypt with}), // reverse option lets you see the value in admin ui or in graphql
    encrypted2: encrypted({secret: "some secret to encrypt with}),
  },
});

FAQs

Package last updated on 02 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts