首页
工具导航
友情链接
关于
Search
1
关于本地larvael项目部署到服务器报错Whoops, looks like something went wrong.的问题
4,487 阅读
2
layui+php多文件列表,多图上传,包含表单修改,可适用于laravel框架和tp框架
3,743 阅读
3
设置邮箱头像方法,gravatar头像设置
3,547 阅读
4
百度工具DNS无法解析IP
1,895 阅读
5
在复制codepen代码时踩得坑,three.js实现的特效
1,690 阅读
东扯西扯
网站建站
SEO优化
公众号开发
登录
Search
标签搜索
php
css
laravel
宝塔面板
jQuery
mysql
js
vscode
layui
thinkphp
多图上传
插件
navicat
gravatar头像
轻量应用服务器
seo
html
腾讯云
微信支付
redis
EzraYes
累计撰写
105
篇文章
累计收到
11
条评论
首页
栏目
东扯西扯
网站建站
SEO优化
公众号开发
页面
工具导航
友情链接
关于
搜索到
65
篇与
东扯西扯
的结果
2023-10-08
PHP实现3DES加密解密
<?php class TripleDES{ /** * 3des加密 * @param string $str 需要加密的字符串 * @param string $key 秘钥24位 * @return string */ public static function encrypt($str,$key){ $str = self::pkcs5_pad($str, 8); if (strlen($str) % 8) { $str = str_pad($str, strlen($str) + 8 - strlen($str) % 8, "\0"); } $sign = openssl_encrypt($str, 'DES-EDE3', $key, OPENSSL_RAW_DATA | OPENSSL_NO_PADDING, ''); return base64_encode($sign); } /** * 3des解密 * @param string $str 需要加密的字符串 * @param string $key 秘钥24位 * @return string */ public static function decrypt($str,$key) { $decrypted = openssl_decrypt(base64_decode($str), 'DES-EDE3', $key, OPENSSL_RAW_DATA,''); return $decrypted; } //填充模式pkcs5padding private static function pkcs5_pad($text, $blocksize) { $pad = $blocksize - (strlen($text) % $blocksize); return $text . str_repeat(chr($pad), $pad); } } // echo TripleDES::encrypt('123456', '9oyKs7cVo1yYzkuisP9bhA=='); // 结果:ha3MLQ7hjao= // echo TripleDES::decrypt('ha3MLQ7hjao=', '9oyKs7cVo1yYzkuisP9bhA=='); // 结果:ha3MLQ7hjao= ?>
2023年10月08日
307 阅读
0 评论
0 点赞
2023-08-27
thinkPHP 伪静态文件
location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } }
2023年08月27日
266 阅读
0 评论
0 点赞
2023-08-03
js 获取get参数
var $_GET = (function(){ var url = window.document.location.href.toString(); var u = url.split("?"); if(typeof(u[1]) == "string"){ u = u[1].split("&"); var get = {}; for(var i in u){ var j = u[i].split("="); get[j[0]] = j[1]; } return get; } else { return {}; } })();使用时直接 $_GET['get参数'], 就直接获得GET参数的值
2023年08月03日
211 阅读
1 评论
1 点赞
2023-07-28
yaf在window环境下的nginx配置文件
location / { index index.php index.html index.htm; if (!-e $request_filename){ rewrite ^/(.*) /index.php last; } } location ~ \.php$ { fastcgi_pass 127.0.0.1:9001; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_buffer_size 500k; fastcgi_buffers 4 1000k; fastcgi_busy_buffers_size 1000k; #fastcgi_pass php_backend; #unix:/var/run/php/php5.6-fpm.sock; fastcgi_index index.php; include fastcgi_params; #fastcgi_split_path_info ^(.+\.php)(.*)$; #增加 #fastcgi_param PATH_INFO $fastcgi_path_info; #增加 }
2023年07月28日
178 阅读
0 评论
0 点赞
2023-07-15
electron下载失败npm ERR! code 1
npm安装electron时,卡在出现以下问题:npm ERR! code 1 npm ERR! path E:\node-project\genshin-wish-export-main\node_modules\electron npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node install.js npm ERR! RequestError: read ECONNRESET npm ERR! at ClientRequest.<anonymous> (E:\node-project\genshin-wish-export-main\node_modules\got\source\request-as-event-emitter.js:178:14) npm ERR! at Object.onceWrapper (node:events:628:26) npm ERR! at ClientRequest.emit (node:events:525:35) npm ERR! at origin.emit (E:\node-project\genshin-wish-export-main\node_modules\@szmarczak\http-timer\source\index.js:37:11) npm ERR! at TLSSocket.socketErrorListener (node:_http_client:502:9) npm ERR! at TLSSocket.emit (node:events:513:28) npm ERR! at emitErrorNT (node:internal/streams/destroy:151:8) npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:116:3) npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:82:21) npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Ezra\AppData\Local\npm-cache\_logs\2023-07-15T04_54_11_729Z-debug-0.log因为electron的安装并不依赖本地npm中registry所配置的镜像,需要增加名称为electron_mirror的镜像源,修改~/.npmrc,添加electron_mirror=https://npm.taobao.org/mirrors/electron/即可。使用命令 npm config edit 即可打开文件
2023年07月15日
661 阅读
0 评论
3 点赞
1
2
3
...
13