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