@alessiofrittoli/crypto-cipher 3.0.0-alpha.3 → 3.0.0
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 +507 -281
- package/dist/{index-B9WIVWrs.d.mts → index-DWiR3kkc.d.mts} +43 -43
- package/dist/{index-B9WIVWrs.d.ts → index-DWiR3kkc.d.ts} +43 -43
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +8 -3
|
@@ -41,6 +41,7 @@ declare namespace Cph {
|
|
|
41
41
|
/** The Additional Authentication Data. */
|
|
42
42
|
aad?: Uint8Array;
|
|
43
43
|
}
|
|
44
|
+
/** The RSA Private Key. */
|
|
44
45
|
type PrivateKey = KeyLike | {
|
|
45
46
|
key: KeyLike;
|
|
46
47
|
passphrase?: string;
|
|
@@ -137,19 +138,36 @@ declare class Cipher {
|
|
|
137
138
|
readonly max: 128;
|
|
138
139
|
readonly default: 32;
|
|
139
140
|
};
|
|
141
|
+
/**
|
|
142
|
+
* Cipher algorithm name.
|
|
143
|
+
*
|
|
144
|
+
*/
|
|
140
145
|
static readonly ALGORITHM: {
|
|
146
|
+
/** AES 128 bit Cipher Block Chaining. */
|
|
141
147
|
readonly AES_128_CBC: "aes-128-cbc";
|
|
148
|
+
/** AES 192 bit Cipher Block Chaining. */
|
|
142
149
|
readonly AES_192_CBC: "aes-192-cbc";
|
|
150
|
+
/** AES 256 bit Cipher Block Chaining. */
|
|
143
151
|
readonly AES_256_CBC: "aes-256-cbc";
|
|
152
|
+
/** AES 128 bit AEAD Counter with CBC-MAC. */
|
|
144
153
|
readonly AES_128_CCM: "aes-128-ccm";
|
|
154
|
+
/** AES 192 bit AEAD Counter with CBC-MAC. */
|
|
145
155
|
readonly AES_192_CCM: "aes-192-ccm";
|
|
156
|
+
/** AES 256 bit AEAD Counter with CBC-MAC. */
|
|
146
157
|
readonly AES_256_CCM: "aes-256-ccm";
|
|
158
|
+
/** AES 128 bit AEAD Galois/Counter Mode. */
|
|
147
159
|
readonly AES_128_GCM: "aes-128-gcm";
|
|
160
|
+
/** AES 192 bit AEAD Galois/Counter Mode. */
|
|
148
161
|
readonly AES_192_GCM: "aes-192-gcm";
|
|
162
|
+
/** AES 256 bit AEAD Galois/Counter Mode. */
|
|
149
163
|
readonly AES_256_GCM: "aes-256-gcm";
|
|
164
|
+
/** AES 128 bit AEAD Offset Codebook Mode. */
|
|
150
165
|
readonly AES_128_OCB: "aes-128-ocb";
|
|
166
|
+
/** AES 192 bit AEAD Offset Codebook Mode. */
|
|
151
167
|
readonly AES_192_OCB: "aes-192-ocb";
|
|
168
|
+
/** AES 256 bit AEAD Offset Codebook Mode. */
|
|
152
169
|
readonly AES_256_OCB: "aes-256-ocb";
|
|
170
|
+
/** AES 256 bit AEAD. */
|
|
153
171
|
readonly CHACHA_20_POLY: "chacha20-poly1305";
|
|
154
172
|
};
|
|
155
173
|
/**
|
|
@@ -168,49 +186,49 @@ declare class Cipher {
|
|
|
168
186
|
/**
|
|
169
187
|
* Encrypt in-memory data buffer.
|
|
170
188
|
*
|
|
171
|
-
* ⚠️ This is not suitable for large data. Use {@link Cipher.
|
|
189
|
+
* ⚠️ This is not suitable for large data encryption. Use {@link Cipher.stream.Encrypt()} or {@link Cipher.stream.HybridEncrypt()} methods for large data encryption.
|
|
172
190
|
*
|
|
173
191
|
* @param data The data to encrypt.
|
|
174
192
|
* @param secret The secret key used to encrypt the `data`.
|
|
175
|
-
* @param options (
|
|
193
|
+
* @param options (Optional) Additional options.
|
|
176
194
|
* @returns The encrypted result Buffer.
|
|
177
195
|
*/
|
|
178
196
|
static Encrypt(data: CoerceToUint8ArrayInput, secret: CoerceToUint8ArrayInput, options?: Cph.Options): Buffer<ArrayBuffer>;
|
|
179
197
|
/**
|
|
180
198
|
* Decrypt in-memory data buffer.
|
|
181
199
|
*
|
|
182
|
-
* ⚠️ This is not suitable for large data. Use {@link Cipher.
|
|
200
|
+
* ⚠️ This is not suitable for large data decryption. Use {@link Cipher.stream.Decrypt()} or {@link Cipher.stream.HybridDecrypt()} methods for large data decryption.
|
|
183
201
|
*
|
|
184
202
|
* @param data The data to decrypt.
|
|
185
203
|
* @param secret The secret key used to decrypt the `data`.
|
|
186
|
-
* @param options (
|
|
204
|
+
* @param options (Optional) Additional options. Must be the same used while encrypting data.
|
|
187
205
|
* @returns The decrypted data Buffer.
|
|
188
206
|
*/
|
|
189
207
|
static Decrypt(data: CoerceToUint8ArrayInput, secret: CoerceToUint8ArrayInput, options?: Cph.Options): Buffer<ArrayBuffer>;
|
|
190
208
|
/**
|
|
191
209
|
* Encrypt in-memory data using hybrid encryption.
|
|
192
210
|
*
|
|
193
|
-
* ⚠️ This is not suitable for large data. Use {@link Cipher.
|
|
211
|
+
* ⚠️ This is not suitable for large data encryption. Use {@link Cipher.stream.HybridEncrypt()} method for large data encryption.
|
|
194
212
|
*
|
|
195
|
-
* @param data
|
|
196
|
-
* @param
|
|
197
|
-
* @param options
|
|
213
|
+
* @param data The data to encrypt.
|
|
214
|
+
* @param key The RSA Public Key.
|
|
215
|
+
* @param options (Optional) Additional options.
|
|
198
216
|
*
|
|
199
217
|
* @returns The encrypted result Buffer.
|
|
200
218
|
*/
|
|
201
|
-
static HybridEncrypt(data: CoerceToUint8ArrayInput,
|
|
219
|
+
static HybridEncrypt(data: CoerceToUint8ArrayInput, key: crypto.KeyLike, options?: Cph.Options): Buffer<ArrayBuffer>;
|
|
202
220
|
/**
|
|
203
221
|
* Decrypt in-memory data using hybrid decryption.
|
|
204
222
|
*
|
|
205
|
-
* ⚠️ This is not suitable for large data. Use {@link Cipher.stream.HybridDecrypt()} method for large data
|
|
223
|
+
* ⚠️ This is not suitable for large data decryption. Use {@link Cipher.stream.HybridDecrypt()} method for large data decryption.
|
|
206
224
|
*
|
|
207
|
-
* @param data
|
|
208
|
-
* @param
|
|
209
|
-
* @param options
|
|
225
|
+
* @param data The encrypted data to decrypt.
|
|
226
|
+
* @param key The RSA Private Key.
|
|
227
|
+
* @param options (Optional) Additional options.
|
|
210
228
|
*
|
|
211
229
|
* @returns The encrypted result Buffer.
|
|
212
230
|
*/
|
|
213
|
-
static HybridDecrypt(data: CoerceToUint8ArrayInput,
|
|
231
|
+
static HybridDecrypt(data: CoerceToUint8ArrayInput, key: Cph.PrivateKey, options?: Cph.Options): Buffer<ArrayBuffer>;
|
|
214
232
|
/**
|
|
215
233
|
* Cipher stream based functions.
|
|
216
234
|
*
|
|
@@ -237,21 +255,21 @@ declare class Cipher {
|
|
|
237
255
|
/**
|
|
238
256
|
* Encrypt stream data using hybrid encryption.
|
|
239
257
|
*
|
|
240
|
-
* @param
|
|
241
|
-
* @param options
|
|
258
|
+
* @param key The RSA Public Key.
|
|
259
|
+
* @param options An object defining required options. See {@link Cph.Stream.EncryptOptions} for more info.
|
|
242
260
|
*
|
|
243
261
|
* @returns A new Promise that resolves `void` once stream encryption is completed.
|
|
244
262
|
*/
|
|
245
|
-
HybridEncrypt(
|
|
263
|
+
HybridEncrypt(key: crypto.KeyLike, options: Cph.Stream.EncryptOptions): Promise<void>;
|
|
246
264
|
/**
|
|
247
265
|
* Decrypt stream data using hybrid decryption.
|
|
248
266
|
*
|
|
249
|
-
* @param
|
|
250
|
-
* @param options
|
|
267
|
+
* @param key The private key.
|
|
268
|
+
* @param options An object defining required options. See {@link Cph.Stream.DecryptOptions} for more info.
|
|
251
269
|
*
|
|
252
270
|
* @returns A new Promise that resolves `void` once stream decryption is completed.
|
|
253
271
|
*/
|
|
254
|
-
HybridDecrypt(
|
|
272
|
+
HybridDecrypt(key: Cph.PrivateKey, options: Cph.Stream.DecryptOptions): Promise<void>;
|
|
255
273
|
/**
|
|
256
274
|
* Handle pipe flow to encrypt a Stream.
|
|
257
275
|
*
|
|
@@ -283,17 +301,11 @@ declare class Cipher {
|
|
|
283
301
|
*
|
|
284
302
|
* @returns An object with the generated `Key`, `IV`, `salt` and resolved `options`.
|
|
285
303
|
*/
|
|
286
|
-
static NewKeyIV
|
|
287
|
-
options: T;
|
|
288
|
-
Key: NonSharedBuffer;
|
|
289
|
-
IV: NonSharedBuffer;
|
|
290
|
-
AAD: Uint8Array<ArrayBufferLike> | NonSharedBuffer;
|
|
291
|
-
salt: NonSharedBuffer;
|
|
292
|
-
};
|
|
304
|
+
private static NewKeyIV;
|
|
293
305
|
/**
|
|
294
306
|
* Resolves the given `options` with `Cipher` defaults and constraints.
|
|
295
307
|
*
|
|
296
|
-
* @param options (
|
|
308
|
+
* @param options (Optional) Additional options.
|
|
297
309
|
* @returns The given `options` with `Cipher` defaults and constraints.
|
|
298
310
|
*/
|
|
299
311
|
private static ResolveOptions;
|
|
@@ -301,29 +313,17 @@ declare class Cipher {
|
|
|
301
313
|
* Get the Initialization Vector length based on the given algorithm.
|
|
302
314
|
*
|
|
303
315
|
* @param algorithm The algorithm in use.
|
|
304
|
-
* @param options (
|
|
316
|
+
* @param options (Optional) Additional options.
|
|
305
317
|
* @returns The Initialization Vector length based on the given algorithm
|
|
306
318
|
*/
|
|
307
|
-
static GetIVLength
|
|
319
|
+
private static GetIVLength;
|
|
308
320
|
/**
|
|
309
321
|
* Ensure correct key length based on the given algorithm.
|
|
310
322
|
*
|
|
311
323
|
* @param algorithm The AES algorithm name.
|
|
312
324
|
* @returns An object with validated `algorithm` and `keyLength`.
|
|
313
325
|
*/
|
|
314
|
-
static GetKeyLength
|
|
315
|
-
readonly algorithm: "chacha20-poly1305";
|
|
316
|
-
readonly keyLength: number;
|
|
317
|
-
} | {
|
|
318
|
-
readonly algorithm: "aes-128-cbc" | "aes-128-ccm" | "aes-128-gcm" | "aes-128-ocb";
|
|
319
|
-
readonly keyLength: number;
|
|
320
|
-
} | {
|
|
321
|
-
readonly algorithm: "aes-192-cbc" | "aes-192-ccm" | "aes-192-gcm" | "aes-192-ocb";
|
|
322
|
-
readonly keyLength: number;
|
|
323
|
-
} | {
|
|
324
|
-
readonly algorithm: "aes-256-cbc" | "aes-256-ccm" | "aes-256-gcm" | "aes-256-ocb";
|
|
325
|
-
readonly keyLength: number;
|
|
326
|
-
};
|
|
326
|
+
private static GetKeyLength;
|
|
327
327
|
/**
|
|
328
328
|
* Check if the given algorithm is a Cipher AES-GCM algorithm.
|
|
329
329
|
*
|
|
@@ -41,6 +41,7 @@ declare namespace Cph {
|
|
|
41
41
|
/** The Additional Authentication Data. */
|
|
42
42
|
aad?: Uint8Array;
|
|
43
43
|
}
|
|
44
|
+
/** The RSA Private Key. */
|
|
44
45
|
type PrivateKey = KeyLike | {
|
|
45
46
|
key: KeyLike;
|
|
46
47
|
passphrase?: string;
|
|
@@ -137,19 +138,36 @@ declare class Cipher {
|
|
|
137
138
|
readonly max: 128;
|
|
138
139
|
readonly default: 32;
|
|
139
140
|
};
|
|
141
|
+
/**
|
|
142
|
+
* Cipher algorithm name.
|
|
143
|
+
*
|
|
144
|
+
*/
|
|
140
145
|
static readonly ALGORITHM: {
|
|
146
|
+
/** AES 128 bit Cipher Block Chaining. */
|
|
141
147
|
readonly AES_128_CBC: "aes-128-cbc";
|
|
148
|
+
/** AES 192 bit Cipher Block Chaining. */
|
|
142
149
|
readonly AES_192_CBC: "aes-192-cbc";
|
|
150
|
+
/** AES 256 bit Cipher Block Chaining. */
|
|
143
151
|
readonly AES_256_CBC: "aes-256-cbc";
|
|
152
|
+
/** AES 128 bit AEAD Counter with CBC-MAC. */
|
|
144
153
|
readonly AES_128_CCM: "aes-128-ccm";
|
|
154
|
+
/** AES 192 bit AEAD Counter with CBC-MAC. */
|
|
145
155
|
readonly AES_192_CCM: "aes-192-ccm";
|
|
156
|
+
/** AES 256 bit AEAD Counter with CBC-MAC. */
|
|
146
157
|
readonly AES_256_CCM: "aes-256-ccm";
|
|
158
|
+
/** AES 128 bit AEAD Galois/Counter Mode. */
|
|
147
159
|
readonly AES_128_GCM: "aes-128-gcm";
|
|
160
|
+
/** AES 192 bit AEAD Galois/Counter Mode. */
|
|
148
161
|
readonly AES_192_GCM: "aes-192-gcm";
|
|
162
|
+
/** AES 256 bit AEAD Galois/Counter Mode. */
|
|
149
163
|
readonly AES_256_GCM: "aes-256-gcm";
|
|
164
|
+
/** AES 128 bit AEAD Offset Codebook Mode. */
|
|
150
165
|
readonly AES_128_OCB: "aes-128-ocb";
|
|
166
|
+
/** AES 192 bit AEAD Offset Codebook Mode. */
|
|
151
167
|
readonly AES_192_OCB: "aes-192-ocb";
|
|
168
|
+
/** AES 256 bit AEAD Offset Codebook Mode. */
|
|
152
169
|
readonly AES_256_OCB: "aes-256-ocb";
|
|
170
|
+
/** AES 256 bit AEAD. */
|
|
153
171
|
readonly CHACHA_20_POLY: "chacha20-poly1305";
|
|
154
172
|
};
|
|
155
173
|
/**
|
|
@@ -168,49 +186,49 @@ declare class Cipher {
|
|
|
168
186
|
/**
|
|
169
187
|
* Encrypt in-memory data buffer.
|
|
170
188
|
*
|
|
171
|
-
* ⚠️ This is not suitable for large data. Use {@link Cipher.
|
|
189
|
+
* ⚠️ This is not suitable for large data encryption. Use {@link Cipher.stream.Encrypt()} or {@link Cipher.stream.HybridEncrypt()} methods for large data encryption.
|
|
172
190
|
*
|
|
173
191
|
* @param data The data to encrypt.
|
|
174
192
|
* @param secret The secret key used to encrypt the `data`.
|
|
175
|
-
* @param options (
|
|
193
|
+
* @param options (Optional) Additional options.
|
|
176
194
|
* @returns The encrypted result Buffer.
|
|
177
195
|
*/
|
|
178
196
|
static Encrypt(data: CoerceToUint8ArrayInput, secret: CoerceToUint8ArrayInput, options?: Cph.Options): Buffer<ArrayBuffer>;
|
|
179
197
|
/**
|
|
180
198
|
* Decrypt in-memory data buffer.
|
|
181
199
|
*
|
|
182
|
-
* ⚠️ This is not suitable for large data. Use {@link Cipher.
|
|
200
|
+
* ⚠️ This is not suitable for large data decryption. Use {@link Cipher.stream.Decrypt()} or {@link Cipher.stream.HybridDecrypt()} methods for large data decryption.
|
|
183
201
|
*
|
|
184
202
|
* @param data The data to decrypt.
|
|
185
203
|
* @param secret The secret key used to decrypt the `data`.
|
|
186
|
-
* @param options (
|
|
204
|
+
* @param options (Optional) Additional options. Must be the same used while encrypting data.
|
|
187
205
|
* @returns The decrypted data Buffer.
|
|
188
206
|
*/
|
|
189
207
|
static Decrypt(data: CoerceToUint8ArrayInput, secret: CoerceToUint8ArrayInput, options?: Cph.Options): Buffer<ArrayBuffer>;
|
|
190
208
|
/**
|
|
191
209
|
* Encrypt in-memory data using hybrid encryption.
|
|
192
210
|
*
|
|
193
|
-
* ⚠️ This is not suitable for large data. Use {@link Cipher.
|
|
211
|
+
* ⚠️ This is not suitable for large data encryption. Use {@link Cipher.stream.HybridEncrypt()} method for large data encryption.
|
|
194
212
|
*
|
|
195
|
-
* @param data
|
|
196
|
-
* @param
|
|
197
|
-
* @param options
|
|
213
|
+
* @param data The data to encrypt.
|
|
214
|
+
* @param key The RSA Public Key.
|
|
215
|
+
* @param options (Optional) Additional options.
|
|
198
216
|
*
|
|
199
217
|
* @returns The encrypted result Buffer.
|
|
200
218
|
*/
|
|
201
|
-
static HybridEncrypt(data: CoerceToUint8ArrayInput,
|
|
219
|
+
static HybridEncrypt(data: CoerceToUint8ArrayInput, key: crypto.KeyLike, options?: Cph.Options): Buffer<ArrayBuffer>;
|
|
202
220
|
/**
|
|
203
221
|
* Decrypt in-memory data using hybrid decryption.
|
|
204
222
|
*
|
|
205
|
-
* ⚠️ This is not suitable for large data. Use {@link Cipher.stream.HybridDecrypt()} method for large data
|
|
223
|
+
* ⚠️ This is not suitable for large data decryption. Use {@link Cipher.stream.HybridDecrypt()} method for large data decryption.
|
|
206
224
|
*
|
|
207
|
-
* @param data
|
|
208
|
-
* @param
|
|
209
|
-
* @param options
|
|
225
|
+
* @param data The encrypted data to decrypt.
|
|
226
|
+
* @param key The RSA Private Key.
|
|
227
|
+
* @param options (Optional) Additional options.
|
|
210
228
|
*
|
|
211
229
|
* @returns The encrypted result Buffer.
|
|
212
230
|
*/
|
|
213
|
-
static HybridDecrypt(data: CoerceToUint8ArrayInput,
|
|
231
|
+
static HybridDecrypt(data: CoerceToUint8ArrayInput, key: Cph.PrivateKey, options?: Cph.Options): Buffer<ArrayBuffer>;
|
|
214
232
|
/**
|
|
215
233
|
* Cipher stream based functions.
|
|
216
234
|
*
|
|
@@ -237,21 +255,21 @@ declare class Cipher {
|
|
|
237
255
|
/**
|
|
238
256
|
* Encrypt stream data using hybrid encryption.
|
|
239
257
|
*
|
|
240
|
-
* @param
|
|
241
|
-
* @param options
|
|
258
|
+
* @param key The RSA Public Key.
|
|
259
|
+
* @param options An object defining required options. See {@link Cph.Stream.EncryptOptions} for more info.
|
|
242
260
|
*
|
|
243
261
|
* @returns A new Promise that resolves `void` once stream encryption is completed.
|
|
244
262
|
*/
|
|
245
|
-
HybridEncrypt(
|
|
263
|
+
HybridEncrypt(key: crypto.KeyLike, options: Cph.Stream.EncryptOptions): Promise<void>;
|
|
246
264
|
/**
|
|
247
265
|
* Decrypt stream data using hybrid decryption.
|
|
248
266
|
*
|
|
249
|
-
* @param
|
|
250
|
-
* @param options
|
|
267
|
+
* @param key The private key.
|
|
268
|
+
* @param options An object defining required options. See {@link Cph.Stream.DecryptOptions} for more info.
|
|
251
269
|
*
|
|
252
270
|
* @returns A new Promise that resolves `void` once stream decryption is completed.
|
|
253
271
|
*/
|
|
254
|
-
HybridDecrypt(
|
|
272
|
+
HybridDecrypt(key: Cph.PrivateKey, options: Cph.Stream.DecryptOptions): Promise<void>;
|
|
255
273
|
/**
|
|
256
274
|
* Handle pipe flow to encrypt a Stream.
|
|
257
275
|
*
|
|
@@ -283,17 +301,11 @@ declare class Cipher {
|
|
|
283
301
|
*
|
|
284
302
|
* @returns An object with the generated `Key`, `IV`, `salt` and resolved `options`.
|
|
285
303
|
*/
|
|
286
|
-
static NewKeyIV
|
|
287
|
-
options: T;
|
|
288
|
-
Key: NonSharedBuffer;
|
|
289
|
-
IV: NonSharedBuffer;
|
|
290
|
-
AAD: Uint8Array<ArrayBufferLike> | NonSharedBuffer;
|
|
291
|
-
salt: NonSharedBuffer;
|
|
292
|
-
};
|
|
304
|
+
private static NewKeyIV;
|
|
293
305
|
/**
|
|
294
306
|
* Resolves the given `options` with `Cipher` defaults and constraints.
|
|
295
307
|
*
|
|
296
|
-
* @param options (
|
|
308
|
+
* @param options (Optional) Additional options.
|
|
297
309
|
* @returns The given `options` with `Cipher` defaults and constraints.
|
|
298
310
|
*/
|
|
299
311
|
private static ResolveOptions;
|
|
@@ -301,29 +313,17 @@ declare class Cipher {
|
|
|
301
313
|
* Get the Initialization Vector length based on the given algorithm.
|
|
302
314
|
*
|
|
303
315
|
* @param algorithm The algorithm in use.
|
|
304
|
-
* @param options (
|
|
316
|
+
* @param options (Optional) Additional options.
|
|
305
317
|
* @returns The Initialization Vector length based on the given algorithm
|
|
306
318
|
*/
|
|
307
|
-
static GetIVLength
|
|
319
|
+
private static GetIVLength;
|
|
308
320
|
/**
|
|
309
321
|
* Ensure correct key length based on the given algorithm.
|
|
310
322
|
*
|
|
311
323
|
* @param algorithm The AES algorithm name.
|
|
312
324
|
* @returns An object with validated `algorithm` and `keyLength`.
|
|
313
325
|
*/
|
|
314
|
-
static GetKeyLength
|
|
315
|
-
readonly algorithm: "chacha20-poly1305";
|
|
316
|
-
readonly keyLength: number;
|
|
317
|
-
} | {
|
|
318
|
-
readonly algorithm: "aes-128-cbc" | "aes-128-ccm" | "aes-128-gcm" | "aes-128-ocb";
|
|
319
|
-
readonly keyLength: number;
|
|
320
|
-
} | {
|
|
321
|
-
readonly algorithm: "aes-192-cbc" | "aes-192-ccm" | "aes-192-gcm" | "aes-192-ocb";
|
|
322
|
-
readonly keyLength: number;
|
|
323
|
-
} | {
|
|
324
|
-
readonly algorithm: "aes-256-cbc" | "aes-256-ccm" | "aes-256-gcm" | "aes-256-ocb";
|
|
325
|
-
readonly keyLength: number;
|
|
326
|
-
};
|
|
326
|
+
private static GetKeyLength;
|
|
327
327
|
/**
|
|
328
328
|
* Check if the given algorithm is a Cipher AES-GCM algorithm.
|
|
329
329
|
*
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/types.d.mts
CHANGED
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alessiofrittoli/crypto-cipher",
|
|
3
|
-
"version": "3.0.0
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Node.js Cipher cryptograph utility library",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Alessio Frittoli",
|
|
@@ -19,9 +19,14 @@
|
|
|
19
19
|
"cryptography",
|
|
20
20
|
"cipher",
|
|
21
21
|
"aes",
|
|
22
|
+
"aead",
|
|
22
23
|
"hybrid-encryption",
|
|
23
24
|
"stream-encrypt",
|
|
24
|
-
"stream-decrypt"
|
|
25
|
+
"stream-decrypt",
|
|
26
|
+
"ccm",
|
|
27
|
+
"gcm",
|
|
28
|
+
"ocb",
|
|
29
|
+
"cbc"
|
|
25
30
|
],
|
|
26
31
|
"homepage": "https://github.com/alessiofrittoli/crypto-cipher#readme",
|
|
27
32
|
"bugs": {
|
|
@@ -113,6 +118,6 @@
|
|
|
113
118
|
"dependencies": {
|
|
114
119
|
"@alessiofrittoli/crypto-buffer": "^3.10.0",
|
|
115
120
|
"@alessiofrittoli/math-utils": "^1.17.0",
|
|
116
|
-
"@alessiofrittoli/stream-reader": "
|
|
121
|
+
"@alessiofrittoli/stream-reader": "3.0.0"
|
|
117
122
|
}
|
|
118
123
|
}
|