$username="cf_journey";
$md5_username=md5($username);

解决方案 »

  1.   

    因为md5是不可以逆向得到加密原码的,所以如果你需要加密内容,到另外一个地方的话要解密得到原来的内容的话MD5不是一个很好的选择。建议使用可以逆向的加密方法
      

  2.   

    请yorgo告知我可以逆向的加密算法,谢谢。
      

  3.   

    md5是美国军方提供给我们用的加密手段。
    只能用!而无法知道他的加密方法!
    这样也就是:PHP里提供md5(),而没有其反函数。
    各位有什么想法吗?
      

  4.   

    to laosan md5主要用于数字签名的加密的。也就是将你的文件用md5一下将结果给接收方。
    然后将你的文件发给接收方,接受方也md5一下,然后比较结果是不是相同,相同就说明你发过来的文件是真实的,是没有经过改变的,签名有效。
      

  5.   

    加密方法有DES和RAS,IDEA等很多种方法。
    mcrypt函数库有相应的加密算法。
    md5不能解密的,因为是hash的
      

  6.   

    mcrypt库里面有分组加密和公钥加密。具体用法看PHP4的中文手册
    我就不再罗说了。
      

  7.   

    请问哪儿有详细介绍md5的资料吗?告诉我地址,或者请给我发信。[email protected]
      

  8.   

    http://www.vckbase.com/sourcecode/algorithms/MD5.ZIP
    源代码,好像对你没什么用
    http://www.vckbase.com/sourcecode/algorithms/des.zip
    DES的
    http://www.vckbase.com/sourcecode/algorithms/mars.zip
    IBM的MARS
    http://www.vckbase.com/sourcecode/algorithms/idea.zip
    IDEA的
      

  9.   

    我还有DES的解密算法,小容站点上有的下,可惜不是太标准
      

  10.   

    http://www.aspfree.com/authors/robert/resource/md5.zip
    Enclosed in this distribution are four projects:        MD5DLLTest: Visual basic project which runs the MD5 test suite against a 
                        MD5 DLL (see below).        VbMD5: A Visual Basic native MD5 message digest class based on the 
                  RSA reference implementation.        md5DLL: A 'C' project which generates a simple Win32 DLL with
                    the MD5 message digest routines using the RSA reference
                    implementation.        MD5Java: A Java implementation of the MD5 message digest algorithm based
                    on the RSA reference implmentation.
    Let me know if this has any use!Robert M. Hubley
    [email protected]