Skip to content

CODE-X Encryption

CODE-X is an enterprise-grade code obfuscation and encryption engine. It supports JavaScript (via advanced obfuscation) and Python/Java (via Base64 encoding). Use this to protect your source code before distribution

POST /codex

FieldTypeRequiredDescription
codestringYesThe raw source code string.
langstringYesThe language of the code. Options: ‘js’, ‘javascript’, ‘py’, ‘java’.
const payload = {
lang: "js",
code: "function hello() { console.log('Secret Code'); }"
};
const res = await fetch('https://heavstal.com.ng/api/v1/codex', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': 'YOUR_API_KEY'
},
body: JSON.stringify(payload)
});

Returns heavily obfuscated code that is difficult for humans to reverse-engineer.

{
"status": "success",
"creator": "HEAVSTAL TECH",
"data": {
"language": "js",
"encrypted_code": "var _0x5f2d=['log','Secret Code'];(function(_0x2d8f05,_0x4b81bb){..."
}
}

Returns a Base64 encoded string.

{
"status": "success",
"data": {
"language": "py",
"encrypted_code": "cHJpbnQoIkhlbGxvIFdvcmxkIik="
}
}