@k6-contrib/fields-encrypted
v6.1.0
Published
Keystone 6 Reversible encryption field
Downloads
270
Readme
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}),
},
});