-
Notifications
You must be signed in to change notification settings - Fork 823
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9139 from surveyjs/json-obfuscator-description
Add a description to JSON obfuscator
- Loading branch information
Showing
2 changed files
with
126 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# SurveyJS JSON Obfuscator | ||
|
||
This tool is designed to obfuscate survey JSON schemas by replacing titles, descriptions, placeholders, and other meaningful texts with randomized sequences of characters. The obfuscation may be useful if you need to attach a survey JSON schema to a bug report for investigation by the SurveyJS team and want to strip the schema of all sensitive data. | ||
|
||
Usage: | ||
|
||
1. Clone the `survey-library` GitHub repository. | ||
2. Open the console in the root folder and build the `survey-core` bundle: | ||
|
||
``` | ||
npm run build_core | ||
``` | ||
3. Run the following command: | ||
``` | ||
node .\utils\json_obfuscator.js [path\to\the\survey\json\schema.json] | ||
``` | ||
This command produces a file named as the original with suffix `obf`. For example, `nps.json` → `nps.obf.json`. The obfuscated file is placed in the same folder as the original. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters