Text Decoder
A web application that encrypts and decrypts text with the keys defined by the Alura challenge.
- HTML5
- CSS3
- JavaScript

Problem
The Alura ONE Bootcamp challenge called for a tool that could encrypt and decrypt text with five fixed keys, but only with lowercase letters, without accents or special characters.
Beyond the main flow, the page had to display the result on screen and offer a way to copy it.
Role
I handled the responsive design and the full JavaScript implementation: input validation, encryption, decryption, and clipboard copy.
Decisions
- Follow the Figma guidelines.
I kept the provided layout, sizes, colors, and typefaces to simulate working with a UX/UI team instead of proposing a different interface.
- Validate before transforming.
A regular expression allows only letters from a to z and spaces. This avoids special characters and reduces the injection surface before processing the text.
- Treat the text as an array.
Encryption spreads the text into an array and replaces each vowel through a switch. Decryption uses replace with global expressions to recover the original text.
Result
The decoder works on mobile, tablet, and desktop, follows the visual guidelines, and adds clipboard copy with smooth scrolling to the result.