AI Unicode Encryption Logo

AI-Enhanced Unicode Encryption

A proof-of-concept demonstration using AI techniques for advanced content protection

Input HTML

Encryption Options
Uses current mapping table for decryption, ignoring version IDs.
Lower values encrypt more text, higher values are more selective

Enter HTML content or load a sample...

Encrypted HTML

Encrypted content will appear here...

HTML to Analyze

Enter HTML content or load a sample for analysis...

Analysis Results

Analysis results will appear here...

API Documentation

The AI-Enhanced Unicode Encryption system provides RESTful API endpoints for integration with your applications.

1. Encrypt HTML Content

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%"
  }
}

2. Decrypt HTML Content

POST /decrypt
Content-Type: application/json

{
  "html": "Encrypted HTML content"
}

Response:
{
  "status": "success",
  "decrypted_html": "Original HTML content"
}

3. Analyze 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
      },
      ...
    ]
  }
}

4. Get Custom Font

GET /font

Response:
TrueType font file for rendering encrypted content

Integration Example

// 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;
  }
}