Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<!DOCTYPE html> <html> <head><meta charset="utf-8"> <title>Decrypt HTML</titl..
Decoded Output download
<!DOCTYPE html>
<html>
<head><meta charset="utf-8">
<title>Decrypt HTML</title>
</head>
<body>
<?php
// Inclua o arquivo com a chave secreta
require 'key.php';
// Funo para descriptografar os dados
function decryptData($data, $key) {
// Use uma chave de 32 bytes (256 bits) para o AES-256-CBC
$key = str_pad($key, 32, chr(0));
// Decodifica a string Base64URL
$data = strtr($data, '-_', '+/');
// Decodifica a string Base64 para obter o IV e os dados criptografados
$data = base64_decode($data);
// Obtm o IV (primeiros 16 bytes) e os dados criptografados
$iv = substr($data, 0, 16);
$encrypted = substr($data, 16);
// Descriptografa os dados usando AES-256-CBC
$decrypted = openssl_decrypt($encrypted, 'aes-256-cbc', $key, OPENSSL_RAW_DATA, $iv);
return $decrypted;
}
// Texto criptografado
$encryptedText = 'LZQABkget_blzAxj8xXPjzY2uFngqIuIAjL1LFclFF2W_fQakqcDgG--KYU_MJUdKeF8rIiLgW6753IiK_bWvVBurwieX14-JNMIQqzDJ7nDHRbChWd91hbr9kC_xA7XVa9cbrPCOamPzGthTSydkifl-1AAxzvqYbgSAjm8rg1Q5hhQcsl5OqweFwCMUkuTbsfwnc_gna3q1GlpgU_bekyzUW7wW0bqBlWvj4-5MN35sFu_UCuuLBP74WkWf2zvYrGvhGZil1ymyX3H6QmBTqSCgygu1QyOWXktCWhk21Rs951jD9MS3Z2W3w4pHkOuCQvYg-68WOvsyQZE38dbtz1tYcQKtUvsdsvsDnvLWi7zPetH04_JtkutZixxdYGxyygrczmAJ7SE2xJ_HN0jPmNuY2Aj3JlcUCmvUUr4C3DXycDD7oN6BlHVHcnfnX3qKV2h_Sp0970R7t__TBK4mz_etz_cqrTaF0VnuMvkjKfT9Xr5uo8a1qmY0CInoPryZQVhakJNGmyzgh2VaCHP5-QP6lrVv430Rbm0s7wGiKlK6idLM6E82N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1JiwOXQsUF5xtnKhld4Ykav4Mfjyv3mOz_vWQk-61lXsQ9FwHkbEE47NoqLgznZvD9YWJklWG-FU8Xkx8EBKUmXdeyp3CDazOIBca_UCGHY8FoCxLT5Xky_gNDB99JtIfVybVzs82xv_-2VqkXB28vRus5aJ2B933xkq3F2B_ZzFhb_9MolSyVW46_LImWTgFz01dtQqNWSZTDDYczfH85gQLbMRYxBG4vf44bfMtv-V_gm-dEz1AHbVWa5o_h0yGKsfxepYTprfEjzgh54tcBPkqvCel7crVsOkMl43dlPO5qtygDEfT8VI6ehjVM2_2PxckvOV7-XZl1GEaAe5VdwtKkykH8AYN09jE75fUyQ7gwxDVxGs3rIcSG_1mRJb6ayA77YxCPrFYi5MDxAESInwQ22bfVLTTCKy6VOpWD4p_6rg6Ni5s5RqZTRgwvPjAHUq3Fwn4DmbKZ00P3lcqbqf_OmInr8kgnAyuKf1Tq-PWQMVVuX6yBYz4IKmgIbxuALv_cJ9MOnXqssEsEKqm4giPy8PQbIcIzkVZCHUoP8jwHdiZrOV45VbC-U_CpWAUe-tUFtTFMtDCbCvF7ybVDfeH_K9c0veVGFOAQKoTIavmWFBdxvCLERw8-F6dNWZpD4=';
// Descriptografar o texto
$decryptedHtml = decryptData($encryptedText, $secretKey);
// Exibir o texto descriptografado em HTML
echo $decryptedHtml;
?>
</body>
</html>
Did this file decode correctly?
Original Code
<!DOCTYPE html>
<html>
<head><meta charset="utf-8">
<title>Decrypt HTML</title>
</head>
<body>
<?php
// Inclua o arquivo com a chave secreta
require 'key.php';
// Funo para descriptografar os dados
function decryptData($data, $key) {
// Use uma chave de 32 bytes (256 bits) para o AES-256-CBC
$key = str_pad($key, 32, chr(0));
// Decodifica a string Base64URL
$data = strtr($data, '-_', '+/');
// Decodifica a string Base64 para obter o IV e os dados criptografados
$data = base64_decode($data);
// Obtm o IV (primeiros 16 bytes) e os dados criptografados
$iv = substr($data, 0, 16);
$encrypted = substr($data, 16);
// Descriptografa os dados usando AES-256-CBC
$decrypted = openssl_decrypt($encrypted, 'aes-256-cbc', $key, OPENSSL_RAW_DATA, $iv);
return $decrypted;
}
// Texto criptografado
$encryptedText = 'LZQABkget_blzAxj8xXPjzY2uFngqIuIAjL1LFclFF2W_fQakqcDgG--KYU_MJUdKeF8rIiLgW6753IiK_bWvVBurwieX14-JNMIQqzDJ7nDHRbChWd91hbr9kC_xA7XVa9cbrPCOamPzGthTSydkifl-1AAxzvqYbgSAjm8rg1Q5hhQcsl5OqweFwCMUkuTbsfwnc_gna3q1GlpgU_bekyzUW7wW0bqBlWvj4-5MN35sFu_UCuuLBP74WkWf2zvYrGvhGZil1ymyX3H6QmBTqSCgygu1QyOWXktCWhk21Rs951jD9MS3Z2W3w4pHkOuCQvYg-68WOvsyQZE38dbtz1tYcQKtUvsdsvsDnvLWi7zPetH04_JtkutZixxdYGxyygrczmAJ7SE2xJ_HN0jPmNuY2Aj3JlcUCmvUUr4C3DXycDD7oN6BlHVHcnfnX3qKV2h_Sp0970R7t__TBK4mz_etz_cqrTaF0VnuMvkjKfT9Xr5uo8a1qmY0CInoPryZQVhakJNGmyzgh2VaCHP5-QP6lrVv430Rbm0s7wGiKlK6idLM6E82NAnoRSOz5X_riq7CMf0CJ6M0Kb47pbjrfAyR7W0UXh3ERmqOnGm7cY8bttQWaZBTpTDjrSKwtMomdg5erXg91jCWRQgiiZa8efzWmCqvOIeWwJZ0Wons7NvhLh0CWBt1dtFtXVpN_KkHhegVjeLOKLTVkMr0RFlDLC3awkwIRErOim-Bm0NFIGR2ZItbAGZN2-ObJjtT2LGIyZmL76MIVnjinRPNefLHZdU7M15Kuaf4euMPEGM3lIW6kMx66QhNaa2KJCmYH5LIlqVK8iQavOXk0okOore_1yCKGRiCDLcWTwGYsedI748NXMVVO0UZOXtgnPesU5IF3f8IkL55XzoTd4K_DojwApWzp3Zyxme_FJzQhwn5xgFMtZb_7xfX2mmW4zAy3Pl3Cs7GVbdo4cjssNIYSadJHp9rmfjPW2cdbd3PohmRXY6zc_8FAc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AHUq3Fwn4DmbKZ00P3lcqbqf_OmInr8kgnAyuKf1Tq-PWQMVVuX6yBYz4IKmgIbxuALv_cJ9MOnXqssEsEKqm4giPy8PQbIcIzkVZCHUoP8jwHdiZrOV45VbC-U_CpWAUe-tUFtTFMtDCbCvF7ybVDfeH_K9c0veVGFOAQKoTIavmWFBdxvCLERw8-F6dNWZpD4=';
// Descriptografar o texto
$decryptedHtml = decryptData($encryptedText, $secretKey);
// Exibir o texto descriptografado em HTML
echo $decryptedHtml;
?>
</body>
</html>
Function Calls
None |
Stats
MD5 | ea549632365b4217e0a564c8306c85c5 |
Eval Count | 0 |
Decode Time | 116 ms |