亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? form1.cs

?? C#編寫的帶控件圖象加密解密功能 主要是encoding和decoding二函數
?? CS
字號:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Collections;

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

       

       

        private void decode_Click(object sender, EventArgs e)
        {
            string address_pic = "\\My Documents\\My Pictures\\c.tif";
            string codes_pic = "dffdfggfgfgfd";
            encoding(codes_pic, address_pic);
        }

        private void encode_Click(object sender, EventArgs e)
        {
            string address_pic = "\\My Documents\\My Pictures\\c.tif";
            string codes_pic = "dffdfggfgfgfd";
            encoding(codes_pic, address_pic);
            

        }

        private void open_a_pic_Click(object sender, EventArgs e)
        {
             string address = "\\My Documents\\My Pictures\\1.jpg";
            //textBox1.Text = picName;
         //   encoding("good", "\\My Documents\\My Pictures\\2.jpg");
            FileStream picFile = new FileStream(address, FileMode.Open);
            pictureBox1.Image = new Bitmap(picFile);
            textBox1.Text = picFile.Length.ToString();
           
            
        }
        private void  encoding(string codes,string address)
        {
            // ref parameters are the codes and address where target picture is restored
            // by calling this function,the old picture will be replaced by the encoded one.

            FileStream picFile = new FileStream(address , FileMode.Open);
            //pictureBox1.Image = new Bitmap(picFile);
            textBox1.Text = picFile.Length.ToString();
            long size_of_pic = picFile.Length;
            // begin encoding:
            FileStream myfile=new FileStream("\\My Documents\\My Pictures\\temp_coded.jjpg",FileMode.CreateNew ) ;
            int size_of_codes = codes.Length;
            StringReader codereader = new StringReader(codes);
            char  [] cod=new char  [codes .Length ];
            byte  [] array  = new byte [codes .Length ];
            byte[]  temp = new byte[codes.Length];
            codereader.Read(cod, 0, codes.Length);
            int temp1 = 0;
            

            int i=0;
            int   l;
            byte j=0;
            
            for (i = 0; i <size_of_pic/codes.Length   ; i++)
            {

              //  picFile.Read(array, i, size_of_codes);

                l= picFile.Read (array ,0,codes .Length);
                for (j = 0; j < l; j++)
                {
                    //Convert.ToChar(array[j]);
                    temp1 = array[j] ^ cod[j];
                    temp[j] = Convert.ToByte(temp1);
                   
                }

                myfile.Write(temp , 0, codes.Length);

                
            }
            int residues;
            residues = (int)(size_of_pic % codes.Length);
          //  textBox2.Text = "";
           // textBox2.Text = residues.ToString();
            char[] cod1 = new char[residues];
            byte[] array1 = new byte[residues];
            byte[] temp2 = new byte[residues];

            if (residues != 0)
            {
                StringReader codereader2 = new StringReader(codes);
                codereader2.Read(cod1, 0, residues);
                l = picFile.Read(array1, 0, residues);
                for (j = 0; j < residues ; j++)
                {
                    //Convert.ToChar(array[j]);
                    temp1 = array1[j] ^ cod1[j];
                    temp2[j] = Convert.ToByte(temp1);

                }

                myfile.Write(temp2, 0, residues);
            }
            
            
            picFile.Close();
            File.Delete(address);

            myfile.Close();
            File.Move("\\My Documents\\My Pictures\\temp_coded.jjpg", address);

                  

        }
        private void decoding(string codes, string address )
        {
            // ref parameters are the codes and address where target picture is restored
            // by calling this function,the encoded picture will be replaced by the decoded one.
            // ref parameters are the codes and address where target picture is restored
            // by calling this function,the old picture will be replaced by the encoded one.

            FileStream picFile = new FileStream(address, FileMode.Open);
            //pictureBox1.Image = new Bitmap(picFile);
            //  textBox1.Text = picFile.Length.ToString();
            long size_of_pic = picFile.Length;
            // begin encoding:
            FileStream myfile = new FileStream("\\My Documents\\My Pictures\\temp_decoded.jjpg", FileMode.CreateNew);
            int size_of_codes = codes.Length;
            StringReader codereader = new StringReader(codes);
            char[] cod = new char[codes.Length];
            byte[] array = new byte[codes.Length];
            byte[] temp = new byte[codes.Length];
            codereader.Read(cod, 0, codes.Length);
            int temp1 = 0;


            int i = 0;
            int l;
            byte j = 0;
            for (i = 0; i <size_of_pic / codes.Length ; i++)
            {

                //  picFile.Read(array, i, size_of_codes);

             l=   picFile.Read(array, 0, codes.Length);
                for (j = 0; j < l; j++)
                {
                    //Convert.ToChar(array[j]);
                    temp1 = array[j] ^ cod[j];
                    temp[j] = Convert.ToByte(temp1);

                }

                myfile.Write(temp, 0, codes.Length);




            }
            int residues;
            residues = (int)(size_of_pic % codes.Length);
          //  textBox2.Text = "";
          //  textBox2.Text = residues.ToString();
            char[] cod1 = new char[residues];
            byte[] array1 = new byte[residues];
            byte[] temp2 = new byte[residues];


            if (residues != 0)
            {
                StringReader codereader2 = new StringReader(codes);
                codereader2.Read(cod1, 0, residues);

                l = picFile.Read(array1, 0, residues);
                for (j = 0; j < residues; j++)
                {
                    //Convert.ToChar(array[j]);
                    temp1 = array1[j] ^ cod1[j];
                    temp2[j] = Convert.ToByte(temp1);

                }

                myfile.Write(temp2, 0, residues);
            }
            
            
 
            picFile.Close();
            File.Delete(address);

            myfile.Close();
            File.Move("\\My Documents\\My Pictures\\temp_decoded.jpg", address);
            


           
        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av电影免费观看| 色综合网站在线| 99久久久精品| 欧美高清视频www夜色资源网| 久久精品一区蜜桃臀影院| 亚洲黄色在线视频| 国产精品系列在线观看| 欧美夫妻性生活| 中文字幕一区在线观看视频| 极品少妇xxxx精品少妇| 欧美日韩一卡二卡三卡 | 国产黄色精品视频| 欧美精品色一区二区三区| 自拍偷拍亚洲激情| 国产精品88888| 精品国产百合女同互慰| 日韩精品91亚洲二区在线观看| 精品久久久三级丝袜| 亚洲自拍偷拍欧美| 99精品视频免费在线观看| 国产偷国产偷精品高清尤物| 麻豆一区二区99久久久久| 欧美日韩日日摸| 亚洲尤物在线视频观看| 色国产精品一区在线观看| 欧美国产一区二区在线观看| 国产一区二区三区在线观看免费视频| 欧美日韩国产a| 亚洲成人一区在线| 欧美猛男男办公室激情| 亚洲电影你懂得| 在线精品国精品国产尤物884a| 国产精品剧情在线亚洲| 懂色av中文字幕一区二区三区| 2020国产成人综合网| 美腿丝袜亚洲三区| 91精品国产综合久久久久| 亚洲国产一区二区在线播放| 欧美日韩高清在线| 亚洲国产日韩a在线播放性色| 在线亚洲免费视频| 日韩理论片中文av| 92精品国产成人观看免费| 国产精品久久久久久久久久免费看| 丁香六月综合激情| 欧美激情中文不卡| 成人自拍视频在线| 亚洲人成精品久久久久久 | caoporm超碰国产精品| 国产精品天天看| 99久久精品免费看| 亚洲精选视频在线| 欧美日韩国产片| 午夜影院久久久| 精品少妇一区二区| 国产成人免费在线视频| 欧美一区二区三区在线视频| 国产麻豆精品视频| 亚洲国产成人午夜在线一区| 91美女视频网站| 图片区小说区区亚洲影院| 欧美大片日本大片免费观看| 国产电影精品久久禁18| 国产精品一级黄| 亚洲女子a中天字幕| 欧美日韩国产一二三| 国内精品在线播放| 亚洲人成人一区二区在线观看| 欧美日韩免费一区二区三区视频 | 亚洲人成网站色在线观看| 欧美久久久久久蜜桃| 麻豆高清免费国产一区| 国产精品国产a| 欧美一卡2卡3卡4卡| 成人高清av在线| 美女脱光内衣内裤视频久久网站 | 午夜精品123| 国产女主播一区| 欧美日韩国产一区二区三区地区| 久草在线在线精品观看| 亚洲精品免费电影| 久久综合九色综合久久久精品综合 | 日韩三级在线观看| 国产成人综合网| 男男成人高潮片免费网站| 国产精品久久久久三级| 日韩久久精品一区| 欧美日韩一区视频| 成人免费视频caoporn| 日韩中文字幕亚洲一区二区va在线 | 高清在线观看日韩| 看国产成人h片视频| 亚洲男同1069视频| 国产精品欧美综合在线| 欧美va亚洲va国产综合| 欧美日本韩国一区二区三区视频| 成人丝袜高跟foot| 国产精品资源在线看| 日本欧美加勒比视频| 亚洲 欧美综合在线网络| 亚洲欧洲成人自拍| 国产欧美日韩不卡免费| 26uuu国产电影一区二区| 正在播放亚洲一区| 欧美午夜不卡视频| 91国内精品野花午夜精品| 成人av在线播放网址| 韩国成人精品a∨在线观看| 婷婷国产在线综合| 亚洲午夜精品网| 亚洲成人av资源| 亚洲成人综合在线| 午夜精品久久久久影视| 亚洲黄色免费电影| 一区二区三区四区视频精品免费| 国产精品人成在线观看免费| 国产欧美日韩麻豆91| 国产无遮挡一区二区三区毛片日本| 日韩免费在线观看| www激情久久| 国产欧美精品一区二区色综合朱莉 | 欧美在线小视频| 欧美亚洲免费在线一区| 欧美午夜电影网| 国产精品久久久久久福利一牛影视 | 欧美裸体bbwbbwbbw| 91精品国产综合久久久久| 欧美一区二区三区四区高清| 日韩亚洲欧美高清| 国产午夜精品一区二区| 1024精品合集| 亚洲国产视频直播| 日本va欧美va精品| 国产在线播精品第三| 大陆成人av片| 欧美色偷偷大香| 精品欧美乱码久久久久久| 国产三级一区二区三区| 亚洲视频狠狠干| 日韩精品91亚洲二区在线观看| 国产在线视频一区二区三区| 成人动漫中文字幕| 欧美人成免费网站| 久久久夜色精品亚洲| 亚洲视频香蕉人妖| 日韩精品免费视频人成| 黑人精品欧美一区二区蜜桃 | 久久66热偷产精品| 成人深夜在线观看| 欧美丰满少妇xxxbbb| 欧美激情一区在线| 亚洲小说欧美激情另类| 激情综合网天天干| 欧美在线三级电影| 国产亚洲精品bt天堂精选| 亚洲在线视频免费观看| 美女mm1313爽爽久久久蜜臀| 91丨porny丨户外露出| 91精品国产91热久久久做人人 | 精品国产一区二区在线观看| 国产精品久久久久7777按摩| 亚洲va韩国va欧美va| 国产麻豆精品在线| 欧美性猛片aaaaaaa做受| ww久久中文字幕| 亚洲电影一级片| 波多野结衣亚洲一区| 91精品国产乱码久久蜜臀| 国产精品你懂的| 麻豆精品国产传媒mv男同| 色综合久久综合| 欧美激情在线一区二区| 人人爽香蕉精品| 91福利视频在线| 国产精品毛片大码女人| 久久成人免费网站| 欧美色视频在线| 中文字幕在线不卡一区| 国产一区二区三区精品欧美日韩一区二区三区| 99久久er热在这里只有精品15| 精品成人一区二区三区四区| 国产精品美女久久久久av爽李琼| 欧美在线观看你懂的| 欧美视频中文字幕| 香蕉久久夜色精品国产使用方法| 欧美人狂配大交3d怪物一区 | 91精品国产欧美一区二区| 看电视剧不卡顿的网站| 一区二区三区日韩欧美| 国产一区二区导航在线播放| 日韩理论片在线| 亚洲国产视频一区二区| 亚洲国产成人av| 成人av集中营| 欧美日韩一区不卡| 欧美一区二区三区四区久久| 26uuu成人网一区二区三区| 亚洲国产精品99久久久久久久久 | 午夜欧美在线一二页| 久久久久成人黄色影片|