High score kneeling ASP/PHP string encryption/decryption possible string base64

Source: Internet
Author: User
High score begging ASP/PHP string encryption and decryption or string base64 for example: Original URL string: high score begging ASP/PHP string encryption and decryption or string base64
For example:
Original URL string: http://wwww.adfasf.com/upload/20120304/4532524.jpg
I need to encrypt this string into: a very short string with uppercase and lowercase letters + digits or individual numbers or letters.

For example, "http://wwww.adfasf.com/upload/20120304/4102524.jpg?# "afadasfwetqetqwetfasdf"
At the same time, the decryption program is required: when I get "afadasfwetqetqwetfasdf", I get the original string through the decryption program.

For example, "afadasfwetqetqwetfasdf" = "http://wwww.adfasf.com/upload/20120304/4102524.jpg"

Thank you, prawns.

Seeking program or direct hair: danlan_sky@126.com

------ Solution --------------------
Well, you just need to write a password algorithm yourself.
This is done in this way,
PHP code
PHP codefunction Valid () {(username id * 16-32) string connection time and input}
------ Solution --------------------
Cannot ready-made functions be used?
PHP code
$url = "http://wwww.adfasf.com/upload/20120304/4532524.jpg";$encrypt = base64_encode($url);$decrypt = base64_decode($encrypt);echo "encrypt-->>".$encrypt."
";//aHR0cDovL3d3d3cuYWRmYXNmLmNvbS91cGxvYWQvMjAxMjAzMDQvNDUzMjUyNC5qcGc=echo "decrypt-->>".$decrypt."
";//http://wwww.adfasf.com/upload/20120304/4532524.jpg

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.