php使用base64加密解密图片示例分享
<?php
//文件名:base64.php
$data="/9j/4aaqskzjrgabaqaaaqabaad/2wceabalda4mchaodq4seratgcgagbywgdejjr0oojm9pdkzoddasfxoqerxrtc4ug1rv19iz2hnpk1xexbkefxlz2mberisgbuylxoal2ncoejjy2njy2njy2njy2njy2njy2njy2njy2njy2njy2njy2njy2njy2njy2njy2njy2njy//aabeiadiamgmbeqaceqedeqh/xagiaaabbqebaqebaqaaaaaaaaaaaqidbaugbwgjcgsqaaibawmcbamfbqqeaaabfqecawaeequsitfbbhnryqcicrqygzghccncscevuthwjdnicoijchyxgbkajsynkckqndu2nzg5okneruzhselku1rvvldywvpjzgvmz2hpann0dxz3ehl6g4sfhoeiiyqsk5svlpeymzqio6slpqeoqaqys7s1tre4ubrcw8tfxsfiycrs09tv1tfy2drh4upk5ebn6onq8flz9px29/j5+geaawebaqebaqebaqaaaaaaaaecawqfbgcicqoleqacaqiebamebwuebaabancaaqideqqfitegekfrb2fxeyiygqguqpghscejizns8bvictekfiq04sxxfxgzgiynkckqnty3odk6q0rfrkdisuptvfvwv1hzwmnkzwznaglqc3r1dnd4exqcg4sfhoeiiyqsk5svlpeymzqio6slpqeoqaqys7s1tre4ubrcw8tfxsfiycrs09tv1tfy2dri4+tl5ufo6ery8/t19vf4+fr/2gamaweaahedeqa/aj9z1g8i1e5so6mrfbavxia4oaqdvl//aj/j/wdvs0ai2qx/apz+z/8afw0arnq2of8ap7cf9/dqbe2sakol/cf9/dqbc2s6mp8amixp/f00aen27fremkkkqcfyoa4hxjjw7v8a3/6cgbdk0q41qs/z3jxy8z3kjrn0b9kalsnhs/wnmmtudojwgbp/akdqbzrggcfzqba5oa9etv8aj1h/3b/kgdz7xa2ndu/9/wdokanrwss0v+bycj/7nqbktanq0mlyyw7qikwy7xwb170atw+j219oet5aysm6hb3xkgjjk44z06uaqxuk29joen3cysi7n5jibaahxj4z0/mkaodc0wpybx/j1h/3f/lsa858rtjx7z/f/okanvwm37nusoocfyagdal1vuzy2jkvjwrgqylucd2oa2pcg+zgvdtncpaim0j++rzx9on40aj43gezbxu4xmlq6br6lnkh8f6uaca7uwpzbx/j1h/3f/lsa8z8tnjxdej/ag/6cmbbyaveaasq2k3lixaf5qc4zjqpc0aui9afqxv7yttlsgmh2vmeifue/jayaae/tu/xttp/ng2pbgxku989sm9aqgu70ae12v8ax6w/7i/yoa8w8uk//cr3ueyjf2hskygxtk/55v8akaaarj/zzb8jqawrj/zzf8jqbgysn/lm/wd3yaqdfjlp/ln/++tqb7zag/zyep4f/lqa9o0lelfj9xqavlr/880/75fab5uf/pnp++rqaevh/wa80/75fab5uf8azzt/al5fma8qp/nmn/fioacbxsa//9k=";
$img=base64_decode($data);
echo $img;
?>
引用图片的方法:
<img src="base64.php">
ps:这里再为大家推荐几款在线图片工具供大家参考使用
图片转换为base64编码在线工具:
在线email邮箱图标制作工具:
在线ps图像处理工具:
在线图片格式转换(jpg/bmp/gif/png)工具:
ico图标在线生成工具:
上一篇: php与paypal整合方法