加密和解密都适用于c#和php [英] encryption and decryption that work for both c# and php

查看:141
本文介绍了加密和解密都适用于c#和php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有任何加密和解密算法适用于php和c#?我需要一个示例代码

解决方案

我想你正在寻找的是DES3编码,它可以很容易地在C#和PHP之间工作。查看这两个链接的代码示例。



C#示例:



a href =http://www.csharper.net/blog/library_encrypt_and_decrypt_methods_using_tripledes_and_md5.aspx =nofollow noreferrer> http://www.csharper.net/blog/library_encrypt_and_decrypt_methods_using_tripledes_and_md5.aspx



PHP示例



http://us3.php.net/manual/en/mcrypt.examples.php


Is there any encryption and decryption Algorithms that work for both php and c#? Please I need a sample codes

解决方案

I think what you are looking for is DES3 encoding which can work fairly easily between C# and PHP. Check out these two links for code examples.

C# Example:

http://www.csharper.net/blog/library_encrypt_and_decrypt_methods_using_tripledes_and_md5.aspx

PHP Example

http://us3.php.net/manual/en/mcrypt.examples.php

这篇关于加密和解密都适用于c#和php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆