• 大小: 0.02M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 验证  签名  s  a  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Security.Cryptography;
using System.IO;
using System.Text;
using System.Globalization;
using System.xml.Linq;
using System.Collections.Generic;

namespace EncriptSample
{
    /// 
    /// 加密、解密
    /// 

    class Encrypter
    {
        //DES默认密钥向量
        private static byte[] DES_IV = { 0x12 0x34 0x56 0x78 0x90 0xAB 0xCD 0xEF };
        //AES默认密钥向量   
        public static readonly byte[] AES_IV = { 0x12 0x34 0x56 0x78 0x90 0xAB 0xCD 0xEF 0x12 0x34 0x56 0x78 0x90 0xAB 0xCD 0xEF };

        #region MD5
        /// 
        /// MD5加密为32字符长度的16进制字符串
        /// 

        /// 
        /// 
        public static string EncryptByMD5(stri

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-01-26 15:30  EncriptSample\
     文件        2553  2014-01-26 15:30  EncriptSample\EncriptSample.csproj
     文件       21140  2014-01-27 11:13  EncriptSample\Encrypter.cs
     文件        3484  2014-01-27 11:16  EncriptSample\Program.cs
     目录           0  2014-01-16 14:15  EncriptSample\Properties\
     文件        1383  2014-01-27 09:01  EncriptSample\Properties\AssemblyInfo.cs
     文件         144  2014-01-26 15:30  EncriptSample\app.config
     目录           0  2014-01-16 14:15  EncriptSample\bin\
     目录           0  2014-01-27 14:11  EncriptSample\bin\Debug\
     文件       11600  2014-01-27 14:11  EncriptSample\bin\Debug\EncriptSample.vshost.exe
     文件         144  2014-01-26 15:30  EncriptSample\bin\Debug\EncriptSample.vshost.exe.config
     文件         490  2010-03-17 22:39  EncriptSample\bin\Debug\EncriptSample.vshost.exe.manifest
     目录           0  2014-01-16 14:15  EncriptSample\obj\
     目录           0  2014-01-16 14:15  EncriptSample\obj\x86\
     目录           0  2014-01-27 14:11  EncriptSample\obj\x86\Debug\
     文件        5728  2014-01-27 11:17  EncriptSample\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2014-01-27 14:11  EncriptSample\obj\x86\Debug\TempPE\

评论

共有 条评论