Const
Fastify plugin wrapping cryptoPluginImpl via fastify-plugin.
fastify-plugin
Fastify plugin that performs cryptographic operations on requests and responses.
import Fastify from "fastify";import { cryptoPlugin } from "@sebastienrousseau/crypto-middleware";const app = Fastify();app.register(cryptoPlugin, { key: process.env.CRYPTO_KEY, operations: ["decrypt-request", "encrypt-response"],}); Copy
import Fastify from "fastify";import { cryptoPlugin } from "@sebastienrousseau/crypto-middleware";const app = Fastify();app.register(cryptoPlugin, { key: process.env.CRYPTO_KEY, operations: ["decrypt-request", "encrypt-response"],});
Fastify plugin wrapping cryptoPluginImpl via
fastify-plugin.