五、發明說明(1) 發明領域 本發明係關於一種檔案加解密的方法與系統 一種可以不受檔案格式限制的加解密的方法與系統。別疋 發明背景 電腦已逐漸成為現代人工作、學習上不可 具。在許多環境下,為了充份發揮電滕的效益往往= 共同使用-部個人電腦。此時,如何保護所有該個V. Description of the Invention (1) Field of the Invention The present invention relates to a method and system for file encryption and decryption, and a method and system for encryption and decryption that are not restricted by file format. Don't 背景 Background of the Invention Computers have gradually become indispensable for modern people to work and study. In many environments, in order to get the most out of the benefits of telephony = common use-personal computers. How to protect all of this at this time
使用者的個人檔案1整地保護到每一個使用纟的個 私,即成為一重要的課題。 WIt is an important issue to protect the personal files of users to the privacy of each user. W
此外,在區域網路蓬勃發展的今天,即使一 使用情2下,仍有許多重要的檔案需要進一步地。例 如,主管階級的機密檔案、重要的客戶資料、人 J 財務薪津資料等,雖已受到網路權限設定的保護, 一步地保護個別檔案仍屬必要。 一 經由個別檔案的加解密是解決以上課題的一種基本方 法。加,密的作法是經由—加密的軟體程式,將欲保護的 ===成;般人無法閲讀的亂碼;被授權閱讀 該案者欲閱讀時》則利用μ ^ I? ^⑴扪用興上述加密程式相應的解密程 式,將上述該加密文件的亂碼還原成本來的内容。「美國 國家標準加密法」即為一種被廣為應用的加解密法。 就目前被普遍使用的「視窗作業系統」(wind〇ws)而 言,將個別檔案加解密的作法還可以進一步分為三類。第 一類是利用應用程式本身所提供的加解密功能,例如微軟 1240178 五、發明說明(2) (Microsoft)的文書編輯軟趙w 。 這些應用程式雖然提供 式异表軟體Excel # 受限於這些特定的檔案格解密功能’但此-功能同時也 遍應用在各種不同格式上例如.d〇C與.Xls ’並不能普 卜…此外,另一例如.隱、._,以及. 個別檔案的加解密,而:法 '在於使用者必須逐-進行 密。 而無法一次將多個檔案同時進行加解 第二類則是利用裒M L & 作業。這種作法可以;=行播案的加解密 棺案時,必須首先開:加==,,、覽或編輯-加密 後才能將該加密檀案進行解 ;二; 或編輯後’也必須再進行一次加密動::成該稽案的劉覽 將該= = = 備特“錄… 感的播案來完成該播案的加解密 移入/移出敏 個播案進行加解密,但與上述第可以同時將多 的檔案格式仍有一定限制。 頰作法類似’被加解密 發明目的 以不受檔案楂_式的限 本發明的一個目的在讓使用者可 制,對任何檔案進行加解密作業。 完成多 本發明的另—個目的在讓使用者可以-次同時 1^1 第5頁 1240178In addition, in today's booming local area network, even in the second use case, there are still many important files that need to be furthered. For example, the confidential files of the executive class, important customer data, and personal financial information of employees, etc., have been protected by the setting of network permissions, and it is still necessary to further protect individual files. First, the encryption and decryption of individual files is a basic method to solve the above problems. The method of encryption and encryption is to use an encrypted software program to convert ==== to be protected; garbled characters that cannot be read by ordinary people; when authorised to read the case wants to read, use μ ^ I? ^ ⑴ 扪 用 兴The corresponding decryption program of the encryption program restores the garbled characters of the encrypted file to the original content. "American National Standard Encryption Law" is a widely used encryption and decryption method. With regard to the commonly used "windows operating system" (windows), the method of encrypting and decrypting individual files can be further divided into three categories. The first is to use the encryption and decryption functions provided by the application itself. For example, Microsoft 1240178 V. Inventor (2) (Microsoft), a document editor, soft w. Although these applications provide different spreadsheet software Excel #, they are limited to these specific file decryption functions ', but this-function is also applied to various different formats at the same time, such as .d〇C and .Xls'. , Another such as .Hidden, ._, and. Encryption and decryption of individual files, and the law is that the user must be encrypted one by one. It is not possible to add multiple files at the same time. The second type is to use 裒 M L & operation. This method can be used; In the case of encryption and decryption of the broadcast case, you must first open: add == ,, browse, or edit-encrypt before you can solve the encrypted case; two; or after editing, you must Carry out an encryption operation: Liu Lan, who has completed the auditing, will move the === to prepare a special recording of the sensation to complete the encryption / decryption of this broadcast. Multiple file formats can still be limited at the same time. The cheek method is similar to 'encrypted and decrypted'. The purpose of the invention is not to be restricted by the file format. An object of the present invention is to allow users to make and encrypt any file. Another purpose of accomplishing the present invention is to allow the user to-time simultaneous 1 ^ 1 page 5 1240178
個檔案的加解密作業。 ,墙#用 々再個目的在提供一種常駐式的加解密程式 ? 者可以無須輸入密碼直接開啟加密檑案。 【發明概述] 、本發明即為一種透明化加解密的方法與系統,以 上述诸項目的。 ^ 本發明首先利用Hook進入一應用程式的程序,並尋找 該應用程式的程序進入點。接著,本發明置換該程序進入 點為自叮的程序進入點。在執行該自訂的程序後,本發明 再呼叫4述應用程式的程序進入點,以繼續執行該應用程 式。 “ 自訂的程序視使用者的指令而有不同的流程。當使用 者開啟一檔案時,自訂的程序首先檢查該檔案是否為一加 密檔案,然後讀取一唯一對應一使用者的密碼。在該密碼 正確無誤的情況下,本發明即將該加密檔案解密,並記錄 该加岔棺案路徑及名稱。當使用者關閉一曾加密的檔案時 ,本發明亦可自動將該加密擋案重新加密。 【發明詳述】 在W i n d 〇 w s程式設計領域發展初期,W i n d 〇 w s程式員所 能使用的程式設計工具唯有API (ApplicationEncryption and decryption of files. , Wall # is intended to provide a resident encryption and decryption program. Users can directly open the encryption scheme without entering a password. [Summary of the Invention] The present invention is a method and system for transparent encryption and decryption based on the above items. ^ The present invention first uses a hook to enter a program of an application, and finds a program entry point of the application. Then, the present invention replaces the program entry point with a program entry point of self-ding. After executing the customized program, the present invention calls the program entry point of the application program to continue executing the application program. "The custom process has different procedures depending on the user's instructions. When a user opens a file, the custom process first checks whether the file is an encrypted file and then reads a password that uniquely corresponds to a user. When the password is correct, the present invention decrypts the encrypted file and records the path and name of the Jiacha coffin case. When the user closes an encrypted file, the present invention can also automatically re-enable the encrypted file Encryption [Detailed description of the invention] In the early stage of the development of W ind ows programming, the only programming tool available to W ind ows programmers was API (Application
Programming Interface)函數,這些API 函數是Windows 提供給應用程式與作業系統的聯接,他們猶如『積木塊』 一樣,可以搭建出各種介面豐富,功能靈活的應用程式。Programming Interface) functions. These API functions are provided by Windows to connect applications with the operating system. They are like "building blocks", and they can build various interface-rich and flexible applications.
第6頁 2003. 03.13. 006Page 6 2003. 03.13. 006