@k6-contrib/fields-encrypted
TypeScript icon, indicating that this package has built-in type declarations

5.1.0 • Public • Published

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}),
  },
});

Readme

Keywords

none

Package Sidebar

Install

npm i @k6-contrib/fields-encrypted

Weekly Downloads

26

Version

5.1.0

License

MIT

Unpacked Size

30.6 kB

Total Files

17

Last publish

Collaborators

  • gautamsi