Ask a question about PHP encryption and decryption?

Source: Internet
Author: User
Here is the PHP encryption and decryption
$g_v = get_post_meta($post->ID, 'url', true); function abcEncode($m){    $m = base64_encode($m);    $m = str_replace("Ax","@jkp",$m);    $m = str_replace("ak","@bfg",$m);    $m = str_replace("R","!BeF",$m);    return $m;}function abcDecode($m){    $m = str_replace("!BeF","R",$m);    $m = str_replace("@bfg","ak",$m);    $m = str_replace("@jkp","Ax",$m);    $m = base64_decode($m);    return $m;    }$link = abcEncode($g_v);

?>

Put in the php file, the IFRAME call is encrypted text, instead of the original $g_v link, what is less what code to enable the IFRAME to call the original link and source encryption? As long as the source code seems to be garbled.
Thank you

Reply content:

Here is the PHP encryption and decryption

$g_v = get_post_meta($post->ID, 'url', true); function abcEncode($m){    $m = base64_encode($m);    $m = str_replace("Ax","@jkp",$m);    $m = str_replace("ak","@bfg",$m);    $m = str_replace("R","!BeF",$m);    return $m;}function abcDecode($m){    $m = str_replace("!BeF","R",$m);    $m = str_replace("@bfg","ak",$m);    $m = str_replace("@jkp","Ax",$m);    $m = base64_decode($m);    return $m;    }$link = abcEncode($g_v);

?>

Put in the php file, the IFRAME call is encrypted text, instead of the original $g_v link, what is less what code to enable the IFRAME to call the original link and source encryption? As long as the source code seems to be garbled.
Thank you

Refutation is impossible to achieve.
Assuming that your idea can be implemented, then the encrypted address may be '/FDSAKJ13234@JKP ', if the address is valid, then others can naturally access the address, otherwise the address is invalid, the IFRAME display 404.

Moreover, the idea was meaningless. People who do not understand the source code know the URL, understand the person can use JS with Frames[0].location.href to get the real URL.

That's right upstairs.
It's off-pants farting, no matter what you do you want the normal display then your link can be accessed

I'll give you a clue.
SRC address is just a cover-up, the content is being converted from SRC value

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.