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

资源简介

C# winform DES加密解密

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Security.Cryptography;
using System.Web;

namespace WindowsFormsApplication8
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
            richTextBox1.Text = Encrypt(richTextBox1.Text “zhe“);
        }
        private void button2_Click(object sender EventArgs e)
        {
            richTextBox1.Text = Decrypt(richTextBox1.Text “zhe“);
        }

        public static string Encrypt(string strText string sKey)
        {
            D

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       9728  2014-09-23 15:49  WindowsFormsApplication8\WindowsFormsApplication8\bin\Debug\WindowsFormsApplication8.exe

     文件      26112  2014-09-23 15:49  WindowsFormsApplication8\WindowsFormsApplication8\bin\Debug\WindowsFormsApplication8.pdb

     文件      14328  2014-09-23 15:50  WindowsFormsApplication8\WindowsFormsApplication8\bin\Debug\WindowsFormsApplication8.vshost.exe

     文件        490  2009-06-11 05:14  WindowsFormsApplication8\WindowsFormsApplication8\bin\Debug\WindowsFormsApplication8.vshost.exe.manifest

     文件       2883  2014-09-23 15:49  WindowsFormsApplication8\WindowsFormsApplication8\Form1.cs

     文件       3216  2014-09-23 15:49  WindowsFormsApplication8\WindowsFormsApplication8\Form1.Designer.cs

     文件       5814  2014-09-23 15:49  WindowsFormsApplication8\WindowsFormsApplication8\Form1.resx

     文件       1211  2014-09-23 15:50  WindowsFormsApplication8\WindowsFormsApplication8\obj\Debug\WindowsFormsApplication8.csproj.FileListAbsolute.txt

     文件        847  2014-09-23 15:49  WindowsFormsApplication8\WindowsFormsApplication8\obj\Debug\WindowsFormsApplication8.csproj.GenerateResource.Cache

     文件       9728  2014-09-23 15:49  WindowsFormsApplication8\WindowsFormsApplication8\obj\Debug\WindowsFormsApplication8.exe

     文件        180  2014-09-23 15:49  WindowsFormsApplication8\WindowsFormsApplication8\obj\Debug\WindowsFormsApplication8.Form1.resources

     文件      26112  2014-09-23 15:49  WindowsFormsApplication8\WindowsFormsApplication8\obj\Debug\WindowsFormsApplication8.pdb

     文件        180  2014-09-22 15:52  WindowsFormsApplication8\WindowsFormsApplication8\obj\Debug\WindowsFormsApplication8.Properties.Resources.resources

     文件        485  2014-09-22 15:46  WindowsFormsApplication8\WindowsFormsApplication8\Program.cs

     文件       1380  2014-09-22 15:46  WindowsFormsApplication8\WindowsFormsApplication8\Properties\AssemblyInfo.cs

     文件       2898  2014-09-22 15:46  WindowsFormsApplication8\WindowsFormsApplication8\Properties\Resources.Designer.cs

     文件       5612  2014-09-22 15:46  WindowsFormsApplication8\WindowsFormsApplication8\Properties\Resources.resx

     文件       1109  2014-09-22 15:46  WindowsFormsApplication8\WindowsFormsApplication8\Properties\Settings.Designer.cs

     文件        249  2014-09-22 15:46  WindowsFormsApplication8\WindowsFormsApplication8\Properties\Settings.settings

     文件       3420  2014-09-22 15:52  WindowsFormsApplication8\WindowsFormsApplication8\WindowsFormsApplication8.csproj

     文件        962  2014-09-22 15:46  WindowsFormsApplication8\WindowsFormsApplication8.sln

    ..A..H.     14336  2014-09-22 17:53  WindowsFormsApplication8\WindowsFormsApplication8.suo

     目录          0  2014-09-22 15:46  WindowsFormsApplication8\WindowsFormsApplication8\obj\Debug\TempPE

     目录          0  2014-09-22 15:52  WindowsFormsApplication8\WindowsFormsApplication8\bin\Debug

     目录          0  2014-09-23 15:49  WindowsFormsApplication8\WindowsFormsApplication8\obj\Debug

     目录          0  2014-09-22 15:46  WindowsFormsApplication8\WindowsFormsApplication8\bin

     目录          0  2014-09-22 15:46  WindowsFormsApplication8\WindowsFormsApplication8\obj

     目录          0  2014-09-22 15:46  WindowsFormsApplication8\WindowsFormsApplication8\Properties

     目录          0  2014-09-23 15:49  WindowsFormsApplication8\WindowsFormsApplication8

     目录          0  2014-09-22 15:46  WindowsFormsApplication8

............此处省略3个文件信息

评论

共有 条评论