0.1.0 • Published 3 years ago

@k6js/contrib-fields-encrypted v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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