freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

畢業(yè)設(shè)計(jì)-基于des加密算法的word加密插件的實(shí)現(xiàn)—論文-免費(fèi)閱讀

2025-01-02 19:14 上一頁面

下一頁面
  

【正文】 目前這種狀況已經(jīng)發(fā)生變化。 Microsoft 的許多技術(shù),如 ActiveX, DirectX 以及 OLE等都是基于 COM 而建立起來的。 COM 組件簡介 組件 COM,是微軟公司為了計(jì)算機(jī)工業(yè)的軟件生產(chǎn)更加符合人類的行為方式開發(fā)的一種新的軟件開發(fā)技術(shù)。對這個(gè)數(shù)做如下變換: bit goes to bit bit goes to bit 16 1 2 17 第 5 頁 共 20 頁 7 2 8 18 20 3 24 19 21 4 14 20 29 5 32 21 12 6 27 22 28 7 3 23 17 8 9 24 1 9 19 25 15 10 13 26 23 11 30 27 26 12 6 28 5 13 22 29 18 14 11 30 31 15 4 31 10 16 25 32 把得到的結(jié)果與 L[i1]作異或運(yùn)算。從 j=1 開始。 對 64 位數(shù)據(jù)塊的處 理: 把數(shù)據(jù)分成 64 位的數(shù)據(jù)塊,不夠 64 位的以適當(dāng)?shù)姆绞教钛a(bǔ)。將該操作重復(fù) 16 次,就實(shí)現(xiàn)了。我們可以通過一個(gè)插件對文檔內(nèi)容加 第 2 頁 共 20 頁 解密,這樣使 用起來更加簡單方便。 COM 對象是建立在二進(jìn)制可執(zhí)行代碼級的基礎(chǔ)上,而 C++等語言中的對象是建立在源代碼級基礎(chǔ)上的,因此 COM對象是語言無關(guān)的。同時(shí) DES 也是一個(gè)對稱算法:加密和解密用的是同一個(gè)算法。 本論文采用 VB編寫 Word插件, 通過采用 Windows下的動態(tài)鏈接庫技術(shù) ( DLL) ,在 VC中 把 DES算法 封裝起來 做 成 DLL模塊 供 VB調(diào)用,實(shí)現(xiàn)了開發(fā) 加密插件 時(shí)對 加密函數(shù)的調(diào)用 , 提高了加密算法的效率 。 ( 4)學(xué)校可允許學(xué)位論文被查閱或借閱。經(jīng)過本設(shè)計(jì)的開發(fā),我積累了不少程序開發(fā)的知識,為以后程序開發(fā)奠定了基礎(chǔ)。加密后 Word內(nèi)容顯示 DES 的密文,對其解密時(shí),需要使用相同的 Word 加密插件才能正確的進(jìn)行解密,這樣 保證重要信息不被泄漏,增加了 Word 的安全性。取 Word 當(dāng)前活動文檔 Set doc = Dim para As Dim temp As String * 1024 ‘分配 1024 個(gè)字節(jié)緩沖區(qū) Set para = Encode , temp ‘文檔加密 = temp 39。 2) 在其它機(jī)器安裝: 將 DLL拷貝到 system32目錄(其它目錄也可以) 運(yùn)行: regsvr32 DLL文件全路徑( SYSTEM32目錄不用路徑) 3) 刪除 運(yùn)行: regsvr32 u DLL文件全路徑( SYSTEM32目錄不用路徑) Word 代碼 的編寫 (1) API 函數(shù)聲明 ‘使用 API 文本瀏覽器貼入的 WinAPI 函數(shù)聲明 Private Declare Function OpenClipboard Lib user32 ( ByVal hwnd As Long) As Long ‘聲明打開剪貼板函數(shù) Private Declare Function CloseClipboard Lib user32 () As Long ‘聲明關(guān)閉剪貼板函數(shù) Private Declare Function EmptyClipboard Lib user32 () As Long ‘聲明清除剪貼板函數(shù) Private Declare Function SetClipboardData Lib user32 ( ByVal wFormat As Long, ByVal hMem As Long) As Long ‘聲明剪貼板賦值函數(shù) Private Declare Sub Encode Lib DLL ( ByVal sInput As String, ByVal sOutput As String) ’加密函數(shù)的聲明 Private Declare Sub Decode Lib DLL ( ByVal sInput As String, ByVal sOutput As String) ‘解密函數(shù)的聲明 Private Const CF_BITMAP = 2 Private mAppWord As Private mBar As ‘使用 WithEvents 聲明,可以定義 mBtn1,mBtn2 的事件響應(yīng)程序 Private WithEvents mBtn1 As Private WithEvents mBtn2 As ( 2)添加工具欄加密解密按鈕 Private Sub AddinInstance_OnConnection( ByVal Application As Object, ByVal ConnectMode As , ByVal AddInInst As Object, custom() As Variant) Set mAppWord = Application Set mBar = ( My Toolbar for VB, , , True) Set mBtn1 = ( ) ’添加 mBtn按鈕的事件 Set mBtn2 = ( ) ’添加 mBtn2按鈕的事件 SetButtonStyle mBtn1, 203, 加密 , Encode, msoButtonIconAndCaption ‘定義加密按鈕 SetButtonStyle mBtn2, 203, 解密 , Decode, msoButtonIconAndCaption ‘定義解密按鈕 End Sub ( 3)定義按鈕風(fēng)格 Private Sub SetButtonStyle( btn As , idPic As Long, sCaption As String, sToolTip As String, btnStyle As MsoButtonStyle) ‘設(shè)置按鍵圖標(biāo) ‘這里需要使用 WinAPI函數(shù),見最上面的函數(shù)聲明(使用開始菜單中 ”Microsoft Visual Basic 第 15 頁 共 20 頁 API 文本瀏覽器 ”選擇和粘貼 Dim bmp As IPictureDisp Set bmp = LoadResPicture( 203, vbResBitmap) 39。因此刪除它們。這里選 Word。// 循環(huán)左移 static void ByteToBit( bool *Out, const char *In, int bits) 。 static void DES( char Out[8], char In[8], const PSubKey pSubKey, bool Type) 。 //定義 1024 字節(jié)的緩沖變量 memset( buf, 0x00, sizeof( buf)) 。插件一般在宿主應(yīng)用程序上添加控制項(xiàng),如菜單、工具按鍵等。 聚合是包含的一種變化形式。這種繼承指的是一個(gè)類繼 承其基類的類型或接口。此功能可由 COM 庫函數(shù) CoCreateInstance 來實(shí)現(xiàn)。當(dāng)客戶使用完某個(gè)接口時(shí),組件的引用計(jì)數(shù)值將減 1,當(dāng)引用計(jì)數(shù)值為 0 時(shí),組件可以將自己從內(nèi)存中刪除。 在用 QueryInterface 將組件抽象成由多個(gè)相互獨(dú)立的接口構(gòu)成的集合后,還需要管理組件的生命期。 iid,void **ppv) =0。 對于客戶來說,一個(gè)組件就是一個(gè)接口集。在需要對應(yīng)用程序進(jìn)行修改或改進(jìn)時(shí),只需要將構(gòu)成此應(yīng)用程序的組件中的某個(gè)用新的版本替換掉即可。這種做法的好處是可以隨著技術(shù)的不斷發(fā)展而用新的組件取代以有的組件。 COM 所含的概念并不止是在 Microsoft Windows 操作系統(tǒng)下才有效。由此帶來的好處是多方面的:可以將系統(tǒng)中的組件用新的替換掉,以便隨時(shí)進(jìn)行系統(tǒng)的升級和定制;可以在多個(gè)應(yīng)用系統(tǒng)中重復(fù)利用同一個(gè)組 件;可以方便的將應(yīng)用系統(tǒng)擴(kuò)展到網(wǎng)絡(luò)環(huán)境下; COM 與語言,平臺無關(guān)的特性使所有的程序員均可充分發(fā)揮自己的才智與專長編寫組件模塊;等等。 把 R[i1]的值賦給 L[i]。 取出 B[j]的第 2 至第 5 位串聯(lián)起來成一個(gè) 4 位數(shù),記為 n。 第 4 頁 共 20 頁 58 50 42 34 26 18 10 2 60 52 44 36 28 20 12 4 62 54 46 38 30 22 14 6 64 56 48 40 32 24 16 8 57 49 41 33 25 17 9 1 59 51 43 35 27 19 11 3 61 53 45 37 29 21 13 5 63 55 47 39 31 23 15 7 將變換后的數(shù)據(jù)塊等分成前后兩部分,前 32 位記為 L[0],后 32 位記為 R[0]。 DES 加密和解密唯一的不同是密匙的次序相反。然后進(jìn)行 16 輪完全相同的運(yùn)算,這些運(yùn)算被稱為函數(shù) f,在運(yùn)算過程中數(shù)據(jù)與密匙結(jié)合。 在 Microsoft Windows 系統(tǒng)平臺上, COM 技術(shù)被應(yīng)用于系統(tǒng)的各個(gè)層次,從底層的 COM 對象管理到上層的應(yīng)用程序交互都用到了 COM 標(biāo)準(zhǔn)。其中有極少量的數(shù)被認(rèn)為是弱密匙,但是很容易避開他們。 關(guān)鍵詞 : 加密插件 ; 信息安全 ; COM 組件; 動態(tài)鏈接庫 The Implementation of a Word Adding for Encryption Based on DES Encryption Algorithm Abstract With the development of the society, we are entering the information times. The traditional method of the product, the management and our life style are changed by the information technology and the information industries. The information has bee the important strategic resources for the society development. Now, the Office documents have already bee an essential part in people’s daily work, followed with this, the question of information security bees critical day by day at the same time. How to prevent the content in the Word documents from being known or modified by the unauthorized third party has bee an urgent issue. If we can add an encryption plugin into the word toolbar, which is able to encrypt all or part of the Word document, the information leaking could be prevented efficiently. The Word adding introduced in this paper is developed with VB, which calls the encryption and decryption functions in a Dynamic Link Library (DLL) that is developed with VC to enhance the efficiency of the encryption algorithm. By using this adding, users can encrypt or decrypt word document locally without leaving the Word. Key words: Encryption plugin unit。 畢業(yè)設(shè)計(jì) ( 論文 ) 基于 DES 加密算法的 WORD 加密插件的實(shí)現(xiàn) 論文作者姓名: 張 杰 申請學(xué)位專業(yè): 網(wǎng)絡(luò)工程 申請學(xué)位類別: 工學(xué) 學(xué)士 指導(dǎo)教師姓名(職稱): 王 燚 ( 副 教授) 論文提交日期: 2021 年 07月 25日 基于 DES 加密算法的 WORD 加密插件的實(shí)現(xiàn) 摘 要 隨著社會發(fā)展,社會進(jìn)入信息時(shí)代。 Information security。所以保密性依賴于密鑰。 選題意義 Word 是當(dāng)今非常流行的一款字處理軟件,是裝機(jī)的必備程序。經(jīng)過 16輪后,左,右半部分合在一起經(jīng)過一個(gè)末置換 。如果各輪加密密匙分別是K1,K2,K3?.K16 那么解密密
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1