Skip to content

Commit

Permalink
fix: encryption service
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangtv49 committed Jan 16, 2024
1 parent 3fc7abe commit 4a307d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/encryption/encryption.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4a307d6

Please sign in to comment.