【正文】
s loving our neighbor better than ourselves, and I like it, said Meg, as they set out their presents while their mother was upstairs collecting clot。 ever since she was born. That was a very happy breakfast, though they didn39。m so glad you came before we began! May I go and help carry the things to the poor little children? asked Beth eagerly. I shall take the cream and the muffings, added Amy, heroically giving up the article she most liked. Meg was already covering the buckwheats, and piling the bread into one big plate. I thought you39。m so glad, for mine is the handsom est now. Another bang of the street door sent the basket under the sofa, and the girls to the table, eager for breakfast. Merry Christmas, Marmee! Many of them! Thank you for our books. We read some, and mean to every day, they all cried in chorus. Me rry Christmas, little daughters! I39。m truly trying not to be selfish any more. As she spoke, Amy showed the handsome flask w hich replaced the cheap one, and looked so earnest and humble in her little effort to fet herself that Meg hugged her on the spot, and Jo pronounced her `a trump39。t laugh at me, Jo! I didn39。s all right, dear, and a very pretty idea, quite sensible too, for no one can ever mistake now. It will please her very much, I know, said Meg, with a frown for Jo and a smile for Beth. There39。t want anyone to use these but Marmee, said Be th。t that right? I thought it was better to do it so, because Meg39。 on them instead of `M. March39。t they? Hannah washed and ironed them for me, and I marked them all myself, said Beth, looking proudly at the somewhat uneven letters which had cost her such labor. Bless the child! She39。 除非另有科研合同和其他法律文書的制約 ,本論文的科研成果屬于成都信息工程學院。 ( 4)學??稍试S學位論文被查閱或借閱。 ( 2)學校可以采用影印、縮印或其他復制方式保存學位論文。除非另有說明,本文的工作是原始性工作。在此向他表示我最衷心的感謝! 在論文完成過程中,本人還得到了 我們系 其他老師和許多同學的熱心幫助,本人向他們表示深深的謝意! 最后向在百忙之中評審本文的各位專 家、老師表示衷心的感謝! 作者簡介: 姓 名:李朝陽 性別:男 出生年月: 19831220 民族:漢 Email: 聲 明 本論文的工作是 2021 年 2 月至 2021 年 6 月在成都信息工程學院網(wǎng)絡(luò)工程系完成的。盡管如此,通過對這個軟件的設(shè)計,我還是學習到很多 的東西,這對于我本人來說,是一個相當大的進步。如該軟件只能對單機用戶加密,沒有涉及網(wǎng)絡(luò)加密范疇。對用戶在日常工作中保證文檔數(shù)據(jù)安全具有一定的實用價值。 結(jié) 論 在本次開發(fā)中,我們以 C為開發(fā)語言,在 .Net 環(huán)境中開發(fā)了一個文檔加密器。 2未選擇輸出文件名和路徑 save_address =“” 。 6未選取加密文件保存路徑文件名 save_address = “” 。 4密碼 長度未大于 6位, 長度一致內(nèi)容一致 如 password1=cuit, password2=cuit。 2 兩 次 密 碼 長度 不 一 致 , 密 碼 長 度 大 于 6 ,如password1==2021031306。數(shù)據(jù)解密完成該軟件也有相應的提示入圖所示。 圖 6 解密成功圖 示 解密過程是:用文件流方式解密文件,對整個文件數(shù)據(jù)讀取。調(diào)用 DES 加密類進行加密,加密結(jié)果寫入新建的文件 中。表明你在密碼的設(shè)定兩次都是符合長度大于 6內(nèi)容還一致的,也選擇了加密文件和保存文件路徑,并且路徑是合法的。這里我兩次密碼設(shè)定為1234567。加密時可以對文件點擊瀏覽按紐進行選取,也可以直接在對話框中直接輸 入。如果我們不通過解密想查看其 .mef 文件中的內(nèi)容,用其他方式打開該文件只能獲得一些毫無價值的亂碼信息。只有滿足選取了加密文件、設(shè)定了輸出文件名和密碼且符合密碼長度大于 6 和兩次密碼一致,這些的限制條件才能夠進行文件的加密。分為 2個大的模塊,一是文件加密的GROUPBOX1,二是文件解密 GROUPBOX2。//密碼不正確的警告 } } } 圖 3加密初始界面 這里是加密器開發(fā)完成時的,未進行文件加密和解密工作時的圖形示范。 (文件解密已經(jīng)完成 , 提示 , , )。 ()。 } ()。 (bin, 0, 100)。//創(chuàng)建 DES對象 CryptoStream desStream = new CryptoStream(fout, (desKey , desIV) , )。//每次寫入的大小 byte[] bin = new byte[100]。 long totlen = 。 (0)。 } try { FileStream fin = new FileStream(inName , , )。 } if ( == 6) { desKey = new byte[]{(byte)keyString[0] , (byte)keyString[1], (byte)keyString[2], (byte)keyString[3] , (byte)keyString[4] ,(byte)keyString[5], 0x07, 0x08}。 string keyString = 。//獲得要保存的文件名 byte[] desIV = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }。 } 為 解密控件 按鈕添加 事件處理程序, 這段程序的功能是將選定的文件解密,并保存到選定的文件中去,代碼如下: private void decode_Click(object sender, EventArgs e) { string inName = 。 ()。 } //關(guān)閉流 ()。 (bin, 0, len)。 CryptoStream encStream = new CryptoStream(fout , (desKey, desIV), )。 //代表要加密文件總的大小 long totlen = 。 //代表已加密的流的大小 int plete = 0。 (0)。 } //創(chuàng)建文件流分別指向輸入和輸出文件 FileStream fin = new FileStream(inName , , )。 } if ( == 6) DES 加密 文檔 加 密 文檔 解密 選擇加密對話框 選擇保存對話框 設(shè)置密碼 確認密碼 選擇加密文件 輸出文件名選擇 輸入密碼 { desKey = new byte[]{(byte)keyString[0] ,(byte)keyString[1], (byte)keyString[2], (byte)keyString[3] , (byte)keyString[4] ,(byte)keyString[5], 0x07, 0x08}。 //根據(jù)密碼算出密鑰 string keyString = 。 byte[] desIV = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }。 程序結(jié)構(gòu)圖 圖 2 程序結(jié)構(gòu)圖 為 加密控件 按鈕添加事件處理程序,這段程序的功能是將選定的文件加密 , 獲得待加密文件名 、 獲得保存文件名 、 創(chuàng)建文件流分別指向輸入和輸出文件 , 根據(jù)密碼算出密鑰并保存到選定的文件中去,代碼如下 : private void encode_Click(object sender, EventArgs e) {//獲得待加密文件名 string inName = 。局部文本加密替換功能也是一個研究的方面。 加密功能待完成網(wǎng)絡(luò)方面數(shù)據(jù)流加密 節(jié)點加密和節(jié)點解密。還附帶了用戶自己設(shè)定文件密碼,密碼驗證和各個操作的正確性的提示。 目前 加密算法 已被廣泛的應用,隨著信息化和數(shù)字化社會的發(fā)展,隨著計算機 Inter 的普及,密碼學必將在國家安全、經(jīng)濟交流、網(wǎng)絡(luò)安全及人民生活等方面發(fā)揮更大作用 。 避開 DES 算法應用誤區(qū)的具體操作:在 DES 密鑰 Key 的使用、管理及密鑰更換的過程中,應 絕 對避開 DES 算法的應用誤區(qū),即絕對不能把 Key的第 8, 16,24, ? , 64位作為有效數(shù)據(jù)位 來對 Key進行管理,這一點,對應用 DES 加密的用戶來說要高度重視。因此 ,在實際應用中,應避開使用第 8, 16, 24, ? ,64位作為 DES 密鑰的有效數(shù)據(jù)位,才能保 證 DES算法安全可靠。當然,隨著科學技術(shù)的發(fā)展,當出現(xiàn)超高速計算機后,可以考慮把 DES 密 鑰的長度再增長一些,以此來達到更高的保密程度。 DES算法的應用誤區(qū)及避開方法 DES 算法具有極高的安全性,到目前為止,除了用窮舉搜索法對 DES算法進行攻擊外,還沒有發(fā)現(xiàn)更有效的辦法。 (8字節(jié)的倍數(shù) ) 功能 : 生成解密密鑰 , 把待解密