@edirect/encrypt-modules 11.0.40 → 11.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -3
- package/dist/README.md +28 -3
- package/dist/package.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
# @edirect/encrypt-modules
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Encryption utilities and modules for Edirect applications. Provides services and helpers for encrypting and decrypting data, including support for PGP and other algorithms.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- PGP encryption and decryption helpers
|
|
8
|
+
- Utilities for secure data handling
|
|
9
|
+
- Integrates with NestJS and other Edirect modules
|
|
4
10
|
|
|
5
11
|
## Installation
|
|
6
12
|
|
|
7
|
-
```
|
|
8
|
-
|
|
13
|
+
```bash
|
|
14
|
+
npm install @edirect/encrypt-modules
|
|
9
15
|
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
Import and use the encryption services in your application:
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { PgpEncryptService } from '@edirect/encrypt-modules';
|
|
23
|
+
|
|
24
|
+
const encrypted = await PgpEncryptService.encrypt(data, publicKey);
|
|
25
|
+
const decrypted = await PgpEncryptService.decrypt(
|
|
26
|
+
encrypted,
|
|
27
|
+
privateKey,
|
|
28
|
+
passphrase
|
|
29
|
+
);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Environment Variables
|
|
33
|
+
|
|
34
|
+
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.
|
package/dist/README.md
CHANGED
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
# @edirect/encrypt-modules
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Encryption utilities and modules for Edirect applications. Provides services and helpers for encrypting and decrypting data, including support for PGP and other algorithms.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- PGP encryption and decryption helpers
|
|
8
|
+
- Utilities for secure data handling
|
|
9
|
+
- Integrates with NestJS and other Edirect modules
|
|
4
10
|
|
|
5
11
|
## Installation
|
|
6
12
|
|
|
7
|
-
```
|
|
8
|
-
|
|
13
|
+
```bash
|
|
14
|
+
npm install @edirect/encrypt-modules
|
|
9
15
|
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
Import and use the encryption services in your application:
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { PgpEncryptService } from '@edirect/encrypt-modules';
|
|
23
|
+
|
|
24
|
+
const encrypted = await PgpEncryptService.encrypt(data, publicKey);
|
|
25
|
+
const decrypted = await PgpEncryptService.decrypt(
|
|
26
|
+
encrypted,
|
|
27
|
+
privateKey,
|
|
28
|
+
passphrase
|
|
29
|
+
);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Environment Variables
|
|
33
|
+
|
|
34
|
+
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.
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edirect/encrypt-modules",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.41",
|
|
4
4
|
"description": "Encrypt Modules",
|
|
5
5
|
"packageScope": "@edirect",
|
|
6
6
|
"main": "./dist/src/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@nestjs/cli": "^11.0.16",
|
|
31
31
|
"@types/archiver": "^7.0.0",
|
|
32
|
-
"@types/node": "^25.0.
|
|
32
|
+
"@types/node": "^25.0.10",
|
|
33
33
|
"@types/node-rsa": "^1.1.4",
|
|
34
34
|
"@types/stream-buffers": "^3.0.8"
|
|
35
35
|
},
|