Base64 online encoding and decoding implementation code demo and download _ php instance

Source: Internet
Author: User
Recently, several programs are encrypted using Base64, which is very confusing. online conversion is temporarily completed, but not all of them can be done, I hope it will help later. Online demo address:
Gb2312 version http://tools.jb51.net/tools/base64_decode-gb2312.php
Utf8 edition http://tools.jb51.net/tools/base64_decode-utf8.php

The code is as follows:


Header ('content-Type: text/html; charset = gb2312 ');
$ Txt1 = stripslashes (trim (@ $ _ POST ['text1']);
$ Button = @ $ _ POST ['click'];
$ Down = @ trim ($ _ GET ['low']);
If ($ down = 1 ){
Header ("Content-type: command ");
Header ("Content-Disposition: attachment; filename=base64_decode.txt ");
$ Contents = file_get_contents (basename ($ _ SERVER ['php _ SELF ']);
Echo $ contents;
Exit;
}
?>




Base64 online encoding and decoding gb2312














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.