Binary Decrypter
Invalid input: Only 0 and 1 are allowed.
0
How it was calculated:
Features Explained
Strict Regex Validation: The input listener uses /^[01]*$/ to check the value. If you try to type a '2' or an 'A', the tool instantly flags it as an error and strips the character, keeping the data clean.
Positional Math Engine: The code reverses the binary string so that the index of the array matches the power of 2 ($2^{index}$). This makes the calculation logic much cleaner.
Real-Time Math Breakdown: As you type, the tool generates a string explaining exactly which bits are being added together (e.g., $32 + 8 + 1$). This is great for educational purposes.
Responsive Design: The layout uses a flexible container with max-width and media queries to ensure the "Terminal" feel translates well to mobile screens.