随笔分类 -  加密与解密

摘要:对称加密 : 加密解密密钥一致 非对称加密 : 加密为公钥,公钥对外公开, 解密为私钥, 私钥不公开, 两者不一致. SSL : 全称为 Security Socket Layer, 安全套接层, 原理 1. 客户端请求服务器, 服务器发回来非对称加密的公钥. 2. 客户端用这个公钥进行非对称加密, 阅读全文
posted @ 2017-03-28 14:26 wahgon 阅读(315) 评论(0) 推荐(0)
摘要:$check = self::USERNAME.$condition['userphone'].$condition['showid'].$condition['seats'].self::PASSWORD; #生成验证的key $checkcode = strtoupper(md5($check)); $seats = str_replace(',','%2C',$condition['sea... 阅读全文
posted @ 2017-03-10 16:29 wahgon 阅读(401) 评论(0) 推荐(0)