Peace of mind, encoded
ZenCrypt is a full-stack web application that makes secure messaging simple. Encryption transforms your readable text into an unreadable encoded format, protecting it from unauthorized eyes. Decryption reverses the process, restoring the original message—but only with the correct password. Built with Python Flask and vanilla JavaScript, ZenCrypt combines Base64 encoding with password protection in a sleek, dark-themed interface.
Every request requires password validation
Instant processing with zero latency
Dark theme with gold accents
The application follows a three-tier architecture with clear separation of concerns.
HTML, CSS, JavaScript
Python · REST API
No persistence
The encryption process takes plaintext input and converts it to a Base64-encoded string.
Type message & password
message + passwordCheck inputs
POST /api/encrypt
{message, password}Verify password
Convert to encoded
b64encode(message)JSON result
Show output
# Base64 Encoding Example
import base64
message = "Hello World"
message_bytes = message.encode('ascii')
base64_bytes = base64.b64encode(message_bytes)
encoded = base64_bytes.decode('ascii')
# Result: SGVsbG8gV29ybGQ=
The decryption process reverses the encoding, converting a Base64 string back to plaintext.
Paste encoded text
SGVsbG8gV29ybGQ=Check inputs
POST /api/decrypt
{message, password}Verify password
Convert to plaintext
b64decode(encoded)JSON result
Show output
# Base64 Decoding Example
import base64
encoded = "SGVsbG8gV29ybGQ="
encoded_bytes = encoded.encode('ascii')
message_bytes = base64.b64decode(encoded_bytes)
decoded = message_bytes.decode('ascii')
# Result: Hello World
Modern technologies chosen for reliability, performance, and a seamless development experience.
Semantic markup
Gold & grey theme
Vanilla JS · Fetch
Backend language
Web framework
Encoding algorithm
Serverless deployment
JSON data exchange
All API endpoints accept JSON requests and return JSON responses. Password authentication is required for all operations.
Encodes a plaintext message to Base64 format
{
"message": "Hello World",
"password": "abc@q1#*#"
}
{
"success": true,
"result": "SGVsbG8gV29ybGQ=",
"message": "Encoding successful"
}
{"error": "Input password"}
Missing password field
{"error": "Invalid password"}
Incorrect secret key
Decodes a Base64 string back to plaintext
{
"message": "SGVsbG8gV29ybGQ=",
"password": "abc@q1#*#"
}
{
"success": true,
"result": "Hello World",
"message": "Decoding successful"
}
{"error": "Invalid base64 data"}
Malformed Base64 input
{"error": "Invalid password"}
Incorrect secret key
Default Secret Key
The default password for demonstration is:
abc@q1#*#
Store your secret key securely in environment variables for production