High score kneeling Beg asp/php string encryption decryption possible string base64

Source: Internet
Author: User
High score kneeling Beg asp/php string encryption decryption or string base64
For example:
Original URL string: http://wwww.adfasf.com/upload/20120304/4532524.jpg
I need to encrypt this string to: a short string, uppercase and lowercase letters + numbers or individual numbers or letters.

Example: "Http://wwww.adfasf.com/upload/20120304/4532524.jpg" = "AFADASFWETQETQWETFASDF" after encryption
The decryption program is also needed: when I get to "afadasfwetqetqwetfasdf", I get the original string by decrypting the program.

Example: "Afadasfwetqetqwetfasdf" = "http://wwww.adfasf.com/upload/20120304/4532524.jpg" after decryption

Thank you, prawns.

Program or Direct hair: danlan_sky@126.com

------Solution--------------------
Hero, you write a cryptographic algorithm.
That's the way it is done,
PHP code
php codefunction Valid () {(User name id*16-32) string connection time and input 
------Solution--------------------
Out-of-the-box functions are not available?
PHP code
 $url = "http://wwww.adfasf.com/upload/2012030 4/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.