摘要: 本算法的基础:给定字符A B,A^B=C,C^B=A,即两次异或运算可得到原字符。实现代码如下: /** * @desc加密 * @param string $str 待加密字符串 * @param string $key 密钥 * @return string */ function encryp 阅读全文
posted @ 2018-02-02 17:01 cnsr 阅读(4427) 评论(0) 推荐(1) 编辑
摘要: function createRoundImg($imgpath) { $ext = pathinfo($imgpath); $src_img = null; switch ($ext['extension']) { case 'jpg': $src_img = imagecreatefromjpeg($imgpath); ... 阅读全文
posted @ 2018-02-02 14:38 cnsr 阅读(1320) 评论(0) 推荐(0) 编辑