Skip to content

Add SHA-3 hashing support - #21

Open
partyplatter08-lab wants to merge 1 commit into
amithmandassociates-oss:mainfrom
partyplatter08-lab:partyplatter08-lab/bounty-2
Open

Add SHA-3 hashing support#21
partyplatter08-lab wants to merge 1 commit into
amithmandassociates-oss:mainfrom
partyplatter08-lab:partyplatter08-lab/bounty-2

Conversation

@partyplatter08-lab

Copy link
Copy Markdown

Summary

  • add SHA-3-256 (Keccak) calculation with CryptoJS.SHA3(..., { outputLength: 256 }) for uploaded evidence files
  • display SHA-3 values in the hash table and log calculation completion in the System Console
  • include SHA-3 values in CSV, PDF, Word, Excel, and forensic email PDF reports

Notes

  • Assumption: the requested "SHA-3 (Keccak)" support maps to CryptoJS's SHA3 implementation with 256-bit output, which produces Keccak-256 compatible values.

Validation

  • perl -0ne 'while (/<script>\s*(.*?)\s*<\/script>/sg) { print $1 }' index.html > /tmp/hash-report-tool-inline.js && node --check /tmp/hash-report-tool-inline.js
  • git -c core.whitespace=cr-at-eol diff --check
  • Headless Chrome smoke test: uploaded an in-browser sample.txt containing abc, confirmed the SHA-3 column rendered 4e03657aea45a94fc7d47ba826c8d667c0d1e6e33a64a036ec44f58fa12d6c45, confirmed 6 table columns, confirmed System Console logging, and confirmed the Excel export function is present.

/claim #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant