<?php

$lurl = (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] !== 'off') ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/';

$key = 'AhDesignencrypts';
$ahd = 'encryptsAhDesign';

echo bin2hex(openssl_encrypt($lurl, 'AES-128-CBC', $key, OPENSSL_RAW_DATA, $ahd));


?>