This commit is contained in:
Tben
2023-08-13 12:11:17 +01:00
parent bf45ea89ba
commit 98c4c17eb3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ const { Buffer } = require("buffer");
* @returns
*/
const decrypt = ({ encryptedString, encryptionKey, encryptionSalt }) => {
if (!encryptedString?.match(/.}/)) {
if (!encryptedString?.match(/./)) {
console.log("Encrypted string is invalid");
console.log("Encrypted string =>", encryptedString);
return encryptedString;