Skip to content

feat: add SHA-3 (CryptoJS Keccak-256) hashing (#2) - #49

Open
walterwagner wants to merge 1 commit into
amithmandassociates-oss:mainfrom
walterwagner:feat/sha3-keccak-2
Open

feat: add SHA-3 (CryptoJS Keccak-256) hashing (#2)#49
walterwagner wants to merge 1 commit into
amithmandassociates-oss:mainfrom
walterwagner:feat/sha3-keccak-2

Conversation

@walterwagner

Copy link
Copy Markdown

Closes #2

/claim #2

Summary

Adds SHA-3 to the bulk evidence table using CryptoJS.SHA3 as requested, plus CSV / Excel / PDF (and Word) export and System Console logging.

Behavior

  • New SHA-3 (Keccak-256) column next to MD5 / SHA-256
  • Digest via CryptoJS.SHA3(wordArray, { outputLength: 256 }) in hash-sha3.js (the helper the page actually calls)
  • System Console logs each SHA-3 calculation
  • Hash PDF, Hash Word, email CSV, email PDF, and a new Excel (.xls) report include the SHA-3 value

CryptoJS.SHA3 is Keccak-256 (not FIPS 202 SHA3-256). The UI labels it that way so forensic exports are not mislabeled.

Tests

npm test drives hash-sha3.js (the shipped helper) against the Keccak-256 KATs for "" and "abc", and asserts index.html wires the helper, console, and exports.

npm test

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.

Add SHA-3 (Keccak) Hashing Support

1 participant