c#微信通讯的Web平台
c#微信通讯的Web平台,实现微信相互发送信息,同步微信和数据库关注人员信息,微信公共号上传文档,编辑新闻,编辑文档资料
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 373248 2012-12-01 23:22 微信消息加密YQTYWWebCommoninDebugNewtonsoft.Json.dll
文件 15872 2015-11-26 14:46 微信消息加密YQTYWWebCommoninDebugWebCommon.dll
文件 28160 2015-11-26 14:46 微信消息加密YQTYWWebCommoninDebugWebCommon.pdb
文件 12288 2015-11-26 14:46 微信消息加密YQTYWWebCommoninDebugWebDAL.dll
文件 28160 2015-11-26 14:46 微信消息加密YQTYWWebCommoninDebugWebDAL.pdb
文件 18432 2015-11-26 14:46 微信消息加密YQTYWWebCommoninDebugWebDB.dll
文件 46592 2015-11-26 14:46 微信消息加密YQTYWWebCommoninDebugWebDB.pdb
文件 14336 2015-11-26 14:46 微信消息加密YQTYWWebCommoninDebugWebModel.dll
文件 7680 2015-11-26 14:46 微信消息加密YQTYWWebCommoninDebugWebModel.pdb
文件 3517 2015-11-17 09:39 微信消息加密YQTYWWebCommonDESEncrypt.cs
文件 1329 2015-11-25 11:44 微信消息加密YQTYWWebCommonJsonData.cs
文件 6045 2015-11-26 14:46 微信消息加密YQTYWWebCommonobjDebugDesignTimeResolveAssemblyReferencesInput.cache
文件 707 2015-11-26 14:46 微信消息加密YQTYWWebCommonobjDebugWebCommon.csproj.FileListAbsolute.txt
文件 21576 2015-11-26 14:46 微信消息加密YQTYWWebCommonobjDebugWebCommon.csprojResolveAssemblyReference.cache
文件 15872 2015-11-26 14:46 微信消息加密YQTYWWebCommonobjDebugWebCommon.dll
文件 28160 2015-11-26 14:46 微信消息加密YQTYWWebCommonobjDebugWebCommon.pdb
文件 1350 2015-11-10 11:40 微信消息加密YQTYWWebCommonPropertiesAssemblyInfo.cs
文件 3221 2015-11-25 11:40 微信消息加密YQTYWWebCommonWebCommon.csproj
文件 8416 2015-11-16 09:52 微信消息加密YQTYWWebCommonWxMenuJson.cs
文件 3056 2015-11-26 11:31 微信消息加密YQTYWWebCommonWxUserJson.cs
文件 373248 2012-12-01 23:22 微信消息加密YQTYWWebDALinDebugNewtonsoft.Json.dll
文件 12288 2015-11-26 14:46 微信消息加密YQTYWWebDALinDebugWebDAL.dll
文件 28160 2015-11-26 14:46 微信消息加密YQTYWWebDALinDebugWebDAL.pdb
文件 18432 2015-11-26 14:46 微信消息加密YQTYWWebDALinDebugWebDB.dll
文件 46592 2015-11-26 14:46 微信消息加密YQTYWWebDALinDebugWebDB.pdb
文件 14336 2015-11-26 14:46 微信消息加密YQTYWWebDALinDebugWebModel.dll
文件 7680 2015-11-26 14:46 微信消息加密YQTYWWebDALinDebugWebModel.pdb
文件 2492 2015-11-25 08:20 微信消息加密YQTYWWebDALMenusDAL.cs
文件 6005 2015-11-26 11:25 微信消息加密YQTYWWebDALMessageDAL.cs
文件 884 2015-11-25 16:55 微信消息加密YQTYWWebDALMobileFileDAL.cs
............此处省略504个文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
namespace WebCommon
{
///
/// DES加密/解密类。
///
public static class DESEncrypt
{
#region ========加密========
///
/// 加密
///
///
///
public static string Encrypt(string Text)
{
return Encrypt(Text “pdptyunwei“);
}
///
/// 加密数据
///
///
///
///
public static string Encrypt(string Text string sKey)
{
DESCryptoServiceProvider des = new DESCryptoServiceProvider();
byte[] inputByteArray;
inputByteArray = Encoding.Default.GetBytes(Text);
des.Key = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sKey “md5“).Substring(0 8));
des.IV = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sKey “md5“).Substring(0 8));
System.IO.MemoryStream ms = new System.IO.MemoryStream();
CryptoStream cs = new CryptoStream(ms des.CreateEncryptor() CryptoStreamMode.Write);
cs.Write(inputByteArray 0 inputByteArray.Length);
cs.FlushFinalBlock();
StringBuilder ret = new StringBuilder();
foreach (byte b in ms.ToArray())
{
ret.AppendFormat(“{0:X2}“ b);
}
return ret.ToString();
}
#endregion
#region ========解密========
///
/// 解密
///
///
///
public static string Decrypt(string Text)
{
return Decrypt(Text “pdptyunwei“);
}
///
/// 解密数据
///
///
///
///
public static string Decrypt(string Text string sKey)
{
DESCryptoServiceProvider des = new DESCryptoServiceProvider();
int len;
len = Text.Length / 2;
byte[] inputByteArray = new byte[len];
int x i;
for (x = 0; x < len; x++)
{
i = Convert.ToInt32(Text.Substring(x * 2 2) 16);
inputByteArray[x] = (byte)i;
}
des.Key = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sKey “md5“).Substring(0 8));
des.IV = ASCIIEncoding.ASCII.GetBytes(System.Web.Securi
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 373248 2012-12-01 23:22 微信消息加密YQTYWWebCommoninDebugNewtonsoft.Json.dll
文件 15872 2015-11-26 14:46 微信消息加密YQTYWWebCommoninDebugWebCommon.dll
文件 28160 2015-11-26 14:46 微信消息加密YQTYWWebCommoninDebugWebCommon.pdb
文件 12288 2015-11-26 14:46 微信消息加密YQTYWWebCommoninDebugWebDAL.dll
文件 28160 2015-11-26 14:46 微信消息加密YQTYWWebCommoninDebugWebDAL.pdb
文件 18432 2015-11-26 14:46 微信消息加密YQTYWWebCommoninDebugWebDB.dll
文件 46592 2015-11-26 14:46 微信消息加密YQTYWWebCommoninDebugWebDB.pdb
文件 14336 2015-11-26 14:46 微信消息加密YQTYWWebCommoninDebugWebModel.dll
文件 7680 2015-11-26 14:46 微信消息加密YQTYWWebCommoninDebugWebModel.pdb
文件 3517 2015-11-17 09:39 微信消息加密YQTYWWebCommonDESEncrypt.cs
文件 1329 2015-11-25 11:44 微信消息加密YQTYWWebCommonJsonData.cs
文件 6045 2015-11-26 14:46 微信消息加密YQTYWWebCommonobjDebugDesignTimeResolveAssemblyReferencesInput.cache
文件 707 2015-11-26 14:46 微信消息加密YQTYWWebCommonobjDebugWebCommon.csproj.FileListAbsolute.txt
文件 21576 2015-11-26 14:46 微信消息加密YQTYWWebCommonobjDebugWebCommon.csprojResolveAssemblyReference.cache
文件 15872 2015-11-26 14:46 微信消息加密YQTYWWebCommonobjDebugWebCommon.dll
文件 28160 2015-11-26 14:46 微信消息加密YQTYWWebCommonobjDebugWebCommon.pdb
文件 1350 2015-11-10 11:40 微信消息加密YQTYWWebCommonPropertiesAssemblyInfo.cs
文件 3221 2015-11-25 11:40 微信消息加密YQTYWWebCommonWebCommon.csproj
文件 8416 2015-11-16 09:52 微信消息加密YQTYWWebCommonWxMenuJson.cs
文件 3056 2015-11-26 11:31 微信消息加密YQTYWWebCommonWxUserJson.cs
文件 373248 2012-12-01 23:22 微信消息加密YQTYWWebDALinDebugNewtonsoft.Json.dll
文件 12288 2015-11-26 14:46 微信消息加密YQTYWWebDALinDebugWebDAL.dll
文件 28160 2015-11-26 14:46 微信消息加密YQTYWWebDALinDebugWebDAL.pdb
文件 18432 2015-11-26 14:46 微信消息加密YQTYWWebDALinDebugWebDB.dll
文件 46592 2015-11-26 14:46 微信消息加密YQTYWWebDALinDebugWebDB.pdb
文件 14336 2015-11-26 14:46 微信消息加密YQTYWWebDALinDebugWebModel.dll
文件 7680 2015-11-26 14:46 微信消息加密YQTYWWebDALinDebugWebModel.pdb
文件 2492 2015-11-25 08:20 微信消息加密YQTYWWebDALMenusDAL.cs
文件 6005 2015-11-26 11:25 微信消息加密YQTYWWebDALMessageDAL.cs
文件 884 2015-11-25 16:55 微信消息加密YQTYWWebDALMobileFileDAL.cs
............此处省略504个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)