From 958438af84e27e210e8e75906d160232ce2b6759 Mon Sep 17 00:00:00 2001 From: Pac Date: Sat, 17 Jan 2026 23:09:09 +0100 Subject: [PATCH] Update bit calculations for input length The "Bits per char" size is: 1 -> for binary 4 -> for hex 8 -> for text --- src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index 9620204..fca2e71 100644 --- a/src/App.js +++ b/src/App.js @@ -68,8 +68,8 @@ function DetailedExplainer({ phase, paddingStep, digestStep, currentWIndex, curr
Message: "{input}"
Characters: {input.length}
-
Bits per char: 8
-
Total bits: {input.length} × 8 = {inputLength}
+
Bits per char: {inputLength/input.length}
+
Total bits: {input.length} × {inputLength/input.length} = {inputLength}
Convert {inputLength} to 64-bit binary: