[go: up one dir, main page]

CN106899572A - Sterility testing data staging encryption method based on condition random field algorithm - Google Patents

Sterility testing data staging encryption method based on condition random field algorithm Download PDF

Info

Publication number
CN106899572A
CN106899572A CN201710007188.6A CN201710007188A CN106899572A CN 106899572 A CN106899572 A CN 106899572A CN 201710007188 A CN201710007188 A CN 201710007188A CN 106899572 A CN106899572 A CN 106899572A
Authority
CN
China
Prior art keywords
data
result data
random field
conditional random
digital
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201710007188.6A
Other languages
Chinese (zh)
Inventor
周天舒
李泽南
王丰
田雨
李劲松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN201710007188.6A priority Critical patent/CN106899572A/en
Publication of CN106899572A publication Critical patent/CN106899572A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/045Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply hybrid encryption, i.e. combination of symmetric and asymmetric encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general
    • H04L63/205Network architectures or network communication protocols for network security for managing network security; network security policies in general involving negotiation or determination of the one or more network security mechanisms to be used, e.g. by negotiation between the client and the server or between peers or by selection according to the capabilities of the entities involved
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/14Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using a plurality of keys or algorithms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • H04L9/3249Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures using RSA or related signature schemes, e.g. Rabin scheme

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

本发明公开了一种基于条件随机场算法的无菌检测数据分级加密方法,首先对无菌检测过程产生的重要的结果数据进行标注,训练条件随机场模型,识别出重要的结果数据;其次对条件随机场模型识别出的重要的结果数据进行分级加密,将加密后的数据传输到接收方;最后接收方利用可逆的解密过程对数据进行无损还原。本发明用条件随机场方法将无菌检测过程中产生的重要结果数据识别出来,并将其与过程数据区分开进行分级加密。同时,借助数字签名技术有效防止消息被篡改,保证了数据不会泄露。本发明在保证重要的数据信息安全性的前提下,能大幅减少加密时间,提升系统效率。

The invention discloses a classification encryption method for aseptic detection data based on a conditional random field algorithm. Firstly, the important result data generated in the aseptic detection process is marked, and the conditional random field model is trained to identify the important result data; secondly, the important result data is identified. The important result data identified by the conditional random field model is encrypted hierarchically, and the encrypted data is transmitted to the receiver; finally, the receiver uses a reversible decryption process to restore the data without loss. The invention uses a conditional random field method to identify important result data generated in the aseptic testing process, and distinguishes it from process data for hierarchical encryption. At the same time, digital signature technology is used to effectively prevent messages from being tampered with, ensuring that data will not be leaked. On the premise of ensuring the security of important data information, the invention can greatly reduce the encryption time and improve the system efficiency.

Description

基于条件随机场算法的无菌检测数据分级加密方法A Hierarchical Encryption Method for Aseptic Testing Data Based on Conditional Random Field Algorithm

技术领域technical field

本发明属于微生物无菌检测领域,尤其涉及一种基于条件随机场算法的无菌检测数据分级加密方法。The invention belongs to the field of microbial sterility detection, and in particular relates to a method for hierarchical encryption of sterility detection data based on a conditional random field algorithm.

背景技术Background technique

在工业生产中,微生物无菌检测对于保证产品的安全有着重要的意义。近年来,随着信息化和自动化产业的发展,国内在无菌检测领域的研究也逐渐趋于自动化。然而微生物无菌检测智能化水平较低,信息技术利用不足,数据完整性、安全性、可追溯性较差。为了保证无菌检测过程中产生的数据的安全性,需要对其中的重要数据进行加密处理,防止数据信息的泄露或被人为篡改。然而,在整个无菌检测的体系中并非所有数据都是有意义的,大量的过程数据如果与重要的结果数据一起被加密将花费大量时间,降低系统效率。现有的数据加密方法将所有过程数据和结果数据混杂在一起统一进行加密,但是在实际应用中,真正发挥作用的往往只有结果数据。大量的过程数据会增加加密、解密的时间,从而影响系统的效率,随着无菌检测平台的数据量增加,因冗余加密而耗费的时间也越来越多,系统的效率将严重受到影响。In industrial production, microbial sterility testing is of great significance to ensure product safety. In recent years, with the development of informatization and automation industries, domestic research in the field of sterility testing has gradually tended to be automated. However, the level of intelligence in microbial sterility testing is low, the use of information technology is insufficient, and data integrity, security, and traceability are poor. In order to ensure the security of the data generated in the process of sterility testing, it is necessary to encrypt the important data in order to prevent the leakage or artificial tampering of data information. However, not all data is meaningful in the entire sterility testing system. If a large amount of process data is encrypted together with important result data, it will take a lot of time and reduce system efficiency. The existing data encryption method mixes all process data and result data together for encryption, but in practical applications, only the result data is often used. A large amount of process data will increase the time of encryption and decryption, which will affect the efficiency of the system. With the increase of the data volume of the aseptic testing platform, more and more time will be spent due to redundant encryption, and the efficiency of the system will be seriously affected. .

发明内容Contents of the invention

本发明的目的在于针对现有技术的不足,提供一种基于条件随机场算法的无菌检测数据分级加密方法,借助条件随机场(CRF)的方法将在自动化无菌检测过程中产生的重要结果数据识别出来,并对结果数据与过程数据运用对称加密技术、非对称加密技术、数字摘要技术进行分级加密,从本质上解决了因加密数据过多而耗费大量时间的弊端,与现有方法相比具有安全、高效的特点。对最重要的数据进行复杂的加密,对其他数据进行相对简单的加密也将使得系统更为灵活,从最大程度上减少成本、节省时间。The object of the present invention is to aim at the deficiencies in the prior art, provide a kind of sterility detection data graded encryption method based on the conditional random field algorithm, the important result that will produce in the automatic sterility detection process by the method of conditional random field (CRF) The data is identified, and the resulting data and process data are encrypted hierarchically using symmetric encryption technology, asymmetric encryption technology, and digital summary technology, which essentially solves the drawbacks of consuming a lot of time due to too much encrypted data. Compared with existing methods, It has the characteristics of safety and high efficiency. Complex encryption of the most important data and relatively simple encryption of other data will also make the system more flexible, minimizing costs and saving time.

本发明的目的是通过以下技术方案来实现的:一种基于条件随机场算法的无菌检测数据分级加密方法,包括以下步骤:The object of the present invention is achieved by the following technical scheme: a kind of sterility detection data classification encryption method based on conditional random field algorithm, comprises the following steps:

(1)对无菌检测过程产生的重要的结果数据进行标注,训练条件随机场模型,识别出重要的结果数据;(1) Mark the important result data generated in the sterility testing process, train the conditional random field model, and identify the important result data;

(2)对条件随机场模型识别出的重要的结果数据进行级别高的RSA加密,对普通的过程数据进行级别低的DES加密,将加密后的数据传输到接收方;(2) Perform high-level RSA encryption on the important result data identified by the conditional random field model, perform low-level DES encryption on ordinary process data, and transmit the encrypted data to the receiver;

(3)接收方利用可逆的解密过程对数据进行无损还原。(3) The receiver uses a reversible decryption process to restore the data losslessly.

进一步地,所述的步骤1具体包括以下子步骤:Further, the step 1 specifically includes the following sub-steps:

(1.1)选取适量的无菌检测过程产生的数据,等分为两组分别作为训练语料库和测试语料库;(1.1) select the data that an amount of aseptic testing process produces, equally divide into two groups as training corpus and test corpus respectively;

(1.2)将两组语料库进行分词处理;(1.2) Carry out word segmentation processing with two groups of corpora;

(1.3)对经过分词处理的语料库进行BIO标注,标注出重要的结果数据作为命名实体,得到标注的数据集;(1.3) Carry out BIO labeling to the corpus processed through word segmentation, mark out important result data as named entities, and obtain the labeled data set;

(1.4)特征提取,选取单字符、单词、词性标注和正确拼字作为特征集,用训练语料库训练得到条件随机场模型;(1.4) feature extraction, select single character, word, part-of-speech tagging and correct spelling as feature set, obtain conditional random field model with training corpus training;

(1.5)用测试语料库对步骤1.4得到的模型进行测试和校正,得到能够准确识别重要的结果数据的条件随机场模型;(1.5) Test and correct the model obtained in step 1.4 with the test corpus to obtain a conditional random field model that can accurately identify important result data;

(1.6)对于无菌检测过程产生的数据,通过步骤1.5得到的模型识别出重要的结果数据。(1.6) For the data generated in the sterility testing process, important result data are identified through the model obtained in step 1.5.

进一步地,所述的步骤2具体包括以下子步骤:Further, the step 2 specifically includes the following sub-steps:

(2.1)将识别后的数据分为两类:重要的结果数据和普通的过程数据;(2.1) Divide the identified data into two categories: important result data and common process data;

(2.2)将结果数据进行Hash运算得到数字摘要MD,将过程数据进行Hash运算得到数字摘要MD’;(2.2) Hash the result data to obtain the digital summary MD, and perform the Hash operation on the process data to obtain the digital summary MD';

(2.3)在(22047,22048]集合选择n,满足n=p×q,其中p、q均为素数;(2.3) Select n in the set (2 2047 , 2 2048 ], satisfying n=p×q, wherein p and q are both prime numbers;

(2.4)选择e使其与互素且小于 (2.4) Choose e to make it the same as is relatively prime and less than

(2.5)通过公式选择一个小于2048bits的大整数;(2.5) by formula Choose a large integer less than 2048bits;

(2.6)用{e,n}作为公钥,用RSA算法对数字摘要MD、MD’进行加密,得到数字签名DS、DS’;(2.6) Use {e, n} as the public key, use the RSA algorithm to encrypt the digital abstract MD, MD', and obtain the digital signature DS, DS';

(2.7)用RSA的公钥把结果数据、数字签名DS进行加密,得到加密信息E,用DES算法对过程数据、数字签名DS’进行加密,得到加密信息E’;(2.7) Use the public key of RSA to encrypt the result data and digital signature DS to obtain encrypted information E, and use the DES algorithm to encrypt the process data and digital signature DS' to obtain encrypted information E';

(2.8)将加密后的结果数据和过程数据分别打包成数字信封,发送给接收方。(2.8) Pack the encrypted result data and process data into digital envelopes and send them to the receiver.

进一步地,所述的步骤3具体包括以下子步骤:Further, the step 3 specifically includes the following sub-steps:

(3.1)接收数字信封;(3.1) Receive digital envelopes;

(3.2)以{d,n}作为私钥用RSA对E进行解密,得到结果数据和数字签名DS,用DES算法对E’进行解密,得到过程数据和数字签名DS’;(3.2) Use {d,n} as the private key to decrypt E with RSA to obtain the result data and digital signature DS, and use the DES algorithm to decrypt E' to obtain process data and digital signature DS';

(3.3)将结果数据用与之前相同的Hash运算得到数字摘要md,将过程数据用与之前相同的Hash运算得到数字摘要md’;(3.3) Use the same Hash operation on the result data to obtain the digital summary md, and use the same Hash operation on the process data to obtain the digital summary md';

(3.4)以{d,n}作为私钥用RSA对DS进行解密,得到MD,以{d,n}作为私钥用RSA对DS’进行解密,得到MD’;(3.4) Use {d, n} as the private key to decrypt DS with RSA to obtain MD, and use {d, n} as the private key to decrypt DS’ with RSA to obtain MD’;

(3.5)将两个数字摘要MD和md进行比较,MD’和md’进行比较,验证原数据是否被修改。如果二者相同,说明数据没有被篡改,是保密传输的,签名是真实的;否则拒绝该签名。(3.5) Compare the two digital summaries MD and md, MD' and md', and verify whether the original data has been modified. If the two are the same, it means that the data has not been tampered with, is transmitted confidentially, and the signature is authentic; otherwise, the signature is rejected.

本发明的有益效果是:本发明用条件随机场的方法将无菌检测过程中产生的重要结果数据识别出来,并将其与过程数据区分开进行分级加密。对结果数据采用相对复杂的RSA加密提高数据安全性;对过程数据采用相对简单的DES加密提高效率;同时,借助数字签名技术有效防止消息被篡改,保证了数据不会泄露。本发明在保证重要的数据信息安全性的前提下,能大幅减少加密时间,提升系统效率。The beneficial effects of the present invention are: the present invention uses the conditional random field method to identify important result data generated in the aseptic testing process, and distinguishes it from process data for hierarchical encryption. The relatively complex RSA encryption is used for the result data to improve data security; the relatively simple DES encryption is used for the process data to improve efficiency; at the same time, the digital signature technology is used to effectively prevent the message from being tampered with and ensure that the data will not be leaked. On the premise of ensuring the security of important data information, the invention can greatly reduce the encryption time and improve the system efficiency.

附图说明Description of drawings

图1为构建条件随机场模型识别出重要的结果数据流程图;Figure 1 is a flow chart of identifying important result data by constructing a conditional random field model;

图2为加密过程流程图;Fig. 2 is a flowchart of the encryption process;

图3为解密过程流程图。Figure 3 is a flowchart of the decryption process.

具体实施方式detailed description

下面结合附图和具体实施例对本发明作进一步详细说明。The present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments.

本发明提供的一种基于条件随机场算法的无菌检测数据分级加密方法,包括以下步骤:A kind of aseptic detection data hierarchical encryption method based on conditional random field algorithm provided by the present invention comprises the following steps:

(1)构建条件随机场模型识别出重要的结果数据,如图1所示,具体包括以下子步骤:(1) Build a conditional random field model to identify important result data, as shown in Figure 1, specifically including the following sub-steps:

(1.1)选取适量的无菌检测过程产生的数据,等分为两组分别作为训练语料库和测试语料库;(1.1) select the data that an amount of aseptic testing process produces, equally divide into two groups as training corpus and test corpus respectively;

(1.2)将两组语料库进行分词处理;分词指的是将一个汉字序列切分成一个一个单独的词,它是将连续的字序列按照一定的规范重新组合成词序列的过程。我们知道,在英文的行文中,单词之间是以空格作为自然分界符的,而中文只是字、句和段能通过明显的分界符来简单划界,唯独词没有一个形式上的分界符,因此中文分词在中文信息的处理中是十分基础和关键的;(1.2) Segment the two groups of corpora; word segmentation refers to dividing a sequence of Chinese characters into individual words, which is the process of recombining continuous word sequences into word sequences according to certain norms. We know that in English writing, spaces are used as natural delimiters between words, but in Chinese, only words, sentences and paragraphs can be delimited by obvious delimiters, except that words do not have a formal delimiter , so Chinese word segmentation is very basic and critical in the processing of Chinese information;

(1.3)对经过分词处理的语料库进行BIO标注,标注出重要的结果数据作为命名实体,得到标注的数据集;在这里,“B”代表一个实体的开始,“I”代表实体的内容,“O”代表实体外部。一个以BIO标注的注释实体的例子如下表所示:(1.3) Carry out BIO annotation on the corpus processed by word segmentation, annotate important result data as named entities, and obtain annotated data set; here, "B" represents the beginning of an entity, "I" represents the content of the entity, and " O" stands for Outer Entity. An example of an annotation entity annotated with BIO is shown in the following table:

(1.4)特征提取,选取单字符、单词、词性标注和正确拼字作为特征集,用训练语料库训练得到条件随机场模型;其中单字符意味着单个的汉字、标点符号、外文字母和数字。中文的叙事文本的主要特性是它是由一系列连续的汉字组成的,在字与字之间没有空格来隔开,因此,我们还选择单词作为另一个特征。选择词性标注作为机器学习的特征对于中文实体的边界的识别有很好的作用。而正确拼写的特征是用来识别由英文组成的实体。(1.4) Feature extraction, select single characters, words, part-of-speech tagging and correct spelling as feature sets, and use the training corpus to train the conditional random field model; where single characters mean single Chinese characters, punctuation marks, foreign letters and numbers. The main characteristic of Chinese narrative text is that it is composed of a series of consecutive Chinese characters without spaces to separate them. Therefore, we also choose words as another feature. Selecting part-of-speech tagging as the feature of machine learning has a good effect on the recognition of the boundaries of Chinese entities. The correct spelling feature is used to identify entities composed of English.

(1.5)用测试语料库对步骤1.4)得到的模型进行测试和校正,得到能够准确识别重要的结果数据的条件随机场模型;(1.5) test and correct the model obtained in step 1.4) with the test corpus, and obtain a conditional random field model that can accurately identify important result data;

(1.6)对于无菌检测过程产生的数据,通过步骤1.5)得到的模型识别出重要的结果数据。(1.6) For the data generated in the sterility testing process, important result data are identified through the model obtained in step 1.5).

(2)对无菌检测过程产生的数据进行加密,如图2所示,具体包括以下子步骤:(2) Encrypt the data generated in the sterility testing process, as shown in Figure 2, specifically comprising the following sub-steps:

(2.1)将识别后的数据分为两类:重要的结果数据和普通的过程数据;(2.1) Divide the identified data into two categories: important result data and common process data;

(2.2)将结果数据进行Hash运算得到数字摘要MD,将过程数据进行Hash运算得到数字摘要MD’;(2.2) Hash the result data to obtain the digital summary MD, and perform the Hash operation on the process data to obtain the digital summary MD';

(2.3)在(22047,22048]集合选择n,满足n=p×q,其中p、q均为素数;(2.3) Select n in the set (2 2047 , 2 2048 ], satisfying n=p×q, wherein p and q are both prime numbers;

(2.4)选择e使其与互素且小于考虑到既要满足相对安全、又要运算速度快,可以选择65537作为e的值;(2.4) Choose e to make it the same as is relatively prime and less than Considering that it is relatively safe and fast, you can choose 65537 as the value of e;

(2.5)通过公式选择一个小于2048bits的大整数;(2.5) by formula Choose a large integer less than 2048bits;

(2.6)用{e,n}作为公钥,用RSA算法对数字摘要MD、MD’进行加密,得到数字签名DS、DS’;(2.6) Use {e, n} as the public key, use the RSA algorithm to encrypt the digital abstract MD, MD', and obtain the digital signature DS, DS';

(2.7)用RSA的公钥把结果数据、数字签名DS进行加密,得到加密信息E,用DES算法对过程数据、数字签名DS’进行加密,得到加密信息E’;(2.7) Use the public key of RSA to encrypt the result data and digital signature DS to obtain the encrypted information E, and use the DES algorithm to encrypt the process data and digital signature DS' to obtain the encrypted information E';

(2.8)将加密后的结果数据和过程数据分别打包成数字信封,发送给接收方。(2.8) Pack the encrypted result data and process data into digital envelopes and send them to the receiver.

(3)接收方利用可逆的解密过程对数据进行无损还原,如图3所示,具体包括以下子步骤:(3) The receiver uses the reversible decryption process to restore the data losslessly, as shown in Figure 3, which specifically includes the following sub-steps:

(3.1)接收数字信封;(3.1) Receive digital envelopes;

(3.2)以{d,n}作为私钥用RSA对E进行解密,得到结果数据和数字签名DS,用DES算法对E’进行解密,得到过程数据和数字签名DS’;(3.2) Use {d,n} as the private key to decrypt E with RSA to obtain the result data and digital signature DS, and use the DES algorithm to decrypt E' to obtain process data and digital signature DS';

(3.3)将结果数据用与之前相同的Hash运算得到数字摘要md,将过程数据用与之前相同的Hash运算得到数字摘要md’;(3.3) Use the same Hash operation on the result data to obtain the digital summary md, and use the same Hash operation on the process data to obtain the digital summary md';

(3.4)以{d,n}作为私钥用RSA对DS进行解密,得到MD,以{d,n}作为私钥用RSA对DS’进行解密,得到MD’;(3.4) Use {d, n} as the private key to decrypt DS with RSA to obtain MD, and use {d, n} as the private key to decrypt DS’ with RSA to obtain MD’;

(3.5)将两个数字摘要MD和md进行比较,MD’和md’进行比较,验证原数据是否被修改。如果二者相同,说明数据没有被篡改,是保密传输的,签名是真实的;否则拒绝该签名。(3.5) Compare the two digital summaries MD and md, MD' and md', and verify whether the original data has been modified. If the two are the same, it means that the data has not been tampered with, is transmitted confidentially, and the signature is authentic; otherwise, the signature is rejected.

Claims (4)

1.一种基于条件随机场算法的无菌检测数据分级加密方法,其特征在于,包括以下步骤:1. a kind of aseptic detection data hierarchical encryption method based on conditional random field algorithm, it is characterized in that, may further comprise the steps: (1)对无菌检测过程产生的重要的结果数据进行标注,训练条件随机场模型,识别出重要的结果数据;(1) Mark the important result data generated in the sterility testing process, train the conditional random field model, and identify the important result data; (2)对条件随机场模型识别出的重要的结果数据进行级别高的RSA加密,对普通的过程数据进行级别低的DES加密,将加密后的数据传输到接收方;(2) Perform high-level RSA encryption on the important result data identified by the conditional random field model, perform low-level DES encryption on ordinary process data, and transmit the encrypted data to the receiver; (3)接收方利用可逆的解密过程对数据进行无损还原。(3) The receiver uses a reversible decryption process to restore the data losslessly. 2.根据权利要求1所述的一种基于条件随机场算法的无菌检测数据分级加密方法,其特征在于,所述的步骤1具体包括以下子步骤:2. a kind of asepsis detection data hierarchical encryption method based on conditional random field algorithm according to claim 1, it is characterized in that, described step 1 specifically comprises the following sub-steps: (1.1)选取适量的无菌检测过程产生的数据,等分为两组分别作为训练语料库和测试语料库;(1.1) select the data that an amount of aseptic testing process produces, equally divide into two groups as training corpus and test corpus respectively; (1.2)将两组语料库进行分词处理;(1.2) Carry out word segmentation processing with two groups of corpora; (1.3)对经过分词处理的语料库进行BIO标注,标注出重要的结果数据作为命名实体,得到标注的数据集;(1.3) Carry out BIO labeling to the corpus processed through word segmentation, mark out important result data as named entities, and obtain the labeled data set; (1.4)特征提取,选取单字符、单词、词性标注和正确拼字作为特征集,用训练语料库训练得到条件随机场模型;(1.4) feature extraction, select single character, word, part-of-speech tagging and correct spelling as feature set, obtain conditional random field model with training corpus training; (1.5)用测试语料库对步骤1.4得到的模型进行测试和校正,得到能够准确识别重要的结果数据的条件随机场模型;(1.5) Test and correct the model obtained in step 1.4 with the test corpus to obtain a conditional random field model that can accurately identify important result data; (1.6)对于无菌检测过程产生的数据,通过步骤1.5得到的模型识别出重要的结果数据。(1.6) For the data generated in the sterility testing process, important result data are identified through the model obtained in step 1.5. 3.根据权利要求1所述的一种基于条件随机场算法的无菌检测数据分级加密方法,其特征在于,所述的步骤2具体包括以下子步骤:3. a kind of asepsis detection data hierarchical encryption method based on conditional random field algorithm according to claim 1, is characterized in that, described step 2 specifically comprises the following sub-steps: (2.1)将识别后的数据分为两类:重要的结果数据和普通的过程数据;(2.1) Divide the identified data into two categories: important result data and common process data; (2.2)将结果数据进行Hash运算得到数字摘要MD,将过程数据进行Hash运算得到数字摘要MD’;(2.2) Hash the result data to obtain the digital summary MD, and perform the Hash operation on the process data to obtain the digital summary MD'; (2.3)在(22047,22048]集合选择n,满足n=p×q,其中p、q均为素数;(2.3) Select n in the set (2 2047 , 2 2048 ], satisfying n=p×q, wherein p and q are both prime numbers; (2.4)选择e使其与互素且小于 (2.4) Choose e to make it the same as is relatively prime and less than (2.5)通过公式选择一个小于2048bits的大整数;(2.5) by formula Choose a large integer less than 2048bits; (2.6)用{e,n}作为公钥,用RSA算法对数字摘要MD、MD’进行加密,得到数字签名DS、DS’;(2.6) Use {e, n} as the public key, use the RSA algorithm to encrypt the digital abstract MD, MD', and obtain the digital signature DS, DS'; (2.7)用RSA的公钥把结果数据、数字签名DS进行加密,得到加密信息E,用DES算法对过程数据、数字签名DS’进行加密,得到加密信息E’;(2.7) Use the public key of RSA to encrypt the result data and digital signature DS to obtain encrypted information E, and use the DES algorithm to encrypt the process data and digital signature DS' to obtain encrypted information E'; (2.8)将加密后的结果数据和过程数据分别打包成数字信封,发送给接收方。(2.8) Pack the encrypted result data and process data into digital envelopes and send them to the receiver. 4.根据权利要求1所述的一种基于条件随机场算法的无菌检测数据分级加密方法,其特征在于,所述的步骤3具体包括以下子步骤:4. a kind of asepsis detection data hierarchical encryption method based on conditional random field algorithm according to claim 1, is characterized in that, described step 3 specifically comprises the following sub-steps: (3.1)接收数字信封;(3.1) Receive digital envelopes; (3.2)以{d,n}作为私钥用RSA对E进行解密,得到结果数据和数字签名DS,用DES算法对E’进行解密,得到过程数据和数字签名DS’;(3.2) Use {d,n} as the private key to decrypt E with RSA to obtain the result data and digital signature DS, and use the DES algorithm to decrypt E' to obtain process data and digital signature DS'; (3.3)将结果数据用与之前相同的Hash运算得到数字摘要md,将过程数据用与之前相同的Hash运算得到数字摘要md’;(3.3) Use the same Hash operation on the result data to obtain the digital summary md, and use the same Hash operation on the process data to obtain the digital summary md'; (3.4)以{d,n}作为私钥用RSA对DS进行解密,得到MD,以{d,n}作为私钥用RSA对DS’进行解密,得到MD’;(3.4) Use {d, n} as the private key to decrypt DS with RSA to obtain MD, and use {d, n} as the private key to decrypt DS’ with RSA to obtain MD’; (3.5)将两个数字摘要MD和md进行比较,MD’和md’进行比较,验证原数据是否被修改。如果二者相同,说明数据没有被篡改,是保密传输的,签名是真实的;否则拒绝该签名。(3.5) Compare the two digital summaries MD and md, MD' and md', and verify whether the original data has been modified. If the two are the same, it means that the data has not been tampered with, is transmitted confidentially, and the signature is authentic; otherwise, the signature is rejected.
CN201710007188.6A 2017-01-05 2017-01-05 Sterility testing data staging encryption method based on condition random field algorithm Pending CN106899572A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710007188.6A CN106899572A (en) 2017-01-05 2017-01-05 Sterility testing data staging encryption method based on condition random field algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710007188.6A CN106899572A (en) 2017-01-05 2017-01-05 Sterility testing data staging encryption method based on condition random field algorithm

Publications (1)

Publication Number Publication Date
CN106899572A true CN106899572A (en) 2017-06-27

Family

ID=59198285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710007188.6A Pending CN106899572A (en) 2017-01-05 2017-01-05 Sterility testing data staging encryption method based on condition random field algorithm

Country Status (1)

Country Link
CN (1) CN106899572A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109104279A (en) * 2018-08-31 2018-12-28 国网河北省电力有限公司沧州供电分公司 A kind of encryption method of electric power data, system and terminal device
CN109564615A (en) * 2018-10-31 2019-04-02 算丰科技(北京)有限公司 Loading method, device, equipment and the storage medium of model data

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223229A (en) * 2011-06-21 2011-10-19 航天科工深圳(集团)有限公司 Method for safe transmission of data in public network
CN103309926A (en) * 2013-03-12 2013-09-18 中国科学院声学研究所 Chinese and English-named entity identification method and system based on conditional random field (CRF)
CN103944887A (en) * 2014-03-24 2014-07-23 西安电子科技大学 Intrusion event detection method based on hidden conditional random field
CN104268160A (en) * 2014-09-05 2015-01-07 北京理工大学 Evaluation object extraction method based on domain dictionary and semantic roles
US20150161101A1 (en) * 2013-12-05 2015-06-11 Microsoft Corporation Recurrent conditional random fields
CN104750779A (en) * 2015-03-04 2015-07-01 华东师范大学 Chinese multi-class word identification method based on conditional random field
WO2016106383A2 (en) * 2014-12-22 2016-06-30 Robert Bosch Gmbh First-person camera based visual context aware system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223229A (en) * 2011-06-21 2011-10-19 航天科工深圳(集团)有限公司 Method for safe transmission of data in public network
CN103309926A (en) * 2013-03-12 2013-09-18 中国科学院声学研究所 Chinese and English-named entity identification method and system based on conditional random field (CRF)
US20150161101A1 (en) * 2013-12-05 2015-06-11 Microsoft Corporation Recurrent conditional random fields
CN103944887A (en) * 2014-03-24 2014-07-23 西安电子科技大学 Intrusion event detection method based on hidden conditional random field
CN104268160A (en) * 2014-09-05 2015-01-07 北京理工大学 Evaluation object extraction method based on domain dictionary and semantic roles
WO2016106383A2 (en) * 2014-12-22 2016-06-30 Robert Bosch Gmbh First-person camera based visual context aware system
CN104750779A (en) * 2015-03-04 2015-07-01 华东师范大学 Chinese multi-class word identification method based on conditional random field

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
严虹: "《情报保护神-密码》", 31 July 2014, 贵阳:贵州人民出版社 *
刘二根: "《MATLAB与数学实验》", 31 January 2014, 北京国防工业出版社 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109104279A (en) * 2018-08-31 2018-12-28 国网河北省电力有限公司沧州供电分公司 A kind of encryption method of electric power data, system and terminal device
CN109564615A (en) * 2018-10-31 2019-04-02 算丰科技(北京)有限公司 Loading method, device, equipment and the storage medium of model data
WO2020087381A1 (en) * 2018-10-31 2020-05-07 北京比特大陆科技有限公司 Model data loading method and device, apparatus, and storage medium

Similar Documents

Publication Publication Date Title
CN112446207B (en) Title generation method, title generation device, electronic equipment and storage medium
Overdorf et al. Blogs, twitter feeds, and reddit comments: Cross-domain authorship attribution
CN111967242B (en) Text information extraction method, device and equipment
CN102096787B (en) Method and device for hiding information based on word2007 text segmentation
WO2019228466A1 (en) Named entity recognition method, device and apparatus, and storage medium
CN103049436A (en) Method and device for obtaining corpus, method and system for generating translation model and method and system for mechanical translation
CN114118053A (en) Method and device for extracting contract information
CN106547875B (en) An online emergency event detection method for microblog based on sentiment analysis and tagging
Liu et al. An efficient machine-generated data modeling approach based on domain-aware knowledge for intelligent consumer electronics
CN105808523A (en) Method and apparatus for identifying document
CN114722141B (en) Text detection method and device
Hao et al. Semi-supervised disentangled framework for transferable named entity recognition
CN106326210B (en) A kind of associated detecting method and device of text topic and emotion
Zhang et al. Sentence-level rewriting detection
CN104778171A (en) Character string matching system and method
CN106899572A (en) Sterility testing data staging encryption method based on condition random field algorithm
CN114528397A (en) Method, system, medium, computer equipment and terminal for defending against text attack
CN118469005B (en) Medical knowledge graph construction method, system, terminal and storage medium based on large language model
Yang et al. Modality-specific multimodal global enhanced network for text-based visual question answering
Tiwari et al. A novel watermarking scheme for secure relational databases
Wei et al. Joint data augmentation and knowledge distillation for few-shot continual relation extraction
Zhang et al. A novel robust text watermarking for word document
CN114528400A (en) Unified low-sample relation extraction method and device based on multi-selection matching network
Yang et al. Efficient and effective universal adversarial attack against vision-language pre-training models
CN104756138A (en) Information coding method, system and computer-readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170627