We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfaa637 commit eeca797Copy full SHA for eeca797
src/services/crypto.service.ts
@@ -166,11 +166,11 @@ export class CryptoService {
166
return decryptedStream;
167
}
168
169
- public async getEncryptionTransform(key: Buffer, iv: Buffer): Promise<Transform> {
+ public getEncryptionTransform = (key: Buffer, iv: Buffer): Transform => {
170
const cipher = createCipheriv('aes-256-ctr', key, iv);
171
-
172
return cipher;
173
- }
+ };
+
174
/**
175
* Generates the key and the iv by transforming a secret and a salt.
176
* It will generate the same key and iv if the same secret and salt is used.
0 commit comments