From 0ecde828db33691711916bb01f4c8e7cad18d45b Mon Sep 17 00:00:00 2001 From: RohitR311 Date: Mon, 25 Nov 2024 20:58:56 +0530 Subject: [PATCH] feat: add encryption for user input values --- server/src/workflow-management/classes/Generator.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/workflow-management/classes/Generator.ts b/server/src/workflow-management/classes/Generator.ts index 7801a20e..4390573e 100644 --- a/server/src/workflow-management/classes/Generator.ts +++ b/server/src/workflow-management/classes/Generator.ts @@ -22,6 +22,7 @@ import { getBestSelectorForAction } from "../utils"; import { browserPool } from "../../server"; import { uuid } from "uuidv4"; import { capture } from "../../utils/analytics" +import { encrypt } from "../../utils/auth"; interface PersistedGeneratedData { lastUsedSelector: string; @@ -797,7 +798,7 @@ export class WorkflowGenerator { // when more than one press action is present, add a type action pair.what.splice(index - input.actionCounter, input.actionCounter, { action: 'type', - args: [input.selector, input.value], + args: [input.selector, encrypt(input.value)], }, { action: 'waitForLoadState', args: ['networkidle'],