Skip to main content
100%

Data Encryption Testing

✓ Published0🌍 Public
CCurran Kelleher
Last edited Jul 7, 2022
Created on Jul 6, 2022
Forked from HTML Starter

This example demonstrates how AES encryption transforms a short plain-text message into a much longer ciphertext, highlighting the approximately 4× size increase. The page renders both the unencrypted string and its encrypted form in green terminal-style text on a black background. It uses the CryptoJS library’s `AES.encrypt` and `AES.decrypt` methods with a fixed secret key, then displays the results via `document.getElementById().textContent`. The visualization is purely textual, with no charts or data beyond the two message strings.

AI-generated description

Trying out CryptoJS for password protecting plain text using Advanced Encryption Standard (AES).

One insight from here is that when you encrypt a string in this way, it looks like it grows in size by about 4X.

MIT Licensed

Similar vizzes