From 4a307d66542512c2d24a6de5d137a4fdcdb2fbd5 Mon Sep 17 00:00:00 2001 From: hoangtv49 Date: Tue, 16 Jan 2024 17:17:19 +0700 Subject: [PATCH] fix: encryption service --- src/components/encryption/encryption.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/encryption/encryption.service.ts b/src/components/encryption/encryption.service.ts index 2834a9c5..dfb36e65 100644 --- a/src/components/encryption/encryption.service.ts +++ b/src/components/encryption/encryption.service.ts @@ -45,7 +45,7 @@ export class EncryptionService implements OnModuleInit { }); const cipherKey = new CipherKey(); - cipherKey.cipher_text = CiphertextBlob.toString(); + cipherKey.cipher_text = Buffer.from(CiphertextBlob).toString('hex'); await this.cipherKeyRepository.save(cipherKey); }