From 18c550ecda1491f08976f9d2c3e2d151cbb5e52a Mon Sep 17 00:00:00 2001 From: Tarrgon <61888458+Tarrgon@users.noreply.github.com> Date: Tue, 30 Jun 2026 13:35:28 -0400 Subject: [PATCH] toString clearText --- scripts/encrypt-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/encrypt-data.js b/scripts/encrypt-data.js index a3b7631..7282e33 100644 --- a/scripts/encrypt-data.js +++ b/scripts/encrypt-data.js @@ -77,7 +77,7 @@ class Encrypter { static encrypt(clearText) { const iv = crypto.randomBytes(16); const cipher = crypto.createCipheriv(this.algorithm, this.key, iv); - const encrypted = cipher.update(clearText, 'utf8', 'hex'); + const encrypted = cipher.update(clearText.toString(), 'utf8', 'hex'); return [ encrypted + cipher.final('hex'), Buffer.from(iv).toString('hex'),