string mcrypt_cfb(string cipher,string key,string data,int mode[, string $iv] )
该函数有4个参数,第一个cipher表示对数据加密的算法,第二个key是为算法提供的键(密钥),第三个data是被加密的信息,最后一个mode详细说明了数据是被加密还是被解密

解决方案 »

  1.   

    不知道你想在OSI的哪一层加密?
    普通的通信加密SSL就可以了。
      

  2.   

    广告做得好假http://quercus.caucho.com/Quercus is Caucho Technology's 100% Java implementation of PHP 5 released under the Open Source GPL license.
     Quercus comes with many PHP modules and extensions like PDF, PDO, MySQL, and JSON. Quercus allows for tight integration of Java services with PHP scripts, so using PHP with JMS or Grails is a quick and painless endeavor.
      

  3.   

    不好意思,回错贴了-_-#奉上我的 一个简单基于密匙的加解密类
    http://blog.csdn.net/SysTem128/archive/2008/04/17/2301108.aspx
      

  4.   

    楼上的方法不错Mark~~
    如果你要实现底层的加密用openSSL