• 大小: 0.17M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 加密  解密  RSA  

资源简介

AES_RSA加密解密

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
using System.IO;
using System.Net;
namespace Tencent
{
    class Cryptography
    {
        public static UInt32 HostToNetworkOrder(UInt32 inval)
        {
            UInt32 outval = 0;
            for (int i = 0; i < 4; i++)
                outval = (outval << 8) + ((inval >> (i * 8)) & 255);
            return outval;
        }

        public static Int32 HostToNetworkOrder(Int32 inval)
        {
            Int32 outval = 0;
            for (int i = 0; i < 4; i++)
                outval = (outval << 8) + ((inval >> (i * 8)) & 255);
            return outval;
        }
        /// 
        /// 解密方法
        /// 

       

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-06-16 10:45  AES_Demo\
     目录           0  2016-06-14 22:31  AES_Demo\AES_Demo\
     文件        2646  2016-06-14 22:31  AES_Demo\AES_Demo\AES_Demo.csproj
     文件        8581  2016-06-14 22:30  AES_Demo\AES_Demo\Cryptography.cs
     目录           0  2016-06-14 22:29  AES_Demo\AES_Demo\Properties\
     文件        1336  2016-06-14 22:29  AES_Demo\AES_Demo\Properties\AssemblyInfo.cs
     文件         364  2016-06-14 22:30  AES_Demo\AES_Demo\Readme.txt
     文件        4852  2016-06-14 22:38  AES_Demo\AES_Demo\Sample.cs
     文件        8739  2016-06-14 22:30  AES_Demo\AES_Demo\WXBizMsgCrypt.cs
     目录           0  2016-06-14 22:31  AES_Demo\AES_Demo\bin\
     目录           0  2016-06-15 08:51  AES_Demo\AES_Demo\bin\Debug\
     文件       14336  2016-06-14 22:38  AES_Demo\AES_Demo\bin\Debug\AES_Demo.exe
     文件       30208  2016-06-14 22:38  AES_Demo\AES_Demo\bin\Debug\AES_Demo.pdb
     文件       22472  2016-06-15 08:57  AES_Demo\AES_Demo\bin\Debug\AES_Demo.vshost.exe
     文件         490  2015-10-30 15:19  AES_Demo\AES_Demo\bin\Debug\AES_Demo.vshost.exe.manifest
     目录           0  2016-06-16 11:51  AES_Demo\AES_Demo\bin\Release\
     目录           0  2016-06-14 22:29  AES_Demo\AES_Demo\obj\
     目录           0  2016-06-14 22:38  AES_Demo\AES_Demo\obj\Debug\
     文件         323  2016-06-15 08:57  AES_Demo\AES_Demo\obj\Debug\AES_Demo.csproj.FileListAbsolute.txt
     文件        1753  2016-06-14 22:31  AES_Demo\AES_Demo\obj\Debug\AES_Demo.csprojResolveAssemblyReference.cache
     文件       14336  2016-06-14 22:38  AES_Demo\AES_Demo\obj\Debug\AES_Demo.exe
     文件       30208  2016-06-14 22:38  AES_Demo\AES_Demo\obj\Debug\AES_Demo.pdb
     文件        6440  2016-06-14 22:31  AES_Demo\AES_Demo\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2016-06-16 11:51  AES_Demo\AES_Demo\obj\Debug\TempPE\
     文件        1900  2016-06-16 10:58  AES_Demo\AES_Demo.sln
     文件       72704  2016-06-16 11:41  AES_Demo\AES_Demo.v11.suo
     目录           0  2016-06-16 11:06  AES_Demo\AES_RSA\
     文件        3770  2016-06-16 11:06  AES_Demo\AES_RSA\AES_RSA.csproj
     文件       14027  2016-06-16 11:06  AES_Demo\AES_RSA\Cryptography.cs
     文件        9620  2016-06-16 11:41  AES_Demo\AES_RSA\Form1.Designer.cs
     文件        3135  2016-06-16 11:41  AES_Demo\AES_RSA\Form1.cs
............此处省略46个文件信息

评论

共有 条评论