@edirect/encrypt-modules
v11.0.47
Published
Encrypt Modules
Downloads
742
Maintainers
Keywords
Readme
@edirect/encrypt-modules
Encryption utilities and modules for Edirect applications. Provides services and helpers for encrypting and decrypting data, including support for PGP and other algorithms.
Features
- PGP encryption and decryption helpers
- Utilities for secure data handling
- Integrates with NestJS and other Edirect modules
Installation
npm install @edirect/encrypt-modulesUsage
Import and use the encryption services in your application:
import { PgpEncryptService } from '@edirect/encrypt-modules';
const encrypted = await PgpEncryptService.encrypt(data, publicKey);
const decrypted = await PgpEncryptService.decrypt(
encrypted,
privateKey,
passphrase
);Environment Variables
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.
