Links

Abstract

Translated from Chinese

本发明公开了一种计算机文档内容保护的方法和系统，用以解决现有技术对计算机文档进行内容保护时存在的效率低下的问题。 The present invention discloses a method and system for content protection of computer files, to solve the inefficiency problem exists when prior art computer document content protection.主要技术方案包括：建立安全字库，并存储到网络服务器，安全字库中每个字符的安全编码与标准编码形成映射关系，并存储到编码转换模块中；计算机文档中的字符根据映射关系从标准编码转换成安全编码存储，将安全字库设置为计算机文档的显示字库；计算机打开文档时，从网络服务器获取安全字库，文档中的字符根据安全字库的安全编码显示。 The main technical solutions comprising: establishing a secure font, and stored in the network server, the security character encoding standard security encoding should map each character, and stores the code conversion module; computer characters in the document according to the mapping from the standard encoding converted to store security codes, security display character font set of computer files; the computer to open a document, acquired from the network server secure font, characters in the document display according to secure coding of the security font.通过该技术方案，可实现对计算机文档内容的自动默认保护，同时无需单独记录密钥，降低了加密难度，提高了加密效率，而且计算机文档传输时不需要传输安全字库。 By this technical solution can be achieved automatically default to protect the contents of computer files, while no separate record key encryption reduces the difficulty and improve the efficiency of encryption, and does not require transport security when the computer font file transfer.

Description

Translated from Chinese

一种计算机文档内容保护的方法和系统 A computer document content protection method and system

技术领域 FIELD

[0001] 本发明涉及计算机信息处理技术领域，尤其涉及一种计算机文档内容保护的方法和系统。 [0001] The present invention relates to computer information processing technologies, and particularly to a method and system for content protection in a computer document.

背景技术 Background technique

[0002] 目前，已经颁布的国际编码标准IS0/IEC10646:2003、以及即将颁布的国家编码标准GB13000、GB18030中，已收录CJK统一汉字、CJK统一汉字扩充集A、CJK统一汉字扩充集B，共计70195字。 [0002] At present, the international coding standard IS0 already issued / IEC10646: 2003, as well as the national coding standard GB13000 forthcoming, GB18030, it has been included in CJK Unified Chinese characters, CJK Unified Chinese characters expansion set A, CJK unified Chinese characters expansion set B, total 70195 words.

[0003] 根据这些编码标准生成的各种标准字库，应用在各种计算机文档的显示中，如WORD格式的文档。 [0003] According to various criteria such coding standards generated fonts, display a variety of computer applications in the document, such as WORD document format.但各中计算机文档的内容使用的是真实的标准编码，在方便传输和信息交流的同时，也带来了资源流失和内容泄密的问题。 However, the contents of each document in a computer using a real coding standard, convenient transfer and exchange of information, but also poses a problem of resources and the loss of the contents leaked.

[0004] 而已有的采用文档密码对计算机文档进行加密的方式，由于涉及到密码泄漏安全、密钥的泄漏安全等安全隐患，不易大范围分发和记录。 [0004] Only some documents by way of a password to encrypt computer files, as it relates to security password leak, leak security keys and other security risks, and distribute a wide range of easy to record.

[0005] 如果采用PDF或者图片的格式去存储、传输计算机文档，又会使得计算机文档内容无法进行任意检索和定位，并且由于PDF或者图片的格式会使计算机文档变大，增加了传输成本。 [0005] If the PDF or image formats to store, transfer computer files, so that the computer will not be able to arbitrarily retrieve the document content and positioning, and because PDF or image format will make computer files become larger, increasing the transport costs.

[0009] 提取标准字库的字符，根据标准编码排列，将所述字符在所述标准字库中标准编码与预设的数值进行线性运算，获得所述字符的安全编码，也可以对所述字符随机给予安全编码，并且每个字符的安全编码互不相同，将所述字符、所述字符的安全编码进行存储， 成为安全字库，所述安全字库包括字符和所述字符的安全编码，所述安全字库中每个字符的安全编码与所述字符在标准字库中的标准编码形成一对一的映射关系； [0009] Extraction standard character font, the arrangement according to the coding standard, the standard character encoding and a preset value for said standard font in linear operation, access to security codes of the character, the character may be a random administering a safe coding, security and encoding each character different from each other, the character, the character is stored security encoding, a safe character, said font comprises a safety and security code characters of the character, the security security said character encoding standard character encoding standard font for each character is formed in a one to one mapping relationship;

[0011] 将所述字符的安全编码与所述字符的标准编码之间的一对一映射关系存储到编码转换模块中； [0011] The security-one mapping between the character encoding standard encoding of the character stored in the code conversion module;

[0012] 所述计算机文档中的字符根据所述映射关系，从所述标准字库的标准编码转换成所述安全字库的安全编码进行存储，并将所述安全字库设置为所述计算机文档的显示字库； [0012] The computer characters in the document according to the mapping relationship, the conversion to secure coding of the security font standard font from the standard code is stored, and the character set of the computer security document is displayed font;

[0013] 当计算机打开所述计算机文档，所述计算机从所述网络服务器中获取所述安全字库； [0013] When the computer is turned on computer files, the computer acquires the secure font from the network server;

[0014] 所述计算机文档中的字符根据所述安全字库的安全编码显示。 The [0014] Computer display characters in the document according to the security coding of the security font.

[0016] 标准字库，用于存储字符和所述字符的标准编码； [0016] The standard font, and character code storage for the standard of the character;

[0017] 安全字库，用于存储字符和所述字符的安全编码；其中，所述安全字库通过以下方式获得：提取所述标准字库的字符，根据标准编码排列，将所述字符在所述标准字库中标准编码与预设的数值进行线性运算，获得所述字符的安全编码，也可以对所述字符随机给予安全编码，并且每个字符的安全编码互不相同，将所述字符、所述字符的安全编码进行存储，成为所述安全字库，所述安全字库中每个字符的安全编码与所述字符在所述标准字库中的标准编码形成一对一的映射关系； [0017] Security font, character and for storing security codes of the character; wherein the security font is obtained by: extracting said standard character font, the arrangement according to the standard coding, the character in the standard character encoding standard with a preset value for linear operation, obtain security codes of the character may be given the character of a random security codes, security codes, and each character different from each other, the character, the security code characters is stored, the secure character becomes the security code for each character font security formed one to one mapping between the character encoding standard font in said standard;

[0018] 编码转换模块，用于存储所述字符的安全编码与所述字符的标准编码之间的映射关系，并根据安全编码与标准编码的映射关系，将所述字符的编码从标准编码转换成安全编码； [0018] The code conversion module, for encoding a mapping relationship between the safety standard of the character encoding and storage of the character, and according to the mapping secure coding standard encoding, the encoding of the character code conversion from the standard to secure coding;

[0020] 计算机，用于在打开所述计算机文档时，从所述网络服务器获取所述安全字库，并将所述计算机文档中的字符根据所述安全字库的安全编码显示。 [0020] computer, a computer for, when the document is opened, the security font obtain from the network server, and the computer displays the characters in the document security in accordance with the coding of the security font.

[0021] 通过上述技术方案，本发明通过编码转换模块，采用安全字库，可对待录入计算机文档或已有计算机文档进行安全编码转换达到打乱存储的目的，传输时仅需将安全字库指定为该计算机文档的默认显示字库，即可自动显示正常文档内容，而使用安全字库之外的字库进行显示，则该计算机文档会显示为无实际意义的乱序文档。 [0021] Through the above technical solution, the present invention is converted by the encoding module, using secure font, a document or a computer may be input to treat existing computer security document object code converter reaches disrupt stored only security for the transmission of the specified font the default display font computer document, you can automatically display properly document content, font and font use of safety outside the display, the computer document will appear as scrambled document moot.采用本发明所述的安全字库，可实现对将录入和已有计算机文档内容的自动默认保护，同时无需单独记录密钥，降低了加密难度，提高了加密效率，该安全字库可广泛应用于计算机文档内容安全保护领域。 Font using the present invention, safety can be realized on the protection entry and will automatically default to existing computer document content, while no separate recording key, reduces the difficulty of encryption, the encryption efficiency is improved, which can be widely used in computer security font document content security field.而且计算机在显示计算机文档时，可以从网络服务器处获取安全字库，从而不需要在传输计算机文档时携带安全字库，降低了网络传输负担。 And the computer, you can access to safe fonts from a network server when displaying computer files, eliminating the need to carry safe fonts in the transmission of computer files, reducing network transmission burden.

附图说明 BRIEF DESCRIPTION

[0022] 图1为本发明实施例中计算机文档内容保护系统的示意图； [0022] FIG. 1 is a schematic embodiment of a computer document content protection system of the present embodiment of the invention;

[0023] 图2为本发明实施例中实现对计算机文档内容进行保护的流程图。 [0023] FIG 2 is a flowchart of a computer implemented embodiment of the document content protection embodiment of the present invention.

具体实施方式 Detailed ways

[0024] 为了提高对计算机文档内容保护的效率，本发明实施例提出了一种计算机文档内容保护的方法和系统，下面结合说明书附图对本发明实施例的主要实现原理、具体实施过程及其对应能够达到的有益效果进行详细的阐述。 [0024] In order to improve the efficiency of a computer document content protection, embodiments of the present invention proposes a computer document content protection method and system, the following description in conjunction with the accompanying drawings implementation principle embodiment of the present invention, the specific implementation and the corresponding to achieve beneficial effects in detail.

[0025] 本发明实施例中，通过将计算机文档内容中的字符对应的编码由标准编码转换成与标准编码不同、但与标准编码一一映射的安全编码，并将计算机文档以安全编码方式加以存储和传输，这样当以标准字库来打开该计算机文档时，该计算机文档的内容将显示无意义的字符；如果用安全字库作为计算机文档的显示字库，则可以显示该计算机文档输入时的正确内容，从而保证了计算机文档内容不会泄密。 [0025] The embodiments of the present invention, by the character code corresponding to the document content from the computer standard to the standard transcoding encode different, but one mapping secure coding standard encoding, and encoding a computer security document to be storage and transmission, such that when a standard font to open the computer file, the contents of the computer file meaningless character is displayed; if safety as a display character font in the computer file, the contents may be displayed correctly when the computer document input , thus ensuring the document content will not be compromised computer.

[0027] 其中标准字库用于存储字符和字符的标准编码，安全字库用于存储字符和字符的安全编码，编码转换模块用于存储字符的安全编码与字符的标准编码之间的映射关系，并根据安全编码与标准编码的映射关系，将字符的编码从标准编码转换成安全编码，网络服务器用于存储安全字库，计算机从网络服务器获取安全字库，并显示计算机文档，存储模块用于存储计算机文档中字符转换后的安全编码。 [0027] wherein the security coding standard for character encoding standard font and character font safe for storing characters and character encoding conversion means for encoding a mapping relationship between the safety standard encodes characters stored in the character, and the mapping relationship between the coded and safety standards coded characters converted from coding standard encoded into encoded security, network security server configured to store fonts, font secure computer acquires from the network server, and the computer displays the document, a document storage module for storing computer the character conversion after the security codes.

[0029] 进一步地，可以将安全字库设置为该计算机文档的显示字库，这样当打开该计算机文档时，该计算机文档按照安全字库的安全编码进行显示。 [0029] Further, the security may be provided for character font display computer files, the computer so that when the document is opened, the document is displayed in the computer security coded security font.

[0031] 步骤201、提取现有IS0/IEC10646:2003编码体系定义的标准字库中所有字符， 并按IS0/IEC10646:2003编码顺序升序排列。 [0031] Step 201, the existing extraction IS0 / IEC10646: 2003 standard character encoding scheme defined by all the characters, press the IS0 / IEC10646: 2003 encoded in ascending order.字符可以为汉字、少数民族文字或者其他字符等。 Characters can be characters, or other characters and other minority languages.

[0032] 步骤202、对这些字符给予不同于标准编码、但与标准编码唯一对应的安全编码，并同时记录字符的安全编码与字符的附属关系、以及字符的安全编码与IS0/IEC 10646:2003标准编码之间的映射关系。 [0032] Step 202, given these characters from the standard coding, the standard code uniquely corresponding to the security code, security encoded and recorded simultaneously IS0 affiliation secure coding characters and characters, and the characters / IEC 10646: 2003 the mapping between the coding standard.

[0033] 本步骤202中，可以采取多种方式获得字符的安全编码，比如将某个字符的标准编码与预先设定的数值进行线性运算，而得到该字符的安全编码；也可以随机对该字符给予安全编码。 [0033] In this step 202, can take a variety of ways to get the security code characters, a character encoding standard such as the preset value for linear operation, and the safe character encoding; this may be randomly character given security codes.

[0034] 步骤203、将这些字符及其安全编码存储起来生成安全字库。 [0034] Step 203, these characters and generating security codes stored security font.该安全字库可以是TrueType字库或者PostScript字库，也可以是用户自定义形式的字符格式。 The security TrueType font or font can be a PostScript font, it can be in the form of user-defined character format.安全字库中还可以包括压缩后的字型数据和相应的字型曲线Hint微调指令信息。 Security may further include character font data compressed and shaped curve corresponding Hint trimming instruction information.

[0037] 步骤206、编码转换模块将计算机文档中的字符根据映射关系，从标准字库的标准编码转换成安全字库的安全编码，并存储。 [0037] Step 206, the transcoding module computer characters in the document according to the mapping relationship, the conversion from the standard character encoding standard font into a secure coding of security, and storage.

[0040] 步骤209、该计算机文档的字符将根据安全编码进行显示。 [0040] Step 209, the computer character will be displayed according to the document security codes.

[0041] 进一步地，比如"我爱你"三个字符，这三个字符（我、爱、你），都是IS0/IEC10646 标准中收录的已有汉字。 [0041] Further, such as "I love you" three characters, three characters (I love you), there are characters IS0 / IEC10646 standard included.这三个字符在现有的国际或国家编码标准中已经收录，其IS0/IEC 10646标准码值分别为6211、7231、4F60，这三个字符经过编码转换后，就获得了安全编码， 如表1。 These three characters have been included in the existing international or national coding standard, it IS0 / IEC 10646 standard code values ​​were 6211,7231,4F60, these three characters after encoding conversion, you get a security code, as shown in Table 1.

[0042] 表1 [0042] TABLE 1

[0043] [0043]

[0044] 字符及其对应的安全编码形成了安全字库，而安全编码和对应的标准编码之间的映射关系则存储到编码转换模块中。 [0044] characters and their corresponding security coding forming a security fonts, and the mapping relationship between the codes and the corresponding safety standard code is stored to the encoding converter module.

[0045] 用户打开新文档，设定安全字库为显示字库，启动系统自带输入法发送标准编码序列"我爱你"，即标准编码序列是6411、7231、4?60，录入装置接收到标准编码序列的"我爱你"后，由编码转换模块将"我爱你"三个标准字符转换为安全字库的安全编码序列9256、 85A0、201A6,此时由于文档的设定显示字库为安全字库，文档显示仍是"我爱你"三个字，但其编码序列是安全字库的编码序列9256、85A0、201A6。 [0045] the user to open a new document, set the font to display font safety, start the system comes with input method to send a standard coding sequence, "I love you", that is, the standard coding sequence is 6411,7231,4? 60, received the standard input device after the coding sequence of "I love you" by the transcoding module "I love you" three characters into standard security coding sequences safe font 9256, 85A0,201A6, this time due to the setting of the document display font is safe font , the document display is still the "I love you" in the name, but its coding sequence coding sequence is safe font 9256,85A0,201A6.此时若使用标准编码字库进行显示该文档，则显示为"終蕷□"三个字。 At this time, if the encoded character is displayed using the standard document, it is displayed as "final yam □" words.

[0047] 加密后计算机文档传输的时候仅需要传递该文档即可。 [0047] After transmission of the encrypted document when the computer is only necessary to pass the document.合法用户会从网络服务器处获取安全字库，并预先安装安全字库，加密文档使用该安全字库可正确显示"我爱你"三个字，加密文档若使用其他字库则显示为""終蕷□"。因此当非法用户非法获得该文档的时候，看到的只能是"終蕷□"三个字，而不是加密前的"我爱你"三个字。 Legitimate users will get from a network server security fonts, and font pre-installed security, encryption, secure document using the font can be displayed correctly, "I love you" three words, the encrypted document if the other character is displayed as "" the final yam □ " Thus when an illegal user illegally obtained the document, only to see the "final yam □" words, while the former is not encrypted, "I love you" in the name.

[0048] 这种安全字库安装在网络服务器，使得计算机文档在传输时，不再需要同时携带安全字库，从而降低了网络传输的负担。 [0048] Such safety font installed in a network server, such computer document transmission, no need to carry safe fonts, thereby reducing the burden on the network.安装了安全字库后，利用字符的安全编码与ISO/ IEC10646标准编码对应关系可以对各类文档内容进行加密处理。 After the fonts installed security, secure coding using the character with ISO / IEC10646 standard code can be encrypted correspondence between the various types of document content.

[0049] 显然，本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。 [0049] Obviously, those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention.这样，倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内，则本发明也意图包含这些改动和变型在内。 Thus, if these modifications and variations of the present invention fall within the claims of the invention and the scope of equivalents thereof, the present invention intends to include these modifications and variations.

Claims (8)

Translated from Chinese

1. 一种计算机文档内容保护的方法，其特征在于，包括： 提取标准字库的字符，根据标准编码排列，将所述字符在所述标准字库中标准编码与预设的数值进行线性运算，获得所述字符的安全编码，也可以对所述字符随机给予安全编码，并且每个字符的安全编码互不相同，将所述字符、所述字符的安全编码进行存储，成为安全字库，所述安全字库包括字符和所述字符的安全编码，所述安全字库中每个字符的安全编码与所述字符在标准字库中的标准编码形成一对一的映射关系； 将所述安全字库存储在网络服务器中； 将所述字符的安全编码与所述字符的标准编码之间的一对一映射关系存储到编码转换模块中； 所述计算机文档中的字符根据所述映射关系，从所述标准字库的标准编码转换成所述安全字库的安全编码进行存储，并将所述安全字库设置为所述 A computer document content protection method comprising: extracting a character font standard, the encoding arrangement according to the standard, the standard character encoding and a preset value for said standard font in linear operation, obtaining the security code characters, may be administered to the random character of the security code, the security encoding and each character different from each other, the character, the character is stored security encoding, a safe character, said security font including characters and security encoding of the character, the security encoding and the security font character encoding standard is a standard font for each character is formed one to one mapping relation; the network server storing the security font ; and storing one mapping between the character and the security encoding standard encoding to the encoding of the character conversion module; said computer characters in the document according to the mapping relation, from said standard font to standard safety transcoding encoded into the security font is stored, and the secure character set to the计算机文档的显示字库； 当计算机打开所述计算机文档，所述计算机从所述网络服务器中获取所述安全字库； 所述计算机文档中的字符根据所述安全字库的安全编码显示。 Display font computer files; computer when the computer opens the document, the font from the secure computer to acquire the network server; the computer to display characters in the document security in accordance with the coding of the security font.

3. 如权利要求1至2任一项所述的方法，其特征在于，所述计算机文档中的字符在输入时，将输入的所述字符的编码从标准字库中的标准编码转换成安全编码，并存储。 1 3. The method according to any one of claims 2, characterized in that the computer of the character in the document character input, the conversion from the input coded character encoding standard is a standard to secure coding and storage.

4. 如权利要求1至2任一项所述的方法，其特征在于，所述计算机文档在转换时，将所述计算机文档中的字符的编码，从标准字库的标准编码转换成安全编码，并存储。 4. A method according to any one of claims 2, wherein, when converting said computer document, the encoded characters in a computer file, the conversion from the standard character encoding standard into a security code, and storage.

5. -种计算机文档内容保护的系统，其特征在于，包括： 标准字库，用于存储字符和所述字符的标准编码； 安全字库，用于存储字符和所述字符的安全编码；其中，所述安全字库通过以下方式获得：提取所述标准字库的字符，根据标准编码排列，将所述字符在所述标准字库中标准编码与预设的数值进行线性运算，获得所述字符的安全编码，也可以对所述字符随机给予安全编码，并且每个字符的安全编码互不相同，将所述字符、所述字符的安全编码进行存储，成为所述安全字库，所述安全字库中每个字符的安全编码与所述字符在所述标准字库中的标准编码形成一对一的映射关系； 编码转换模块，用于存储所述字符的安全编码与所述字符的标准编码之间的映射关系，并根据安全编码与标准编码的映射关系，将所述字符的编码从标准编码转换成安全编码 5. - Computer kind of document content protection system, characterized by comprising: a standard font, and character code storage for the standard of the character; safe fonts, characters and for storing security codes of the character; wherein the said security character is obtained by: said standard font character extraction, encoding arrangement according to the standard, the standard character encoding for linear operation with a preset value in said standard font in said character encoding safe, may be administered to the random character of the security code, and the security code for each character different from each other, the security coded character, said character is stored, the security becomes font, each character in the font security security standard character encoding said encoded in the standard font is formed one to one mapping relation; mapping relationship between the code conversion module, for storing said character encoding standard secure encoding of the character, the mapping relationship between the security and coding and encoding standards, the character code converted from a standard encoded into encoded security； 网络服务器，用于存储安全字库； 计算机，用于在打开所述计算机文档时，从所述网络服务器获取所述安全字库，并将所述计算机文档中的字符根据所述安全字库的安全编码显示。 ; Network server, for storing secure font; the computer, the computer is used when opening the document, the security font acquired from the network server, and the computer security document character font according to the encoding of the security display.

6. 如权利要求5所述的系统，其特征在于，还包括： 存储模块，用于存储所述计算机文档中字符转换后的安全编码。 The system as claimed in claim 5, characterized in that, further comprising: a storage module for storing the encoded security document character conversion computer.

7. 如权利要求5至6任一项所述的系统，其特征在于，所述安全字库还用于作为所述计算机文档的显示字库。 7. The system according to any one of claims 5-6, characterized in that the further security font for displaying the font as a computer document.

8. 如权利要求5所述的系统，其特征在于，所述标准字库是IS0/IEC10646:2003标准字库，所述安全字库是TrueType字库或者PostScript字库。 8. The system according to claim 5, wherein said standard font is IS0 / IEC10646: 2003 standard font, the font is a TrueType font or security PostScript font.