資源簡介
本實例經過多次測試,完全嚴重沒有問題。采用最常用的加密方式,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\ba
?????文件???????18372??2018-01-02?02:18??AES-File-EnDecryptor-Writed-by-CSharp-master\AES?EnDecryptor\ba
?????文件????????2976??2018-01-02?02:18??AES-File-EnDecryptor-Writed-by-CSharp-master\AES?EnDecryptor\ba
?????文件????????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
- 上一篇:查看當前netfamework版本
- 下一篇:通過POI預覽文件(上傳空間demo)
評論
共有 條評論