TW201411393A - Encrypting system and method thereof - Google Patents

Encrypting system and method thereof Download PDF

Info

Publication number
TW201411393A
TW201411393A TW101132931A TW101132931A TW201411393A TW 201411393 A TW201411393 A TW 201411393A TW 101132931 A TW101132931 A TW 101132931A TW 101132931 A TW101132931 A TW 101132931A TW 201411393 A TW201411393 A TW 201411393A
Authority
TW
Taiwan
Prior art keywords
character
offset
string
characters
random number
Prior art date
Application number
TW101132931A
Other languages
Chinese (zh)
Inventor
Yu-Yi Fu
feng-jiao Liu
Tsung-Chi Lin
Shye-Chorng Kuo
Original Assignee
Univ Nan Kai Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Univ Nan Kai Technology filed Critical Univ Nan Kai Technology
Priority to TW101132931A priority Critical patent/TW201411393A/en
Publication of TW201411393A publication Critical patent/TW201411393A/en

Links

Abstract

An encrypting system and a method thereof are provided. Said system and said method pre-establish a random number interval, fetch offsets randomly to establish the converting relationship of alphabet and symbol characters, and then convert at least one original string in an original document into at least one encrypted string according to a character converting table. By completing above procedure, said system and said method can therefore transform the text content to enhance the secrecy of documents.

Description

亂數偏移之加密系統及其方法 Random number offset encryption system and method thereof

一種亂數偏移之加密系統及其方法,特別係指一種根據亂數偏移的方式產生字元轉換關係之亂數偏移之加密系統及其方法。 An encryption system and method for random number offset, in particular, an encryption system and a method for generating a random number offset of a character conversion relationship according to a random number offset manner.

隨著各家軟體供應商開發的文件編輯程式的功能越來越多元化,相較於以往的文件編輯程式,現今的文件編輯程式已經可以支援各種電子文件色彩的排版變更、修訂記錄、語言轉換…等操作,可以說是大大地方便了使用者的文件編輯和存取,因此,以往需要使用大量實體紙張或書本來記錄文件的方式,也已經逐漸為電子文件所取代。 With the increasingly diversified functions of file editing programs developed by various software vendors, today's file editing programs can support typographic changes, revision records, and language conversion of various electronic file colors. ... and other operations can be said to greatly facilitate the user's file editing and access. Therefore, the way in which a large amount of physical paper or books were used to record files has been gradually replaced by electronic files.

在日常生活中,私人電子文件一般都會保存在自己習慣看到的地方,例如:個人資料夾或是隱藏資料夾等,但當置放時間久了,使用者不常開啟時,有時甚至會遺忘文件的擺放位置究竟是在哪一個資料夾中,對於私人電子文件的保存和管理都造成了相當大的不便。 In daily life, private electronic files are usually stored in places that they are used to see, such as personal folders or hidden folders, but when they are placed for a long time, users may not open often, sometimes even In which folder the location of the forgotten file is placed, it is quite inconvenient for the preservation and management of the private electronic file.

實際上,重要的私人電子文件也可以置放在顯眼的位置,若是不希望輕易的被其他使用者看到文件內容,只需要變更文件內容使他人無法輕易讀懂文件內容,也可以同樣達到電子文件的保密效果,有鑑於此,實有要提出改進的技術手段來變更文件內容,使得置放在顯眼位置的私人電子文件仍然具有文件內容的保密效果。 In fact, important private electronic files can also be placed in a conspicuous position. If you don't want to be easily seen by other users, you only need to change the contents of the file so that others can't easily read the contents of the file. In view of the confidentiality effect of the document, it is necessary to propose an improved technical means to change the content of the document so that the private electronic file placed in a conspicuous position still has the confidentiality effect of the document content.

有鑒於先前技術存在的問題,本發明遂揭露一種亂數偏移之加密系統及其方法,其中:本發明所揭露之亂數偏移之加密系統,適用於對僅包含英文字元及符號字元的待亂數偏移之加密文件進行亂數偏移之加密,其中作業系統內建的每一英文字元及每一符號字元均分別對應唯一且不重複的字元編碼,所述系統包含:演算模組,預先設置有一亂數數值區間,用以根據字元編碼的先後順序逐一讀取英文字元及符號字元,其中每讀取一英文字元或一符號字元時,演算模組自所述亂數數值區間擷取一數值作為偏移量,將英文字元或符號字元根據偏移量偏移字元編碼以取得唯一且不重複對應的轉換字元,並將英文字元或該符號字元所對應的轉換字元記錄於字元轉換表中;解析模組,用以讀取待亂數偏移之加密文件中的至少一原始字串;及轉換模組,用以根據字元轉換表將至少一原始字串的各原始字元轉換為對應的各轉換字元以形成至少一亂數偏移之加密字串。 In view of the problems in the prior art, the present invention discloses a random number offset encryption system and a method thereof, wherein: the random number offset encryption system disclosed in the present invention is applicable to a pair containing only English characters and symbol words. The encrypted file to be chaotic offset is encrypted by a random number offset, wherein each English character and each symbol character built in the operating system respectively correspond to a unique and non-repeating character encoding, the system The method comprises: a calculation module, which is pre-set with a random number interval for reading English characters and symbol characters one by one according to the order of character encoding, wherein each time an English character or a symbol character is read, the calculation The module extracts a value from the random number interval as an offset, and encodes the English character or the symbol character according to the offset offset character to obtain a unique and non-repeating corresponding conversion character, and The text element or the conversion character corresponding to the symbol character is recorded in the character conversion table; the parsing module is configured to read at least one original string in the encrypted file to be chaotically offset; and the conversion module, Used according to words The conversion table converts each original character string of the at least one original character for the conversion to form an encrypted string corresponding to the at least one random number offsets.

本發明所揭露之亂數偏移之加密方法,適用於對僅包含英文字元及符號字元的一待亂數偏移之加密文件進行亂數偏移之加密,其中作業系統內建的每一英文字元及每一符號字元均分別對應唯一且不重複的一字元編碼,所述方法包含下列步驟:預先設置一亂數數值區間;根據字元編碼的先後順序逐一讀取英文字元及符號字元,其中每讀取一英文字元或一符號字元時,執行下列步驟:自亂數數值區間擷取一數值作為偏移量;將英文字元或符號字元根據偏移量偏移字元編碼以取得唯一且不重複對應的轉換字元;及將英文字元或符號字元所對應的轉換字元記錄於字元轉 換表中;讀取待亂數偏移之加密文件中的至少一原始字串;及根據字元轉換表將至少一原始字串中的各原始字元轉換為對應的各轉換字元以形成至少一亂數偏移之加密字串。 The encryption method for the random number offset disclosed in the present invention is suitable for encrypting an encrypted file of an odd-numbered offset containing only English characters and symbol characters, wherein each operating system has built-in An English character and each symbol character respectively correspond to a unique and non-repeating one-character encoding, and the method comprises the following steps: presetting a random number interval; reading the English word one by one according to the sequence of character encoding a meta- and symbolic character, wherein each time an English character or a symbol character is read, the following steps are performed: a value is taken as an offset from the random number value interval; and the English character or symbol character is offset according to the offset The quantity offset character is encoded to obtain a unique and non-repeating corresponding conversion character; and the conversion character corresponding to the English character or the symbol character is recorded in the character conversion Converting a table; reading at least one original string in the encrypted file to be chaotic offset; and converting each original character in the at least one original string into a corresponding converted character according to the character conversion table to form At least one random number of encrypted strings.

本發明所揭露之系統與方法如上,與先前技術之間的差異在於本發明具有透過預先設置一亂數數值區間,隨機取偏移量建立作業系統內建的英文字元及符號字元的轉換關係,再根據字元轉換表中的字元對應關係將待亂數偏移之加密文件中的至少一原始字串轉換為至少一亂數偏移之加密字串的技術手段。 The system and method disclosed in the present invention are as above, and the difference from the prior art is that the present invention has the function of setting a random number interval in advance and randomly taking the offset to establish the conversion of English characters and symbol characters built into the operating system. The relationship, according to the character correspondence in the character conversion table, converts at least one original string in the encrypted file to be chaotically offset into a technical method of at least one random offset encrypted string.

透過上述的技術手段,本發明可以透過文件內容的變更顯示,達成提高文件內容保密性的技術功效。 Through the above technical means, the present invention can achieve the technical effect of improving the confidentiality of the file content through the display of the change of the file content.

以下將配合圖式及實施例來詳細說明本發明之實施方式,藉此對本發明如何應用技術手段來解決技術問題並達成技術功效的實現過程能充分理解並據以實施。 The embodiments of the present invention will be described in detail below with reference to the drawings and embodiments, so that the application of the technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented.

首先,請參考「第1圖」,為本發明亂數偏移之加密系統的方塊圖,將用以說明本發明各模組之間的運作。本發明所述之亂數偏移之加密系統適用於對僅包含英文字元及符號字元的待亂數偏移之加密文件進行亂數偏移之加密,其中每一英文字元及每一符號字元均分別對應唯一且不重複的字元編碼。 First, please refer to "FIG. 1", which is a block diagram of the encryption system of the random number offset of the present invention, which will be used to explain the operation between the modules of the present invention. The random number offset encryption system of the present invention is suitable for encrypting an encrypted file to be randomly offset containing only English characters and symbol characters, wherein each English character and each Symbol characters correspond to unique and non-repeating character encodings, respectively.

英文字元,指的是大寫及小寫的26個英文字母共52個英文字母的字元。符號字元,指的則是如:標點符號、希臘符號、數學符號、換行字元或其他非文字的字元。無論是英文字元或符號字元,其於作業系統中內建時便預設對應一個字元編碼,這個字元編碼對應於英文字元及符號字元的排列順序。 English characters refer to the uppercase and lowercase letters of 26 English letters with a total of 52 English letters. Symbol characters, such as punctuation, Greek symbols, mathematical symbols, newline characters or other non-text characters. Whether it is an English character or a symbol character, it is preset to correspond to a character encoding when it is built in the operating system. This character encoding corresponds to the order in which the English characters and symbol characters are arranged.

舉例來說,當英文字元“A”的字元編碼是“0001x”時,英文字元“B”的字元編碼為“0002x”,依此類推。然在此所舉例的字元編碼格式及數值僅用以說明字元編碼與英文字元的關係,並非用以限定本發明所採用的字元編碼格式,因此實際上所採用的字元編碼格式並不以此處所舉例者為限。 For example, when the character encoding of the English character "A" is "0001x", the character encoding of the English character "B" is encoded as "0002x", and so on. However, the character encoding format and numerical values exemplified herein are only used to describe the relationship between the character encoding and the English character, and are not intended to limit the character encoding format used in the present invention, so the character encoding format actually used is Not limited to the examples given here.

於本發明所述的待亂數偏移之加密文件,可以包含文字及內嵌多媒體連結,但本發明所述的亂數偏移之加密系統僅能針對待亂數偏移之加密文件中的英文字元及符號字元進行亂數偏移之加密。本發明所述的待亂數偏移之加密文件也可以是透過特殊編碼方式所轉換出的僅包含英文字元及符號字元的純文字文件,接著透過本發明的亂數偏移之加密系統對經特殊編碼方式所產生的待亂數偏移之加密文件再進行亂數偏移之加密。本發明於此雖不限定待亂數偏移之加密文件所包含的內容,但本發明的亂數偏移之加密系統將會對純英文字元及符號字元的部分進行亂數偏移之加密操作。 The encrypted file to be chaotic offset according to the present invention may include text and embedded multimedia links, but the encryption system of the random number offset according to the present invention can only be used in the encrypted file to be offset. English character and symbol characters are encrypted by random number offset. The encrypted file to be chaotic offset according to the present invention may also be a plain text file containing only English characters and symbol characters converted by a special encoding method, and then transmitted through the random number offset encryption system of the present invention. The encrypted file to be chaotic offset generated by the special coding mode is further encrypted by random number offset. The present invention does not limit the content of the encrypted file to be chaotic offset, but the random number offset encryption system of the present invention performs random number shifting on portions of pure English characters and symbol characters. Encryption operation.

於本發明所述的亂數偏移之加密系統其包含解析模組101、演算模組102及轉換模組103。 The encryption system of the random number offset according to the present invention includes an analysis module 101, a calculation module 102, and a conversion module 103.

解析模組101,用以讀取待亂數偏移之加密文件中的至少一原始字串。解析模組101讀取該待亂數偏移之加密文件中的原始字串前,可以先記錄符號字元在待亂數偏移之加密文件中的對應位置後再拆解出至少一原始字串,也可以不記錄符號字元的對應位置直接拆解出至少一原始字串,任何於本發明所屬技術領域中具通常知識者可透過前述兩種方式的其中一種分析出待亂數偏移之加密文件中的字串。當解析模組101採用的是先記錄符號字元 對應位置的方式時,解析模組101將會把符號字元及對應位置記錄在一個解密輔助文件中,而在解析模組101拆解出字串的過程中,每一個字串的數目也會依序被記錄在解密輔助文件中。 The parsing module 101 is configured to read at least one original string in the encrypted file to be chaotically offset. Before the parsing module 101 reads the original string in the encrypted file to be chaotically offset, the parsing function may first record the corresponding position of the symbol character in the encrypted file to be chaotically offset, and then disassemble at least one original word. The string may also directly disassemble at least one original string without recording the corresponding position of the symbol character. Anyone having ordinary knowledge in the technical field of the present invention may analyze the to-be-displaced offset through one of the foregoing two methods. The string in the encrypted file. When the parsing module 101 uses the symbol character first recorded When the position is corresponding, the parsing module 101 will record the symbol character and the corresponding position in a decryption auxiliary file, and in the process of disassembling the string by the parsing module 101, the number of each string will also be It is recorded in the decryption auxiliary file in order.

舉例來說,假設一待亂數偏移之加密文件的內容為“I will come back later.”時,總字元數為23(包含英文字元及符號字元)及一個終結字元,解析模組101若採取記錄符號字元對應位置的方式時,首先將會記錄符號字元的對應位置,例如:句點位於待亂數偏移之加密文件的最末位字元,並依序記錄亂數偏移之加密字串的字元數為1,4,4,4,5。需要說明的是,實際上記錄的形式本發明於此並未予以限定,任何於本發明所屬領域具通常知識者應可依據系統需求運用不同的資料結構或是機制設定對應的記錄形式。 For example, suppose that the content of an encrypted file to be chaotic offset is "I will come back later.", the total number of characters is 23 (including English characters and symbol characters) and a final character, parsing If the module 101 takes the manner of recording the corresponding position of the symbol character, the corresponding position of the symbol character will be recorded first, for example, the period is located at the last character of the encrypted file to be offset by random number, and the disorder is recorded in order. The number of characters in the encrypted string of the number offset is 1, 4, 4, 4, 5. It should be noted that the form of the record is not limited herein. Anyone having ordinary knowledge in the field to which the present invention pertains may use different data structures or mechanisms to set a corresponding record form according to system requirements.

演算模組102,負責建立字元轉換表,以供轉換模組103可以依據字元轉換表將待亂數偏移之加密文件中的至少一原始字串轉換為至少一亂數偏移之加密字串。演算模組102中預先設置有一亂數數值區間,演算模組102建立字元轉換表時,首先根據字元編碼的先後順序逐一讀取作業系統內建的英文字元及符號字元,每讀取一個英文字元或一個符號字元時,演算模組都會字自亂數數值區間擷取一個數值作為偏移量,然後將讀取的該英文字元或該符號字元根據偏移量偏移字元編碼以取得唯一且不重複的轉換字元,並將讀取的該英文字元或該符號字元所對應的轉換字元記錄在字元轉換表中。 The calculus module 102 is responsible for establishing a character conversion table, so that the conversion module 103 can convert at least one original string in the encrypted file to be chaotically offset into at least one random offset encryption according to the character conversion table. String. The calculus module 102 pre-sets a random number interval. When the calculus module 102 establishes the character conversion table, firstly, the English characters and symbol characters built in the operating system are read one by one according to the order of the character encoding, and each reading is performed. When an English character or a symbol character is taken, the calculus module takes a value from the random number range as an offset, and then reads the English character or the symbol character according to the offset. The character is encoded to obtain a unique and non-repeating conversion character, and the read English character or the conversion character corresponding to the symbol character is recorded in the character conversion table.

舉例來說,假設演算模組102預設的亂數數值區間為[0,1,2]三個整數數值,當讀取到英文字母“A”(假設字元編碼為“0001x”)時,演算模組102擷取整數“2”作為偏移量,則此時 字元編碼為“0003x”的英文字母“C”將會被設置為英文字母“A”的轉換字元,“A”會對應轉換為“C”的對應關係將會被記錄在字元轉換表中。 For example, suppose that the random number interval preset by the calculation module 102 is three integer values of [0, 1, 2], and when the English letter "A" is read (assuming the character code is "0001x"), The calculus module 102 takes the integer "2" as the offset, then at this time The English letter "C" with the character encoding "0003x" will be set to the conversion character of the English letter "A", and the corresponding relationship of "A" corresponding to the conversion to "C" will be recorded in the character conversion table. in.

需要說明的是,當英文字元的小寫字元對應到轉換字元時,演算模組102也會同時設定英文字元的大寫字元對應到同一個轉換字元,例如:“d”對應到“j”時,演算模組102也會設定“D”對應到“J”。此外,設定英文字元的對應轉換字元時,可以依據26個英文字母的順序循環設定,例如:當設定的讀取字元為“Z”,偏移量為2,則轉換字元的設定可以再從“a”開始計算,因此“z”對應的轉換字元為“b”。 It should be noted that when the small character of the English character corresponds to the conversion character, the calculus module 102 also sets the uppercase element of the English character to correspond to the same conversion character, for example: “d” corresponds to At "j", the calculus module 102 also sets "D" to correspond to "J". In addition, when setting the corresponding conversion character of the English character, it can be cyclically set according to the order of 26 English letters. For example, when the set read character is "Z" and the offset is 2, the conversion character is set. The calculation can be started from "a", so the conversion character corresponding to "z" is "b".

除此之外,演算模組102在設定讀取字元及轉換字元的對應關係時,若逐一設定的過程中發現有讀取字元已經設定過對應的轉換字元,則演算模組102將會跳至下一個字元編碼的字元進行轉換字元的設定,例如:英文字元“A”已經設定過對應的轉換字元關係“C”時,若其他的英文字元取完偏移量恰好也對應到“C”時,演算模組102將會跳至“C”的下一個字元“D”,並設定“D”為轉換字元,而所有的字元轉換關係皆為一對一,當遇到已被設定對應關係的字元就往下一個字元偏移,依此類推。所有的字元轉換關係建立後,都將會被記錄在字元轉換表中。 In addition, when the calculus module 102 sets the correspondence between the read character and the converted character, if the read character is found to have the corresponding converted character in the process of setting one by one, the calculus module 102 It will jump to the next character coded character to set the conversion character. For example, if the English character "A" has already set the corresponding conversion character relationship "C", if other English characters are taken off When the shift amount also corresponds to "C", the calculus module 102 will jump to the next character "D" of "C", and set "D" as the conversion character, and all the character conversion relationships are One-to-one, when encountering a character that has been set to correspond to the next character offset, and so on. After all the character conversion relationships are established, they will be recorded in the character conversion table.

轉換模組103,負責根據演算模組102產生的字元轉換表將至少一原始字串轉換為至少一亂數偏移之加密字串。假設字元轉換表中記錄的對應關係為f→s、i→l、r→e、t→p、s→y時,原始字串“still”將會轉換為亂數偏移之加密字串“xplqq”。 The conversion module 103 is responsible for converting at least one original string into at least one random number encrypted string according to the character conversion table generated by the calculation module 102. Assuming that the correspondences recorded in the character conversion table are f→s, i→l, r→e, t→p, s→y, the original string “still” will be converted into an encrypted string of random offsets. "xplqq".

轉換模組103除了將原始字串轉換為亂數偏移之加密字串 外,若解析模組101於拆解字串前記錄了待亂數偏移之加密文件中的符號字元及其對應位置於解密輔助文件中,並將各原始字串的字元數依序記錄下來時,則轉換模組103更用以重新排列原始字串的字元數,並以亂數偏移之加密字串的所有字元重組為至少一重組字串。舉例來說,假設待亂數偏移之加密文件中有一段原始字串“stand here and hold”其字元數依序為5,4,3,4,而該段原始字串經轉換後產生亂數偏移之加密字串“xpfsi mjwj fsi mtqi”,則重新排列原始字串的字元數為4,4,3,5時,亂數偏移之加密字串可以重新排列為重組字串“xpfs imjw jfs imtqi”。接著,轉換模組103可以更進一步合併重組字串及解密輔助文件為一亂數偏移之加密文件。 The conversion module 103 converts the original string into an encrypted string of random offsets. In addition, if the parsing module 101 records the symbol characters in the encrypted file to be chaotic offset and their corresponding positions in the decryption auxiliary file before disassembling the string, and sequentially sorts the number of characters of each original string. When recorded, the conversion module 103 is further configured to rearrange the number of characters of the original string, and recombine all the characters of the encrypted string with the odd-numbered offset into at least one recombination string. For example, suppose that the encrypted file to be chaotic offset has an original string "stand here and hold" whose number of characters is 5, 4, 3, 4, and the original string of the segment is converted. If the number of characters of the original string is 4, 4, 3, 5, the encrypted string of the random offset can be rearranged into a recombined string. "xpfs imjw jfs imtqi". Then, the conversion module 103 can further merge the recombination string and the decryption auxiliary file into a random offset encrypted file.

接下來,將以「第2圖」,本發明所述之亂數偏移之加密方法的流程圖搭配一實施例來說明本發明的實施流程。 Next, the flow of the implementation of the present invention will be described with reference to an embodiment of the encryption method of the random number offset according to the present invention by "second diagram".

首先,亂數偏移之加密系統中將會預先設置一亂數數值區間(步驟201),並根據字元編碼的先後順序逐一讀取作業系統內建的英文字元及符號字元(步驟202),並判斷作業系統內建的所有英文字元及符號字元是否讀取完畢(步驟203),當尚未讀取完畢時,亂數偏移之加密系統將會自亂數數值區間隨機擷取一數值作為偏移量(步驟204),然後將讀取的該英文字元或該符號字元根據偏移量偏移字元編碼以取得唯一且不重複對應的轉換字元(步驟205),最後,將讀取的該英文字元或該符號字元所對應的轉換字元記錄於字元轉換表中(步驟206)。 First, a random number interval is set in advance in the encryption system of random number offset (step 201), and English characters and symbol characters built in the operating system are read one by one according to the order of character encoding (step 202). And judging whether all English characters and symbol characters built in the operating system have been read (step 203), when not yet read, the random number offset encryption system will randomly retrieve from the random number range A value is used as an offset (step 204), and then the read English character or the symbol character is encoded according to the offset offset character to obtain a unique and non-repeating corresponding conversion character (step 205), Finally, the read English character or the conversion character corresponding to the symbol character is recorded in the character conversion table (step 206).

舉例來說,假設亂數數值區間為1~5之間的整數,則當亂數偏移之加密系統讀取到英文字元“A”,所擷取出的亂數為整數“4”,則英文字元“A”的字元編碼“0001x”依據偏移量4偏移 後為字元編碼“0005x”,因此英文字元“A”將會對應到轉換字元“E”,接著將英文字元“A”對應到轉換字元“E”的轉換關係記錄在字元轉換表中。 For example, if the random number value interval is an integer between 1 and 5, when the random number offset encryption system reads the English character "A" and the random number extracted is the integer "4", then The character code "0001x" of the English character "A" is offset by offset 4 The character is encoded as "0005x", so the English character "A" will correspond to the conversion character "E", and then the conversion relationship of the English character "A" to the conversion character "E" will be recorded in the character. In the conversion table.

需要說明的是,當英文字元的小寫字元對應到轉換字元時,亂數偏移之加密系統也會同時設定英文字元的大寫字元對應到同一個轉換字元,例如:“d”對應到“j”時,演算模組102也會設定“D”對應到“J”。此外,設定英文字元的對應轉換字元時,可以依據26個英文字母的順序循環設定,例如:當設定的讀取字元為“z”,偏移量為2,轉換字元的設定可以再從“a”開始計算,因此“z”的轉換字元為“b”。 It should be noted that when the small character of the English character corresponds to the conversion character, the encryption system of the random number offset also sets the uppercase element of the English character to correspond to the same conversion character, for example: “d When corresponding to "j", the calculus module 102 also sets "D" to correspond to "J". In addition, when setting the corresponding conversion character of the English character, it can be cyclically set according to the order of 26 English letters. For example, when the set read character is "z" and the offset is 2, the conversion character can be set. The calculation starts from "a", so the conversion character of "z" is "b".

除此之外,演算模組102在設定讀取字元及轉換字元的對應關係時,若逐一設定的過程中發現有讀取字元已經設定過對應的轉換字元,則演算模組102將會跳至下一個字元編碼的字元進行轉換字元的設定,例如:英文字元“A”已經設定過對應的轉換字元關係“C”時,若其他的英文字元取完偏移量恰好也對應到“C”時,演算模組102將會跳至“C”的下一個字元“D”,並設定“D”為轉換字元,而所有的字元轉換關係皆為一對一,當遇到已被設定對應關係的字元就往下一個字元偏移,依此類推。所有的字元轉換關係建立後,都將會被記錄在字元轉換表中。 In addition, when the calculus module 102 sets the correspondence between the read character and the converted character, if the read character is found to have the corresponding converted character in the process of setting one by one, the calculus module 102 It will jump to the next character coded character to set the conversion character. For example, if the English character "A" has already set the corresponding conversion character relationship "C", if other English characters are taken off When the shift amount also corresponds to "C", the calculus module 102 will jump to the next character "D" of "C", and set "D" as the conversion character, and all the character conversion relationships are One-to-one, when encountering a character that has been set to correspond to the next character offset, and so on. After all the character conversion relationships are established, they will be recorded in the character conversion table.

接著,亂數偏移之加密系統將會讀取待亂數偏移之加密文件中的至少一原始字串(步驟207),最後根據字元轉換表將至少一原始字串中的各原始字元轉換為對應的各轉換字元以形成至少一亂數偏移之加密字串(步驟208)。 Then, the random number offset encryption system will read at least one original string in the encrypted file to be chaotically offset (step 207), and finally at least one original word in the original string according to the character conversion table. The meta is converted to a corresponding each of the converted characters to form an encrypted string of at least one random offset (step 208).

需要說明的是,讀取該待亂數偏移之加密文件中的原始字串前,可以先記錄符號字元在待亂數偏移之加密文件中的對應位置 後再拆解出至少一原始字串,也可以不記錄符號字元的對應位置直接拆解出至少一原始字串,任何於本發明所屬技術領域中具通常知識者可透過前述兩種方式的其中一種分析出待亂數偏移之加密文件中的字串。當採用的是先記錄符號字元對應位置的方式時,亂數偏移之加密系統將會把符號字元及對應位置記錄在一個解密輔助文件中,而拆解出字串的過程中每一個字串的數目也會依序被記錄在解密輔助文件中。 It should be noted that, before reading the original string in the encrypted file to be offset, the corresponding position of the symbol character in the encrypted file to be chaotic offset may be recorded first. After the at least one original string is disassembled, at least one original string can be directly disassembled without recording the corresponding position of the symbol character. Anyone having ordinary knowledge in the technical field of the present invention can transmit the foregoing two methods. One of them analyzes the string in the encrypted file to be chaotically offset. When the method of recording the corresponding position of the symbol character is used, the encryption system of the random number offset will record the symbol character and the corresponding position in a decryption auxiliary file, and each of the processes of disassembling the string is performed. The number of strings is also recorded in the decryption auxiliary file in order.

舉例來說,假設一待亂數偏移之加密文件的內容為“I will come back later.”時,總字元數為23(包含英文字元及符號字元)及一個終結字元,解析模組101若採取記錄符號字元對應位置的方式時,首先將會記錄符號字元的對應位置,例如:句點位於待亂數偏移之加密文件的最末位字元,並依序記錄亂數偏移之加密字串的字元數為1,4,4,4,5。需要說明的是,實際上記錄的形式本發明於此並未予以限定,任何於本發明所屬領域具通常知識者應可依據系統需求運用不同的資料結構或是機制設定對應的記錄形式。 For example, suppose that the content of an encrypted file to be chaotic offset is "I will come back later.", the total number of characters is 23 (including English characters and symbol characters) and a final character, parsing If the module 101 takes the manner of recording the corresponding position of the symbol character, the corresponding position of the symbol character will be recorded first, for example, the period is located at the last character of the encrypted file to be offset by random number, and the disorder is recorded in order. The number of characters in the encrypted string of the number offset is 1, 4, 4, 4, 5. It should be noted that the form of the record is not limited herein. Anyone having ordinary knowledge in the field to which the present invention pertains may use different data structures or mechanisms to set a corresponding record form according to system requirements.

綜上所述,可知本發明與先前技術之間的差異在於具有透過預先設置一亂數數值區間,隨機取偏移量建立作業系統內建的英文字元及符號字元的轉換關係,再根據字元轉換表中的字元對應關係將待亂數偏移之加密文件中的至少一原始字串轉換為至少一亂數偏移之加密字串的技術手段,藉由此一技術手段可以透過文件內容的變更顯示,達成提高文件內容保密性的技術功效。 In summary, it can be seen that the difference between the present invention and the prior art is that the conversion relationship between the English character and the symbol character built in the operating system is established by randomly setting a random number interval, and then according to The character correspondence in the character conversion table is a technical means for converting at least one original string in the encrypted file to be at least one random number of encrypted strings, by means of a technical means The change in the content of the document shows the technical effect of improving the confidentiality of the content of the document.

雖然本發明所揭露之實施方式如上,惟所述之內容並非用以直接限定本發明之專利保護範圍。任何本發明所屬技術領域中具有通常知識者,在不脫離本發明所揭露之精神和範圍的前提下,可以在實施的形式上及細節上作些許之更動。本發明之專利保護 範圍,仍須以所附之申請專利範圍所界定者為準。 While the embodiments of the present invention have been described above, the above description is not intended to limit the scope of the invention. Any changes in the form and details of the embodiments may be made without departing from the spirit and scope of the invention. Patent protection of the invention The scope must still be determined by the scope of the attached patent application.

101‧‧‧解析模組 101‧‧‧analysis module

102‧‧‧演算模組 102‧‧‧ calculus module

103‧‧‧轉換模組 103‧‧‧Transition module

步驟201‧‧‧預先設置一亂數數值區間 Step 201‧‧‧ Preset a random number interval

步驟202‧‧‧根據字元編碼的先後順序逐一讀取作業系統內建的英文字元及符號字元 Step 202‧‧‧Read the English characters and symbol characters built into the operating system one by one according to the order of character encoding

步驟203‧‧‧作業系統內建的所有英文字元及符號字元讀取完畢 Step 203‧‧‧All English characters and symbol characters built into the operating system are read

步驟204‧‧‧自亂數數值區間隨機擷取一數值作為偏移量 Step 204‧‧‧ Randomly retrieve a value from the random number interval as the offset

步驟205‧‧‧將讀取的該英文字元或該符號字元根據偏移量偏移字元編碼以取得唯一且不重複對應的轉換字元 Step 205‧‧‧ encode the English character or the symbol character according to the offset offset character to obtain a unique and non-repeating corresponding conversion character

步驟206‧‧‧將讀取的該英文字元或該符號字元所對應的轉換字元記錄於字元轉換表中 Step 206‧‧‧ Record the read English character or the conversion character corresponding to the symbol character in the character conversion table

步驟207‧‧‧讀取待亂數偏移之加密文件中的至少一原始字串 Step 207‧‧‧ reading at least one original string in the encrypted file to be chaotic offset

步驟208‧‧‧根據字元轉換表將至少一原始字串中的各原始字元轉換為對應的各轉換字元以形成至少一亂數偏移之加密字串 Step 208‧‧‧ Converting each original character in at least one original string into a corresponding conversion character according to a character conversion table to form an encrypted string of at least one random number offset

第1圖為本發明亂數偏移之加密系統的方塊圖。 Figure 1 is a block diagram of an encryption system for a random number offset according to the present invention.

第2圖為本發明亂數偏移之加密方法的流程圖。 Fig. 2 is a flow chart showing the encryption method of the random number offset of the present invention.

步驟201‧‧‧預先設置一亂數數值區間 Step 201‧‧‧ Preset a random number interval

步驟202‧‧‧根據字元編碼的先後順序逐一讀取作業系統內建的英文字元及符號字元 Step 202‧‧‧Read the English characters and symbol characters built into the operating system one by one according to the order of character encoding

步驟203‧‧‧作業系統內建的所有英文字元及符號字元讀取完畢 Step 203‧‧‧All English characters and symbol characters built into the operating system are read

步驟204‧‧‧自亂數數值區間隨機擷取一數值作為偏移量 Step 204‧‧‧ Randomly retrieve a value from the random number interval as the offset

步驟205‧‧‧將讀取的該英文字元或該符號字元根據偏移量偏移字元編碼以取得唯一且不重複對應的轉換字元 Step 205‧‧‧ encode the English character or the symbol character according to the offset offset character to obtain a unique and non-repeating corresponding conversion character

步驟206‧‧‧將讀取的該英文字元或該符號字元所對應的轉換字元記錄於字元轉換表中 Step 206‧‧‧ Record the read English character or the conversion character corresponding to the symbol character in the character conversion table

步驟207‧‧‧讀取待亂數偏移之加密文件中的至少一原始字串 Step 207‧‧‧ reading at least one original string in the encrypted file to be chaotic offset

步驟208‧‧‧根據字元轉換表將至少一原始字串中的各原始字元轉換為對應的各轉換字元以形成至少一亂數偏移之加密字串 Step 208‧‧‧ Converting each original character in at least one original string into a corresponding conversion character according to a character conversion table to form an encrypted string of at least one random number offset

Claims (10)

一種亂數偏移之加密系統,適用於對僅包含英文字元及符號字元的一待亂數偏移之加密文件進行亂數偏移之加密,其中作業系統內建的每一英文字元及每一符號字元均分別對應唯一且不重複的一字元編碼,該系統包含:一演算模組,預先設置有一亂數數值區間,用以根據該字元編碼的先後順序逐一讀取該些英文字元及該些符號字元,其中每讀取一英文字元或一符號字元時,該演算模組自該亂數數值區間擷取一數值作為一偏移量,將該英文字元或該符號字元根據該偏移量偏移字元編碼以取得唯一且不重複對應的一轉換字元,並將該英文字元或該符號字元所對應的該轉換字元記錄於一字元轉換表中;一解析模組,用以讀取該待亂數偏移之加密文件中的至少一原始字串;及一轉換模組,用以根據該字元轉換表將該至少一原始字串的各原始字元轉換為對應的各轉換字元以形成至少一亂數偏移之加密字串。 An encryption system for random number offset, which is suitable for encrypting an encrypted file of a random number offset containing only English characters and symbol characters, wherein each English character built in the operating system And each symbol character corresponds to a unique and non-repeating one-character code. The system comprises: a calculation module, and a random number interval is preset to read the one-by-one according to the sequence of the character encoding. The English character and the symbol characters, wherein each time an English character or a symbol character is read, the calculation module extracts a value from the random number interval as an offset, the English word The symbol or the symbol character is encoded according to the offset offset character to obtain a unique and non-repeating corresponding one of the converted characters, and the English character or the converted character corresponding to the symbol character is recorded in the a character conversion table; an parsing module for reading at least one original string in the encrypted file to be chaotic offset; and a conversion module for using the at least one character conversion table according to the character conversion table Convert each original character of the original string to correspond Converting each character to form at least a nonce encrypted string offsets. 如申請專利範圍第1項所述之亂數偏移之加密系統,其中該解析模組更用以記錄該待亂數偏移之加密文件中的符號字元及其對應位置於一解密輔助文件中,自該待亂數偏移之加密文件中拆解出該至少一原始字串,並將各原始字串的字元數依序記錄於該解密輔助文件中。 The encryption system of the random number offset according to the first aspect of the invention, wherein the parsing module is further configured to record the symbol character in the encrypted file to be chaotic offset and its corresponding position in a decryption auxiliary file. The at least one original string is disassembled from the encrypted file to be chaotic offset, and the number of characters of each original string is sequentially recorded in the decryption auxiliary file. 如申請專利範圍第2項所述之亂數偏移之加密系統,其中該轉換模組更用以根據該字元轉換表將該至少一原始字串的各 原始字元轉換為對應的各轉換字元以形成該至少一亂數偏移之加密字串後,重新排列各原始字串的字元數,再根據重新排列後的原始字串的字元數重組該至少一亂數偏移之加密字串的所有字元為至少一重組字串。 The encryption system of the random number offset according to claim 2, wherein the conversion module is further configured to: according to the character conversion table, each of the at least one original string Converting the original character to the corresponding converted character to form the encrypted string of the at least one random offset, rearranging the number of characters of each original string, and then according to the number of characters of the original string after rearrangement All characters of the at least one random offset encrypted string are recombined into at least one recombined string. 如申請專利範圍第3項所述之亂數偏移之加密系統,其中該轉換模組更用以將該至少一重組字串與該解密輔助文件合併為一亂數偏移之加密文件。 The cryptographic system of the erratic offset as described in claim 3, wherein the conversion module is further configured to combine the at least one recombination string with the decryption auxiliary file into a random offset encrypted file. 如申請專利範圍第1項所述之亂數偏移之加密系統,其中該演算模組更用以當根據該偏移量偏移字元編碼超出所有字元編碼的最大數值時,重返字元編碼的最小數值執行偏移。 The cryptographic system of the erratic offset according to claim 1, wherein the calculus module is further configured to reenter the word when the offset character code exceeds the maximum value of all the character codes according to the offset. The minimum value of the metacode performs the offset. 一種亂數偏移之加密方法,適用於對僅包含英文字元及符號字元的一待亂數偏移之加密文件進行亂數偏移之加密,其中作業系統內建的每一英文字元及每一符號字元均分別對應唯一且不重複的一字元編碼,該方法包含下列步驟:預先設置一亂數數值區間;根據該字元編碼的先後順序逐一讀取該些英文字元及該些符號字元,其中每讀取一英文字元或一符號字元時,執行下列步驟:自該亂數數值區間擷取一數值作為一偏移量;將該英文字元或該符號字元根據該偏移量偏移字元編碼以取得唯一且不重複對應的一轉換字元;及將該英文字元或該符號字元所對應的該轉換字元記錄於一字元轉換表中;讀取該待亂數偏移之加密文件中的至少一原始字串;及 根據該字元轉換表將該至少一原始字串中的各原始字元轉換為對應的各轉換字元以形成至少一亂數偏移之加密字串。 An encryption method for random number offset, which is suitable for encrypting an encrypted file of an odd-numbered offset containing only English characters and symbol characters, wherein each English character built in the operating system And each symbol character corresponds to a unique and non-repeating one-character code, and the method comprises the following steps: presetting a random number interval; reading the English characters one by one according to the sequence of the character encoding The symbol characters, wherein each time an English character or a symbol character is read, performing the following steps: extracting a value from the random number value interval as an offset; the English character or the symbol word The element is encoded according to the offset offset character to obtain a unique one and does not repeat the corresponding one of the converted characters; and the English character or the converted character corresponding to the symbol character is recorded in a character conversion table. Reading at least one original string in the encrypted file to be chaotic offset; and Converting each of the at least one original string into a corresponding one of the converted characters according to the character conversion table to form an encrypted string of at least one random number offset. 如申請專利範圍第6項所述之亂數偏移之加密方法,其中讀取該待亂數偏移之加密文件中的該至少一原始字串的步驟之前,更包含下列步驟:記錄該待亂數偏移之加密文件中的每一符號字元及其對應位置於一解密輔助文件中;及自該待亂數偏移之加密文件中拆解出該至少一原始字串,並將每一原始字串的字元數依序記錄於該解密輔助文件中。 The method for encrypting a random number offset according to claim 6, wherein the step of reading the at least one original string in the encrypted file to be chaotic offset includes the following steps: recording the Each symbol character in the encrypted file of the random number offset and its corresponding position are in a decryption auxiliary file; and the at least one original string is disassembled from the encrypted file to be offset by the random number, and each The number of characters of an original string is sequentially recorded in the decryption auxiliary file. 如申請專利範圍第7項所述之亂數偏移之加密方法,其中根據該字元轉換表將該至少一原始字串中的各原始字元轉換為對應的各轉換字元以形成至少一亂數偏移之加密字串的步驟之後,更包含根據該至少一亂數偏移之加密字串的所有字元形成至少一重組字串的步驟。 The method for encrypting a random number offset according to claim 7, wherein each original character in the at least one original string is converted into a corresponding converted character according to the character conversion table to form at least one After the step of encrypting the encrypted encrypted string, the step of forming at least one recombined string according to all the characters of the encrypted string of the at least one random offset is further included. 如申請專利範圍第8項所述之亂數偏移之加密方法,該方法更包含將該至少一原始字串轉換為該至少一亂數偏移之加密字串後,重新排列各原始字串的字元數,再根據重新排列後的原始字串的字元數重組該至少一亂數偏移之加密字串的所有字元為至少一重組字串的步驟。 The method for encrypting a random number offset according to claim 8, wherein the method further comprises: after converting the at least one original string into the encrypted string of the at least one random offset, rearranging the original strings. And the step of recombining all the characters of the encrypted string of the at least one random offset into at least one recombination string according to the number of characters of the rearranged original string. 如申請專利範圍第6項所述之亂數偏移之加密方法,其中將該英文字元或該符號字元根據該偏移量偏移字元編碼以取得唯一且不重複對應的一轉換字元的步驟中,更包含當根據該偏移量偏移字元編碼超出所有字元編碼的最大數值時,重返 字元編碼的最小數值執行偏移的步驟。 The encryption method for random number offset according to claim 6, wherein the English character or the symbol character is encoded according to the offset offset character to obtain a unique and non-repeating corresponding conversion word. The step of the element further includes returning when the offset character code exceeds the maximum value of all character codes according to the offset The step of performing the offset by the minimum value of the character encoding.
TW101132931A 2012-09-10 2012-09-10 Encrypting system and method thereof TW201411393A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101132931A TW201411393A (en) 2012-09-10 2012-09-10 Encrypting system and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101132931A TW201411393A (en) 2012-09-10 2012-09-10 Encrypting system and method thereof

Publications (1)

Publication Number Publication Date
TW201411393A true TW201411393A (en) 2014-03-16

Family

ID=50820853

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101132931A TW201411393A (en) 2012-09-10 2012-09-10 Encrypting system and method thereof

Country Status (1)

Country Link
TW (1) TW201411393A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI512535B (en) * 2014-03-26 2015-12-11 Moxa Inc Encryption and decryption method for operating system kernel
US10831911B2 (en) 2017-12-19 2020-11-10 Industrial Technology Research Institute Method, computer program product and processing system for generating secure alternative representation
US10909261B2 (en) 2018-12-12 2021-02-02 Industrial Technology Research Institute Method and computer program product for generating secure alternative representation for numerical datum

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI512535B (en) * 2014-03-26 2015-12-11 Moxa Inc Encryption and decryption method for operating system kernel
US10831911B2 (en) 2017-12-19 2020-11-10 Industrial Technology Research Institute Method, computer program product and processing system for generating secure alternative representation
US10909261B2 (en) 2018-12-12 2021-02-02 Industrial Technology Research Institute Method and computer program product for generating secure alternative representation for numerical datum

Similar Documents

Publication Publication Date Title
CN106161006B (en) Digital encryption algorithm
CN100447812C (en) Document data waterprint embedded method
US11902417B2 (en) Computer-implemented method of performing format-preserving encryption of a data object of variable size
CN103543980B (en) Method and device for processing digital data
Gutub et al. Utilizing diacritic marks for Arabic text steganography
Taleby Ahvanooey et al. An innovative technique for web text watermarking (AITW)
CN108418683A (en) A kind of carrier-free text steganography method based on feature of Chinese characters structure
TW201411393A (en) Encrypting system and method thereof
KR101220254B1 (en) Searchable color encoded file composing method and searchable color encoded file system
JP5467155B1 (en) Document processing system, document processing method and program
Rafat et al. Secure digital steganography for ASCII text documents
Din et al. Traid-bit embedding process on Arabic text steganography method
Beck et al. Finding data in DNA: computer forensic investigations of living organisms
Castiglione et al. Hiding Information into OOXML Documents: New Steganographic Perspectives.
CN108134799B (en) Novel coding and decoding method and device thereof
WO2017107530A1 (en) Electronic password lock for spark databases and method for operating same
CN110704813A (en) Character anti-piracy system based on character recoding
US20160292402A1 (en) Password input method and system based on two-stage conversion
Alshahrani et al. Hybrid Arabic text steganography
KR102401229B1 (en) Method of securing text and device implementing thereof
US8473516B2 (en) Computer storage apparatus for multi-tiered data security
CN106203568A (en) Autograph book approaches to IM based on Quick Response Code
TW201411400A (en) Encrypting system and method thereof
CN108063742A (en) A kind of sensitive information provides and tracking and device
Raphael et al. Secured crypto-stegano communication through unicode