e4a接收php数据库 e4a 数据库
php md5下16位和32位的实现代码
复制代码
创新互联是一家专业提供长乐企业网站建设,专注与做网站、网站设计、H5页面制作、小程序制作等业务。10年已为长乐众多企业、政府机构等服务。创新互联专业网络公司优惠进行中。
代码如下:
?php
echo substr(md5("admin"),8,16); // 16位MD5加密
echo "hr";
echo md5("admin"); // 32位MD5加密
?
16位的MD5加密用substr函数截取了字符得到实现....
不想深入研究了 :) 要把脑力放到其他关键的地方~~
今天做了个php链接mssql数据库,数据库中的表中字段使用MD5十六加密的。但是php中的MD5默认是32位,导致登录程序没办法使用md5加密跟表中字段匹配,在网上一搜也有不少人有这方面的困惑,后来找到一个解决办法,是正确的,就记录下来。
使用substr函数截取:
substr(md5("admin"),8,16);
//
16位MD5加密
md5("admin");
//
32位MD5加密
经过脚本之家测试结果如下:
我们以asp的几个md5后的结果比较
附:如果遇到MD5加密文件,而又不知道的密码的,请在数据库中换上这组加密的数据。
admin---16位加密---7a57a5a743894a0e
admin---32位加密---21232f297a57a5a743894a0e4a801fc3
admin---40位加密---7a57a5a743894a0e4a801fc343894a0e4a801fc3
substr(md5("admin"),8,16);
//
16位MD5加密
正是上面的32为从第8个字符开始的16个字符。所以大家不用考虑唯一性的问题。本身就是正确的。网上有人说php5支持
复制代码
代码如下:
echo
md5("admin",true);//返回16位,不过这是在PHP5里才有。
经测试输出的结果是乱码,如果大家有什么好的代码,可以分享下。
编写一个php文件,使之能获取到js中的下载地址
//页面初始化
var shareInfo = {"ret":0,"sharekey":"4bdd893f456ff302bc110638dbefa069","createtime":"2013-05-27 15:36:58","data":"eaU2Gy\/a2wc1qUs7ZoK8sIapGEDqpv+FaIScKOo2kyu0Huv9pnLu6taScY\/FpRe5m0\/GKvZwKVxyTre8qv8Z5YHNXEnKfPHAgw6Dfpja+5RYvbFiulin47FTOSNuihdTJY3UoL6E5U9sjx8tyGBWQBZyS9Pgk8Xks0WlTUSw5HxWSvdiDgnMRmMHBSnH0lItge7iyUH6+mPOKAcY9sBH3XJUCGyX2CgFHOXw9Lvy49db+nKSZyQY8Vxdq426glsEDnmvenEAv97QQalUbIACiSvye00QAAR9","dir_list":[],"dl_cookie_name":"FTN5K","dl_cookie_value":"bc98309b","dl_encrypt_url":"c5ba720a0baf0fd5bfca4a7fdedebdf10b75547088940b861c271dc9a422d8c8a1f08a28ef5a547d057f6369cc2d7c62ad1133d0b05e27cd17aca82059a968c4","dl_svr_host":"hz.yun.ftn.qq.com","dl_svr_port":80,"downcnt":9,"file_list":[{"file_id":"2da8ad24-9280-4caa-893b-76bd1011f4d7","file_name":"Sweety - \u6a31\u82b1\u8349.mp3","file_size":"4620093"}],"flag":1,"pdir_key":"3b6a9940f0a739ae12b58dcd423dce4a","ppdir_key":"3b6a9940f338fdcb41c5dfa52b9ed888","res_type":0,"sharename":"Sweety - \u6a31\u82b1\u8349.mp3","storecnt":0,"uin":1083796027,"url":"http:\/\/url.cn\/FvGnPV","viewcnt":15};
QQDISK_WEB_DL.Utils.init(shareInfo);
自己看看页面的源代码吧,下载地址来自于源代码中这段js
e4a怎么取数据库的表中指定列的内容
1、建立一个指定内容的mysql数据库,写几个字段,再建立一个中间件连接数据库,编写E4A程序连接该数据库。
2、在数据库面板输入指定的英文包名和应用名称内容即可,然后该工程会被保存在E4A安装目录的projects文件夹中,用e4a读取数据库表中指定列的内容即可。
E4A数据库数组怎么执行
1。先将从数据库中取出的内容,按所属字段赋值给字符串变量(字符串变量的个数等于您取出内容包含的字段数目;
2.定义数组;
3。根据字符串变量的个数为循环语句设置循环条件;
4.执行循环语句,为数组的每个成员赋值。
E4A图片二进制存取到数据库什么编写代码?
//图片转成二进制
public byte[] getBytes(string filePath)
{
System.IO.FileStream fs = new System.IO.FileStream(filePath, System.IO.FileMode.Open);
byte[] imgData = new byte[fs.Length];
fs.Read(imgData, 0, (int)fs.Length);
return imgData;
}
//二进制转成图片
private System.Drawing.Image convertByteToImg(byte[] imgData)
{
System.IO.MemoryStream ms = new System.IO.MemoryStream(imgData);
System.Drawing.Image img = System.Drawing.Image.FromStream(ms);
return img;
}
php 解密eval(gzinflate(str_rot13(base64_decode
以下是代码
? eval(gzinflate(str_rot13(base64_decode('FZhSEoXYGYW3kkw6xQC3V9Jd6MP9bpMu3N1MfV5LANz7yznf4a8///PXP4oz6f+o3nMs+3Ev/tj29e9o2m70jzTZCgL7Oy+yKS/++KcYjxI/bLLoK2A2Z698p50iYVIXJOabUg2OUsNSdKmGi1OdLgu6onAjgQAF0CDYNEkMNni5z42ROCnwXYK1CUswzSaK6CYQnD+BYlWAtM7wR0mj0ZPxu8DFlrSH+en4dFf8U4FrULUhqeHMghjopKs+lc1l28ser65TS83oUB7LyzEJOj3TPsPp7nCZ7sWzgjh8TtDwVEHwo9u9qLTEtwZv8QLDacmu3GdMnYvY2YCKKicotFObgQulT0LDPL7YGSytZBlr4I/Je04poacyEgr/fas7bfAKqc6rLQCo4cDb2YGWIbe7YQjT54Qy09IQB3C+xg8d22oKQBdgw3yXsKB7oDyoSNQA/Jz0J5XPmuKBUsNLWq6ptXbfgzBcS38ei/5+Dn8SoDgdegk4U+YKAOWDQ1uLw1s9mlLnXPMYJmEHCQj9bcDdwRpODHy2WMJ1I17AXOb5S0mizjTEw+0bc3SN3yhzAEHJhBnsj5rd2vKL8CX6AUv0Z+lovxQNkqfywcilKnZrSYp693O7V2qRTyQLKfnwzFSqNbzNGm3GZJCyeiJ0leWPPf5XSlGfNPy9uoItaqXBR4YCLtgo2e54WtLUB/ZKIdWpCJjyCG9X7U02neHDyBOHsZ7kW6NgVxIUabCvxvpNqjVyAsG5lznp1zJshI4ZjHr4dQBtNQz66Xex8yLB097p+vgJIQF+X5f1vl29QYtAb24yAybfZ3dCcd7VeO4HPfgCTonZFtmdYuT1Fenm9dHQibqE+gjL+x2hywtFTgxWCoEk1vlxYJVYy25b84zhLVh4wtsqs3f35tAr1yXPV7sGtYHfFbfsUvZIqTT7zNeGqJDHCrx7QGQU5BYcivCaxN/+T3yoROy2RZMYqt/ufZe8NxrDreG4bC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iHajSchJ+Kq/vA5CCDuzgT/dpjvQ4esYdPtzh36ubsA3woj96x6RMrfXuNrRwwZzijj2D/XIU2ge/7tccyew5j4EKvpATlaIZ7vL9QPBSvSfZOz6DTd8uxMD0wYoZpK6GLZ3gC67UpvQa8kWUoTpsXyhvLePe7VssYknQz9IkGvG/yoOYv7A0jT/ZbhF/5Fe3lh7irO2C26130b7NicaVVKrVbbnuE17mp35i14ebtijgC+XZ83lrKV6S4M5EmGO+npJ3+eRuBi17hvyz+GCvk+xAIz8m/flqzIJEW6QKxqXGWhqB9ZOD+bZFXiCpHqHDuB8W09RH59NaKuvZGnG0LxCM3xbv7Xe+rJNWuqFUXwaUM8ti3SFfDqCUas0ETTCE+Oq2hl0hCWqpJRiY11u/GEUelMAzI0JxYEnouSYgM1lWAUoc/pS1EDu27yxZWpCyuqWEpMIgv4bP3Daj2BQXeFHDWDcfARIC7RH4Bki1CaFYCX4SD0E/80/07wa95vkLfgcJg1jaXdozK7v6Ggf5dZldaMoJeMQVjC8M0Pf4b4vP40DX+ND//3dzDSJtQqmFVWm5soDmRwpaX9SemaaiXEAs08Y1LB03PsO23qKl+CXzWIQJtcCsjG1RZgrkb3pAodYwGYT158Z4RqPXJuUoctCIde0+PttApKvLunKt05jqBHpAj+kyH6xcTIphxgiGGofv4jrB+CNc7khbWnqjKN9JsGKSQ7XYMeJuDTMpuyon0r9sV8dK0GuPOjia7I3sZvsv07lTGsrMwNEutIShBBcsWNDQuzbxYvPzTQMR0tI2e9vGy28bWRLIeacNqbfBOLHNtSrnqn2ZtO819NzJPI81RrdTfFe8nONw3zkQs9r9mxKgWf9rk1yBJ9ijP0fAH1dkV7UsTpCmVhAAzAwETmUsr//+95//+j3//sdff/7nr/8B')))); ?
网站名称:e4a接收php数据库 e4a 数据库
文章源于:http://myzitong.com/article/docdgcp.html