1. 首页
  2. 数据库
  3. 其它
  4. 一段php加密解密的代码

一段php加密解密的代码

上传者: 2021-01-31 08:15:31上传 PDF文件 22.72KB 热度 13次
<?php $key = “This is supposed to be a secret key !!!”; function keyED($txt,$encrypt_key) { $encrypt_key = md5($encrypt_key); $ctr=0; $tmp = “”; for ($i=0;$i<strlen($txt);$i++) { if ($ctr==strlen($encrypt_key)) $ctr=0; $tmp.= substr($txt,$i,1) ^ substr($encrypt_key,$ctr,1);
下载地址
用户评论