-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
seperate hashing with no concat and fix "hash" option (#11)
feat: Enhance CSV processing with individual column hashing and additional options - Modified the existing functionality to hash each selected column separately instead of concatenating them. - Added new columns with the original column name suffixed by "_hash" for each hashed column. - Implemented options to manage columns as follows: - "Hash": Adds a new column with the hashed value and retains the original column. - "Hash and exclude": Adds a new column with the hashed value and removes the original column from the unidentifiable spreadsheet. - "Exclude": Removes the original column only from the unidentifiable spreadsheet but retains it in the original_with_hash spreadsheet. - "Keep": Retains the original column in both spreadsheets without any changes. - Added a new section with a text input box and a button to hash the input using SHA-1. Displays the first 10 characters of the hash below the input box when the button is clicked. - Updated the `myForm` submission event listener to handle separate hashing of each column. - Updated the `updateSelect` function to handle UI changes for each option. - Ensured that new columns with hashed values are added correctly based on the selected options. This commit enhances the usability and flexibility of the CSV processing tool, allowing users to better manage and anonymize their data.
- Loading branch information
1 parent
3f8e5ff
commit 4042183
Showing
3 changed files
with
32 additions
and
47 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
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
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,3 @@ | ||
nhs number,accession number,some other stuff,junk | ||
12345,RJZ12345,good,beans | ||
54321,RJZ54321,bad,toast |