A proof-of-concept demonstration using AI techniques for advanced content protection
Enter HTML content or load a sample...
Encrypted content will appear here...
Enter HTML content or load a sample for analysis...
Analysis results will appear here...
See how different encryption modes affect the output:
The AI-Enhanced Unicode Encryption system provides RESTful API endpoints for integration with your applications.
POST /encrypt
Content-Type: application/json
{
"html": "Your HTML content here"
}
Response:
{
"status": "success",
"encrypted_html": "Encrypted HTML content",
"analysis": {
"charset": "utf-8",
"segment_count": 10,
"encrypt_count": 5,
"encryption_ratio": "50.00%"
}
}
POST /decrypt
Content-Type: application/json
{
"html": "Encrypted HTML content"
}
Response:
{
"status": "success",
"decrypted_html": "Original HTML content"
}
POST /analyze
Content-Type: application/json
{
"html": "Your HTML content here"
}
Response:
{
"status": "success",
"analysis": {
"charset": "utf-8",
"is_valid_utf8": true,
"segment_count": 10,
"encrypt_count": 5,
"encryption_ratio": 0.5,
"segments": [
{
"text": "Sample text...",
"parent_tag": "p",
"encryption_score": 0.85,
"should_encrypt": true
},
...
]
}
}
GET /font
Response:
TrueType font file for rendering encrypted content
// JavaScript example of using the encryption API
async function encryptContent() {
const html = document.getElementById('content').value;
const response = await fetch('/encrypt', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ html })
});
const result = await response.json();
if (result.status === 'success') {
document.getElementById('encrypted').innerHTML = result.encrypted_html;
}
}