Encrypt Modules
npm install @edirect/encrypt-modulesEncryption utilities and modules for Edirect applications. Provides services and helpers for encrypting and decrypting data, including support for PGP and other algorithms.
- PGP encryption and decryption helpers
- Utilities for secure data handling
- Integrates with NestJS and other Edirect modules
``bash`
npm install @edirect/encrypt-modules
Import and use the encryption services in your application:
`typescript
import { PgpEncryptService } from '@edirect/encrypt-modules';
const encrypted = await PgpEncryptService.encrypt(data, publicKey);
const decrypted = await PgpEncryptService.decrypt(
encrypted,
privateKey,
passphrase
);
``
This package does not require environment variables by default, but you may provide keys or secrets via environment variables as needed for your encryption setup.