摘要:        
php加密解密示例,代码如下:';echo '解密:'.encrypt($token, 'D', 'jbxue');/********************************************函数名称:encrypt函数作用:加密解密字符串使用方法:加密 :encrypt('str','E','qingdou');解密 :encrypt('被加密过的字符串','D','qingdou');参数说明:$string :需要加密解密的    阅读全文
        
            posted @ 2014-02-17 06:50
un123
阅读(2753)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
php实现的aes加密类,代码中有使用方法。bit = $bit;$this->key = $key;$this->iv = $iv;$this->mode = $mode;switch($this->bit) {case 192:$this->cipher = MCRYPT_RIJNDAEL_192; break;case 256:$this->cipher = MCRYPT_RIJNDAEL_256; break;default: $this->cipher = MCRYPT_RIJNDAEL_128;} // www.jbxue.comswitc    阅读全文
        
            posted @ 2014-02-17 06:49
un123
阅读(2505)
评论(0)
推荐(0)
        
        
 
                    
                     
                    
                 
                    
                 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号