• 大小: 0.06M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-23
  • 语言: C#
  • 标签: AE  代码  测试  文件  

资源简介

本实例经过多次测试,完全严重没有问题。采用最常用的加密方式,AEC加密,有加密以及解密文件,简单修改即可使用,其加密主要是通过密钥加密方式,修改不同的密钥实现文件的加密,解密,密钥失败会有提醒

注意英文备注 有一个值不能修改!!

资源截图

代码片段和文件信息

using AES_EnDecryptor.basement;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace AES_EnDecryptor
{
    class Program
    {
        //This Value Cannot Be Modified !!!!
        static int _BlockSize = 16;
        static int _SkipSize { get; set; }

        static void Main(string[] args)
        {
            //Encrypt 2% of The Source File
            //If you wanna use different skip size to different files  you can append a special sign to each encrypted filename .
            //Thus  you can judge the skipsize length by analysising the special sign
            _SkipSize = _BlockSize * 49;
            Console_Init();
        }

        static void Console_Init()
        {
            Console.Clear();
            Console.WriteLine(“1=======Encrypt Files“);
            Console.WriteLine(“2=======Decrypt Files“);
            var keypress = Console.ReadLine();
            while (keypress != “

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\
     文件        1012  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor.sln
     目录           0  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\
     文件        2597  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\AES EnDecryptor.csproj
     目录           0  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\basement\
     文件       18372  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\basement\AES.cs
     文件        2976  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\basement\Security.cs
     文件        9881  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\Program.cs
     目录           0  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\Properties\
     文件        1356  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\Properties\AssemblyInfo.cs
     目录           0  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\bin\
     目录           0  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\bin\Debug\
     文件       16896  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\bin\Debug\AES EnDecryptor.exe
     文件       36352  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\bin\Debug\AES EnDecryptor.pdb
     文件       22688  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\bin\Debug\AES EnDecryptor.vshost.exe
     目录           0  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\obj\
     目录           0  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\obj\Debug\
     文件         448  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\obj\Debug\AES EnDecryptor.csproj.FileListAbsolute.txt
     文件        1754  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\obj\Debug\AES EnDecryptor.csprojResolveAssemblyReference.cache
     文件       16896  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\obj\Debug\AES EnDecryptor.exe
     文件       36352  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\obj\Debug\AES EnDecryptor.pdb
     文件        6471  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\AES EnDecryptor\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         198  2018-01-02 02:18  AES-File-EnDecryptor-Writed-by-CSharp-master\README.md

评论

共有 条评论