[go: up one dir, main page]

CN111988132A - Automatic encryption and decryption device, method, device and storage medium - Google Patents

Automatic encryption and decryption device, method, device and storage medium Download PDF

Info

Publication number
CN111988132A
CN111988132A CN202010794247.0A CN202010794247A CN111988132A CN 111988132 A CN111988132 A CN 111988132A CN 202010794247 A CN202010794247 A CN 202010794247A CN 111988132 A CN111988132 A CN 111988132A
Authority
CN
China
Prior art keywords
encryption
decryption
data
type
algorithm
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
CN202010794247.0A
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.)
Shanghai Zhongtongji Network Technology Co Ltd
Original Assignee
Shanghai Zhongtongji Network Technology Co Ltd
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 Shanghai Zhongtongji Network Technology Co Ltd filed Critical Shanghai Zhongtongji Network Technology Co Ltd
Priority to CN202010794247.0A priority Critical patent/CN111988132A/en
Publication of CN111988132A publication Critical patent/CN111988132A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
    • 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/0478Network 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 applying multiple layers of encryption, e.g. nested tunnels or encrypting the content with a first key and then with at least a second key
    • 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

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)
  • Power Engineering (AREA)
  • Storage Device Security (AREA)

Abstract

本发明涉及一种自动加解密装置、方法、设备和存储介质,该装置包括:数据获取单元,配置为用于获取用户发送的数据加解密请求,并将数据加解密请求发送至加解密单元;数据加解密请求包括加解密类型和待加解密数据;加解密算法存储单元,配置为用于存储预设加解密算法;预设加解密算法的种类至少为两种;加解密单元,配置为用于根据数据加解密请求确定出加解密类型和待加解密数据,根据加解密类型从加解密算法存储单元中调用目标加解密算法,根据目标加解密算法处理待加解密数据。本申请的自动加解密装置通过预先存储多种加解密算法,使其能够支持用户对机密数据进行单层加密或多层加密,满足了用户需要对机密数据进行多层加密的需求。

Figure 202010794247

The present invention relates to an automatic encryption and decryption device, method, equipment and storage medium. The device includes: a data acquisition unit, configured to acquire a data encryption and decryption request sent by a user, and send the data encryption and decryption request to the encryption and decryption unit; The data encryption and decryption request includes the encryption and decryption type and the data to be encrypted and decrypted; the encryption and decryption algorithm storage unit is configured to store preset encryption and decryption algorithms; the types of preset encryption and decryption algorithms are at least two; the encryption and decryption unit is configured to use Determine the encryption/decryption type and the data to be encrypted/decrypted according to the data encryption/decryption request, call the target encryption/decryption algorithm from the encryption/decryption algorithm storage unit according to the encryption/decryption type, and process the to-be-encrypted/decrypted data according to the target encryption/decryption algorithm. The automatic encryption and decryption device of the present application stores multiple encryption and decryption algorithms in advance, so that it can support users to perform single-layer encryption or multi-layer encryption on confidential data, and meet the user's requirement for multi-layer encryption of confidential data.

Figure 202010794247

Description

自动加解密装置、方法、设备和存储介质Automatic encryption and decryption device, method, device and storage medium

技术领域technical field

本发明涉及数据加解密技术领域,具体涉及一种自动加解密装置、方法、设备和存储介质。The present invention relates to the technical field of data encryption and decryption, in particular to an automatic encryption and decryption device, method, device and storage medium.

背景技术Background technique

数据加密又称密码学,指通过加密算法和加密密钥将明文转变为密文。数据解密则是通过解密算法和解密密钥将密文恢复为明文。对数据进行加密后可保证该数据不会被其他用户所获取,有利于保障数据的安全性。Data encryption, also known as cryptography, refers to converting plaintext into ciphertext through encryption algorithms and encryption keys. Data decryption is to restore the ciphertext to plaintext through the decryption algorithm and decryption key. After the data is encrypted, it can be ensured that the data will not be obtained by other users, which is conducive to ensuring the security of the data.

目前,用户多采用通过数据加解密软件来对机密数据进行加解密,相关技术的数据加解密软件仅支持单层加密方式,然而为了防止机密数据被泄露或篡改,用户需要对机密数据进行多层加密,这使得相关技术的加解密软件不能满足用户进行多层加密的需求。At present, users mostly use data encryption and decryption software to encrypt and decrypt confidential data. Data encryption and decryption software of related technologies only supports single-layer encryption. However, in order to prevent confidential data from being leaked or tampered with, users need to perform multi-layer encryption on confidential data. Encryption, which makes the encryption and decryption software of the related art unable to meet the needs of users for multi-layer encryption.

发明内容SUMMARY OF THE INVENTION

有鉴于此,为了在一定程度上解决相关技术存在的问题,本发明提供了一种自动加解密装置、方法、设备和存储介质。In view of this, in order to solve the problems existing in the related art to a certain extent, the present invention provides an automatic encryption and decryption apparatus, method, device and storage medium.

本发明采用如下技术方案:The present invention adopts following technical scheme:

第一方面,本发明提供了一种自动加解密装置,包括:In a first aspect, the present invention provides an automatic encryption and decryption device, comprising:

数据获取单元,配置为用于获取用户发送的数据加解密请求,并将所述数据加解密请求发送至加解密单元;所述数据加解密请求包括加解密类型和待加解密数据;所述加解密类型为单层加解密或多层加解密;a data acquisition unit, configured to acquire a data encryption/decryption request sent by a user, and send the data encryption/decryption request to the encryption/decryption unit; the data encryption/decryption request includes the encryption/decryption type and the data to be encrypted and decrypted; the encryption/decryption request The decryption type is single-layer encryption and decryption or multi-layer encryption and decryption;

加解密算法存储单元,配置为用于存储预设加解密算法;所述预设加解密算法的种类至少为两种;an encryption/decryption algorithm storage unit, configured to store a preset encryption/decryption algorithm; there are at least two types of the preset encryption/decryption algorithm;

所述加解密单元,配置为用于根据所述数据加解密请求确定出所述加解密类型和所述待加解密数据,并根据所述加解密类型从所述加解密算法存储单元中调用目标加解密算法,以及根据所述目标加解密算法处理所述待加解密数据。The encryption/decryption unit is configured to determine the encryption/decryption type and the data to be encrypted/decrypted according to the data encryption/decryption request, and call a target from the encryption/decryption algorithm storage unit according to the encryption/decryption type encryption and decryption algorithm, and process the data to be encrypted and decrypted according to the target encryption and decryption algorithm.

进一步的,所述加解密算法存储单元还配置为用于接收并存储用户上传的自定义加解密算法。Further, the encryption/decryption algorithm storage unit is further configured to receive and store the user-defined encryption/decryption algorithm uploaded by the user.

进一步的,所述加解密单元包括主线程子单元和工作线程子单元;Further, the encryption and decryption unit includes a main thread subunit and a worker thread subunit;

所述主线程子单元配置为用于接收所述数据获取单元发送的所述数据加解密请求,根据所述数据加解密请求确定出所述加解密类型和所述待加解密数据,以及根据所述加解密类型从所述加解密算法存储单元中调用目标加解密算法,将所述目标加解密算法和所述数据加解密请求发送至所述工作线程子单元;The main thread subunit is configured to receive the data encryption/decryption request sent by the data acquisition unit, determine the encryption/decryption type and the data to be encrypted/decrypted according to the data encryption/decryption request, and determine the encryption/decryption type according to the data encryption/decryption request; The encryption/decryption type calls the target encryption/decryption algorithm from the encryption/decryption algorithm storage unit, and sends the target encryption/decryption algorithm and the data encryption/decryption request to the worker thread subunit;

所述工作线程子单元用于根据预设工作线程响应逻辑、所述目标加解密算法和所述加解密类型处理所述待加解密数据,得出结果数据,并将所述结果数据发送至所述主线程子单元;The worker thread subunit is used to process the data to be encrypted and decrypted according to the preset worker thread response logic, the target encryption/decryption algorithm and the encryption/decryption type, obtain the result data, and send the result data to the the main thread subunit;

所述主线程子单元还用于根据预设主线程响应逻辑接收所述结果数据,并将所述结果数据放入预设内存中。The main thread subunit is further configured to receive the result data according to the preset main thread response logic, and put the result data into the preset memory.

进一步的,所述加解密算法存储单元还配置为用于支持用户下载所述预设加解密算法。Further, the encryption/decryption algorithm storage unit is further configured to support the user to download the preset encryption/decryption algorithm.

进一步的,当所述加解密类型为多层加解密时,所述加解密单元具体配置为:Further, when the encryption and decryption type is multi-layer encryption and decryption, the encryption and decryption unit is specifically configured as:

根据所述数据加解密请求确定出所述多层加解密中所有的加解密方式和各所述加解密方式的加解密顺序,以及所述待加解密数据;According to the data encryption and decryption request, determine all encryption and decryption methods in the multi-layer encryption and decryption, the encryption and decryption sequence of each encryption and decryption methods, and the data to be encrypted and decrypted;

根据所述所有的加解密方式从所述加解密算法存储单元中调用所述目标加解密算法;Call the target encryption/decryption algorithm from the encryption/decryption algorithm storage unit according to all the encryption/decryption methods;

根据所述所有的加解密方式和所述目标加解密算法按照各所述加解密方式的加解密顺序依次处理所述待加解密数据。According to all the encryption/decryption methods and the target encryption/decryption algorithm, the to-be-encrypted/decrypted data is processed in sequence according to the encryption/decryption sequence of each encryption/decryption method.

第二方面,本发明提供了一种自动加解密方法,通过本发明所述的自动加解密装置实现,该方法包括:In the second aspect, the present invention provides an automatic encryption and decryption method, which is realized by the automatic encryption and decryption device of the present invention, and the method includes:

数据获取单元获取用户发送的数据加解密请求,并将所述数据加解密请求发送至加解密单元;所述数据加解密请求包括加解密类型和待加解密数据;所述加解密类型为单层加解密或多层加解密;The data acquisition unit acquires the data encryption and decryption request sent by the user, and sends the data encryption and decryption request to the encryption and decryption unit; the data encryption and decryption request includes the encryption and decryption type and the data to be encrypted and decrypted; the encryption and decryption type is a single layer Encryption and decryption or multi-layer encryption and decryption;

所述加解密单元根据所述数据加解密请求确定出所述加解密类型和所述待加解密数据,并根据所述加解密类型从加解密算法存储单元中调用目标加解密算法,以及根据所述目标加解密算法处理所述待加解密数据;所述加解密算法存储单元存储有预设加解密算法;所述预设加解密算法的种类至少为两种。The encryption/decryption unit determines the encryption/decryption type and the data to be encrypted/decrypted according to the data encryption/decryption request, and calls the target encryption/decryption algorithm from the encryption/decryption algorithm storage unit according to the encryption/decryption type; The target encryption/decryption algorithm processes the to-be-encrypted/decrypted data; the encryption/decryption algorithm storage unit stores a preset encryption/decryption algorithm; the preset encryption/decryption algorithm has at least two types.

进一步的,所述数据获取单元获取用户发送的数据加解密请求,具体为:Further, the data acquisition unit acquires the data encryption and decryption request sent by the user, specifically:

所述数据获取单元根据用户的选择加解密方式操作获取所述加解密类型;所述选择加解密方式操作为在预设选择模块中选择目标加解密类型;所述目标加解密类型为所述单层加解密或所述多层加解密;The data acquisition unit obtains the encryption/decryption type according to the user's selected encryption/decryption mode operation; the selected encryption/decryption mode operation is to select a target encryption/decryption type in a preset selection module; the target encryption/decryption type is the single encryption/decryption type. Layer encryption and decryption or the multi-layer encryption and decryption;

所述数据获取单元获取用户发送的所述待加解密数据,并根据所述加解密类型和所述待加解密数据确定出所述数据加解密请求。The data acquisition unit acquires the data to be encrypted and decrypted sent by the user, and determines the data encryption and decryption request according to the encryption and decryption type and the data to be encrypted and decrypted.

进一步的,所述加解密类型还可以为自定义加解密;Further, the encryption and decryption type can also be custom encryption and decryption;

所述数据获取单元获取用户发送的数据加解密请求,具体为:The data acquisition unit acquires the data encryption and decryption request sent by the user, specifically:

所述数据获取单元根据用户的上传自定义加解密算法操作获取所述加解密类型;所述加解密类型为自定义加解密;The data obtaining unit obtains the encryption/decryption type according to the user's uploading custom encryption/decryption algorithm operation; the encryption/decryption type is a custom encryption/decryption type;

所述数据获取单元获取用户发送的所述待加解密数据,并根据所述加解密类型和所述待加解密数据确定出所述数据加解密请求。The data acquisition unit acquires the data to be encrypted and decrypted sent by the user, and determines the data encryption and decryption request according to the encryption and decryption type and the data to be encrypted and decrypted.

第三方面,本发明提供了一种自动加解密设备,包括:In a third aspect, the present invention provides an automatic encryption and decryption device, comprising:

处理器,以及与所述处理器相连接的存储器;a processor, and a memory connected to the processor;

所述存储器用于存储计算机程序,所述计算机程序用于执行本发明所述的自动加解密方法;The memory is used to store a computer program, and the computer program is used to execute the automatic encryption and decryption method of the present invention;

所述处理器用于调用并执行所述存储器中的所述计算机程序。The processor is used to invoke and execute the computer program in the memory.

第四方面,本发明提供了一种存储介质,所述存储介质存储有计算机程序,所述计算机程序被处理器执行时,实现本发明所述的自动加解密方法中的各个步骤。In a fourth aspect, the present invention provides a storage medium, the storage medium stores a computer program, and when the computer program is executed by a processor, each step in the automatic encryption and decryption method of the present invention is implemented.

本发明采用以上技术方案,一种自动加解密装置,包括:数据获取单元,配置为用于获取用户发送的数据加解密请求,并将所述数据加解密请求发送至加解密单元;所述数据加解密请求包括加解密类型和待加解密数据;所述加解密类型为单层加解密或多层加解密;加解密算法存储单元,配置为用于存储预设加解密算法;所述预设加解密算法的种类至少为两种;所述加解密单元,配置为用于根据所述数据加解密请求确定出所述加解密类型和所述待加解密数据,并根据所述加解密类型从所述加解密算法存储单元中调用目标加解密算法,以及根据所述目标加解密算法处理所述待加解密数据。基于此,本申请的自动加解密装置预先存储有多种加解密算法,使得本申请的自动加解密装置能够支持用户对机密数据进行单层加密或多层加密,满足了用户需要对机密数据进行多层加密的需求。The present invention adopts the above technical solutions, an automatic encryption and decryption device, comprising: a data acquisition unit, configured to acquire a data encryption and decryption request sent by a user, and send the data encryption and decryption request to the encryption and decryption unit; the data The encryption and decryption request includes the encryption and decryption type and the data to be encrypted and decrypted; the encryption and decryption type is single-layer encryption and decryption or multi-layer encryption and decryption; the encryption and decryption algorithm storage unit is configured to store a preset encryption and decryption algorithm; the preset encryption and decryption algorithm There are at least two types of encryption and decryption algorithms; the encryption and decryption unit is configured to determine the encryption and decryption type and the data to be encrypted and decrypted according to the data encryption and decryption request, and from the encryption and decryption type according to the encryption and decryption type. A target encryption and decryption algorithm is called in the encryption and decryption algorithm storage unit, and the data to be encrypted and decrypted is processed according to the target encryption and decryption algorithm. Based on this, the automatic encryption and decryption device of the present application stores a variety of encryption and decryption algorithms in advance, so that the automatic encryption and decryption device of the present application can support users to perform single-layer encryption or multi-layer encryption on confidential data, and meet the needs of users to encrypt and decrypt confidential data. The need for multiple layers of encryption.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1是本发明实施例提供的一种自动加解密装置的结构示意图。FIG. 1 is a schematic structural diagram of an automatic encryption and decryption device provided by an embodiment of the present invention.

图2是本发明实施例提供的一种显示子单元的显示界面。FIG. 2 is a display interface of a display subunit provided by an embodiment of the present invention.

图3是本发明实施例提供的一种自动加解密方法的流程示意图。FIG. 3 is a schematic flowchart of an automatic encryption and decryption method provided by an embodiment of the present invention.

图4是本发明实施例提供的一种自动加解密设备的结构示意图。FIG. 4 is a schematic structural diagram of an automatic encryption and decryption device provided by an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将对本发明的技术方案进行详细的描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所得到的所有其它实施方式,都属于本发明所保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be described in detail below. Obviously, the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other implementations obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present invention.

图1是本发明实施例提供的一种自动加解密装置的结构示意图。如图1所示,本实施例的自动加解密装置包括:数据获取单元11、加解密算法存储单元12和加解密单元13。FIG. 1 is a schematic structural diagram of an automatic encryption and decryption device provided by an embodiment of the present invention. As shown in FIG. 1 , the automatic encryption/decryption apparatus in this embodiment includes: a data acquisition unit 11 , an encryption/decryption algorithm storage unit 12 , and an encryption/decryption unit 13 .

其中,数据获取单元11,配置为用于获取用户发送的数据加解密请求,并将所述数据加解密请求发送至加解密单元;所述数据加解密请求包括加解密类型和待加解密数据;所述加解密类型为单层加解密或多层加解密;加解密算法存储单元12,配置为用于存储预设加解密算法;所述预设加解密算法的种类至少为两种;所述加解密单元13,配置为用于根据所述数据加解密请求确定出所述加解密类型和所述待加解密数据,并根据所述加解密类型从所述加解密算法存储单元中调用目标加解密算法,以及根据所述目标加解密算法处理所述待加解密数据。Wherein, the data obtaining unit 11 is configured to obtain the data encryption and decryption request sent by the user, and send the data encryption and decryption request to the encryption and decryption unit; the data encryption and decryption request includes the encryption and decryption type and the data to be encrypted and decrypted; The encryption/decryption type is single-layer encryption/decryption or multi-layer encryption/decryption; the encryption/decryption algorithm storage unit 12 is configured to store a preset encryption/decryption algorithm; the preset encryption/decryption algorithm has at least two types; the The encryption/decryption unit 13 is configured to determine the encryption/decryption type and the to-be-encrypted/decrypted data according to the data encryption/decryption request, and to call the target encryption/decryption unit from the encryption/decryption algorithm storage unit according to the encryption/decryption type. decryption algorithm, and process the data to be encrypted and decrypted according to the target encryption and decryption algorithm.

具体的,数据加解密请求分为数据加密请求和数据解密请求,数据加密请求包括加密类型和待加密数据,数据解密请求包括解密类型和待解密数据。数据获取单元11获取用户发送的数据加解密请求为数据加密请求或数据解密请求。Specifically, the data encryption and decryption request is divided into a data encryption request and a data decryption request. The data encryption request includes the encryption type and the data to be encrypted, and the data decryption request includes the decryption type and the data to be decrypted. The data acquisition unit 11 acquires the data encryption and decryption request sent by the user as a data encryption request or a data decryption request.

单层加解密为对待加解密数据进行单次加解密;多层加解密为对待加解密数据进行多次加解密。Single-layer encryption and decryption is to perform single encryption and decryption of the data to be encrypted and decrypted; multi-layer encryption and decryption is to perform multiple encryption and decryption of the data to be encrypted and decrypted.

数据获取单元11中包括显示子单元和获取子单元,显示子单元配置为显示自动加解密装置支持的所有加解密方式,并根据用户的选择操作获取用户发送的加解密类型,以及将所述加解密类型发送至获取子单元。在一个具体的例子中,图2是本发明实施例提供的一种显示子单元的显示界面。如图2所示,本实施例的显示子单元显示有多种加密方式和多种解密方式,每个加密方式前和每个解密方式前均设置选择框,用户通过勾选该选择框来选中对应的加密方式或解密方式,当用户选中某加密方式或某解密方式后,对应的选择框内将显示有对勾。The data acquisition unit 11 includes a display subunit and an acquisition subunit, and the display subunit is configured to display all encryption and decryption methods supported by the automatic encryption and decryption device, and to obtain the encryption and decryption type sent by the user according to the user's selection operation, and to encrypt and decrypt the encryption and decryption methods. The decryption type is sent to the get subunit. In a specific example, FIG. 2 is a display interface of a display subunit provided by an embodiment of the present invention. As shown in FIG. 2 , the display subunit of this embodiment displays multiple encryption methods and multiple decryption methods. A selection box is set before each encryption method and before each decryption method. The user selects the selection box by checking the selection box. The corresponding encryption method or decryption method, when the user selects a certain encryption method or a certain decryption method, a check mark will be displayed in the corresponding selection box.

在具体的应用过程中,显示子单元根据用户的选择次数和选择顺序来确定用户发送的加解密类型,具体为:当用户只进行了一次加解密方式选择时,显示子单元根据用户的选择操作确定用户发送的加解密类型为单层加解密,该单层加密包括用户选中的加解密方式。然后显示子单元将用户选中的加解密方式发送至获取子单元。当用户进行了至少两次加解密方式选择时,显示子单元根据用户的选择操作确定用户发送的加解密类型为多层加解密,该多层加密包括用户选中的所有加解密方式和各被选中的加解密方式对应的选中顺序。然后显示子单元将用户选中的所有加解密方式和各被选中的加解密方式对应的选中顺序发送至获取子单元。In the specific application process, the display subunit determines the encryption/decryption type sent by the user according to the selection times and selection order of the user. It is determined that the encryption/decryption type sent by the user is single-layer encryption/decryption, and the single-layer encryption includes the encryption/decryption mode selected by the user. Then the display subunit sends the encryption/decryption method selected by the user to the acquisition subunit. When the user selects the encryption/decryption mode at least twice, the display sub-unit determines, according to the user's selection operation, that the encryption/decryption type sent by the user is multi-layer encryption/decryption, and the multi-layer encryption includes all encryption/decryption modes selected by the user and each selected The selection order corresponding to the encryption and decryption methods. Then the display subunit sends all the encryption/decryption methods selected by the user and the selection sequence corresponding to each selected encryption/decryption method to the acquisition subunit.

获取子单元用户接收显示子单元发送的加解密类型和待加解密数据,并将其发送至加解密单元13。The acquisition subunit user receives and displays the encryption/decryption type and the data to be encrypted/decrypted sent by the subunit, and sends them to the encryption/decryption unit 13 .

当加解密类型为单层加解密时,加解密单元13在根据数据加解密请求确定出加解密类型和待加解密数据后,根据加解密类型从加解密算法存储单元12中调用目标加解密算法,然后根据该目标加解密算法处理待加解密数据。当加解密类型为多层加解密时,加解密单元13首先根据数据加解密请求确定出多层加解密对应的所有加解密方式和各加解密方式对应的加解密顺序,以及待加解密数据。然后根据加解密类型(各加解密方式)从加解密算法存储单元12中调用目标加解密算法。最后加解密单元13根据目标加解密算法按照各加解密方式对应的加解密顺序处理待加解密数据。When the encryption/decryption type is single-layer encryption/decryption, after determining the encryption/decryption type and the data to be encrypted/decrypted according to the data encryption/decryption request, the encryption/decryption unit 13 calls the target encryption/decryption algorithm from the encryption/decryption algorithm storage unit 12 according to the encryption/decryption type , and then process the data to be encrypted and decrypted according to the target encryption and decryption algorithm. When the encryption/decryption type is multi-layer encryption/decryption, the encryption/decryption unit 13 first determines all encryption/decryption methods corresponding to the multi-layer encryption/decryption method, the encryption/decryption sequence corresponding to each encryption/decryption method, and the data to be encrypted and decrypted according to the data encryption/decryption request. Then, the target encryption/decryption algorithm is called from the encryption/decryption algorithm storage unit 12 according to the encryption/decryption type (each encryption/decryption method). Finally, the encryption/decryption unit 13 processes the data to be encrypted/decrypted according to the target encryption/decryption algorithm according to the encryption/decryption sequence corresponding to each encryption/decryption method.

在一个具体的例子中,数据获取单元11获取用户发送的数据加解密请求中包括多层加密和待加密数据,其中多层加密具体为首先对待加密数据进行MD5加密,然后对待加密数据进行base64加密。加解密单元13接收到数据获取单元11发送的数据加解密请求后,根据多层加密从解密算法存储单元12调用与MD5加密和base64加密对应的目标加密算法,目标加密算法可以为多种加密算法;根据目标加密算法首先对待加密数据进行MD5加密,然后对待加密数据进行base64加密。In a specific example, the data acquisition unit 11 acquires the data encryption and decryption request sent by the user, including multi-layer encryption and data to be encrypted, wherein the multi-layer encryption is specifically to first perform MD5 encryption on the to-be-encrypted data, and then perform base64 encryption on the to-be-encrypted data . After the encryption and decryption unit 13 receives the data encryption and decryption request sent by the data acquisition unit 11, it calls the target encryption algorithm corresponding to MD5 encryption and base64 encryption from the decryption algorithm storage unit 12 according to the multi-layer encryption, and the target encryption algorithm can be a variety of encryption algorithms. ; According to the target encryption algorithm, MD5 encryption is performed on the encrypted data first, and then base64 encryption is performed on the encrypted data.

本发明采用以上技术方案,一种自动加解密装置,包括:数据获取单元,配置为用于获取用户发送的数据加解密请求,并将所述数据加解密请求发送至加解密单元;所述数据加解密请求包括加解密类型和待加解密数据;所述加解密类型为单层加解密或多层加解密;加解密算法存储单元,配置为用于存储预设加解密算法;所述预设加解密算法的种类至少为两种;所述加解密单元,配置为用于根据所述数据加解密请求确定出所述加解密类型和所述待加解密数据,并根据所述加解密类型从所述加解密算法存储单元中调用目标加解密算法,以及根据所述目标加解密算法处理所述待加解密数据。基于此,本申请的自动加解密装置预先存储有多种加解密算法,使得本申请的自动加解密装置能够支持用户对机密数据进行单层加密或多层加密,满足了用户需要对机密数据进行多层加密的需求。The present invention adopts the above technical solutions, an automatic encryption and decryption device, comprising: a data acquisition unit, configured to acquire a data encryption and decryption request sent by a user, and send the data encryption and decryption request to the encryption and decryption unit; the data The encryption and decryption request includes the encryption and decryption type and the data to be encrypted and decrypted; the encryption and decryption type is single-layer encryption and decryption or multi-layer encryption and decryption; the encryption and decryption algorithm storage unit is configured to store a preset encryption and decryption algorithm; the preset encryption and decryption algorithm There are at least two types of encryption and decryption algorithms; the encryption and decryption unit is configured to determine the encryption and decryption type and the data to be encrypted and decrypted according to the data encryption and decryption request, and from the encryption and decryption type according to the encryption and decryption type. A target encryption and decryption algorithm is called in the encryption and decryption algorithm storage unit, and the data to be encrypted and decrypted is processed according to the target encryption and decryption algorithm. Based on this, the automatic encryption and decryption device of the present application stores a variety of encryption and decryption algorithms in advance, so that the automatic encryption and decryption device of the present application can support users to perform single-layer encryption or multi-layer encryption on confidential data, and meet the needs of users to encrypt and decrypt confidential data. The need for multiple layers of encryption.

此外,本申请的自动加解密装置能够提供多种加解密方式的自由组合,实现不同种的多层加解密的目的,使得本申请的自动加解密装置应用场景更广,更能满足用户的多种加解密需求,使得用户体验性更好。In addition, the automatic encryption and decryption device of the present application can provide a free combination of various encryption and decryption methods to achieve the purpose of different kinds of multi-layer encryption and decryption, so that the automatic encryption and decryption device of the present application has wider application scenarios and can better meet the needs of users. Encryption and decryption requirements make the user experience better.

进一步的,加解密算法存储单元12还配置为用于接收并存储用户上传的自定义加解密算法。Further, the encryption/decryption algorithm storage unit 12 is further configured to receive and store the user-defined encryption/decryption algorithm uploaded by the user.

具体的,加解密算法存储单元12还配置为用于接收并存储用户上传的自定义加解密算法,例如,加解密算法存储单元12还配置为用于接收并存储用户上传的jar包。当加解密算法存储单元12接收并存储用户上传的自定义加解密算法后,使得本申请的自动加解密装置能够根据用户上传的自定义加解密算法处理待加解密数据,使得本申请的自动加解密装置能够实现更多的加解密方式,更能满足用户的加解密需求。Specifically, the encryption/decryption algorithm storage unit 12 is further configured to receive and store the user-defined encryption/decryption algorithm uploaded by the user. For example, the encryption/decryption algorithm storage unit 12 is further configured to receive and store the jar package uploaded by the user. After the encryption/decryption algorithm storage unit 12 receives and stores the custom encryption/decryption algorithm uploaded by the user, the automatic encryption/decryption device of the present application can process the data to be encrypted and decrypted according to the custom encryption/decryption algorithm uploaded by the user, so that the automatic encryption/decryption algorithm of the present application can process the data to be encrypted and decrypted The decryption device can implement more encryption and decryption methods, and can better meet the user's encryption and decryption requirements.

进一步的,加解密单元13包括主线程子单元和工作线程子单元。Further, the encryption/decryption unit 13 includes a main thread subunit and a worker thread subunit.

所述主线程子单元配置为用于接收所述数据获取单元发送的所述数据加解密请求,根据所述数据加解密请求确定出所述加解密类型和所述待加解密数据,以及根据所述加解密类型从所述加解密算法存储单元中调用目标加解密算法,将所述目标加解密算法和所述数据加解密请求发送至所述工作线程子单元。The main thread subunit is configured to receive the data encryption/decryption request sent by the data acquisition unit, determine the encryption/decryption type and the data to be encrypted/decrypted according to the data encryption/decryption request, and determine the encryption/decryption type according to the data encryption/decryption request; The encryption/decryption type calls the target encryption/decryption algorithm from the encryption/decryption algorithm storage unit, and sends the target encryption/decryption algorithm and the data encryption/decryption request to the worker thread subunit.

所述工作线程子单元用于根据预设工作线程响应逻辑、所述目标加解密算法和所述加解密类型处理所述待加解密数据,得出结果数据,并将所述结果数据发送至所述主线程子单元。The worker thread subunit is used to process the data to be encrypted and decrypted according to the preset worker thread response logic, the target encryption/decryption algorithm and the encryption/decryption type, obtain the result data, and send the result data to the Describe the main thread subunit.

具体的,预设工作线程响应逻辑可以是:一旦工作线程子单元监听到主线程子单元发送的目标加解密算法和数据加解密请求时,根据目标加解密算法和加解密类型处理待加解密数据,得出结果数据,并将结果数据发送至主线程子单元。Specifically, the preset working thread response logic may be: once the working thread subunit monitors the target encryption/decryption algorithm and data encryption/decryption request sent by the main thread subunit, process the data to be encrypted and decrypted according to the target encryption/decryption algorithm and encryption/decryption type , get the result data, and send the result data to the main thread subunit.

所述主线程子单元还用于根据预设主线程响应逻辑接收所述结果数据,并将所述结果数据放入预设内存中。The main thread subunit is further configured to receive the result data according to the preset main thread response logic, and put the result data into the preset memory.

具体的,预设主线程响应逻辑可以是:主线程子单元一旦监听到工作线程子单元回传的结果数据后,接收该结果数据,并将该结果数据放入预设内存中。预设内存支持用户下载该结果数据。Specifically, the preset main thread response logic may be: once the main thread subunit monitors the result data returned by the worker thread subunit, it receives the result data, and puts the result data into the preset memory. The preset memory supports the user to download the result data.

进一步的,加解密算法存储单元12还配置为用于支持用户下载预设加解密算法。Further, the encryption/decryption algorithm storage unit 12 is further configured to support the user to download the preset encryption/decryption algorithm.

具体的,加解密算法存储单元12还配置为用于支持用户下载预设加解密算法和编译后可直接调用的自定义加解密算法,使得相关软件可以直接使用用户通过加解密算法存储单元12下载的加解密算法,丰富了本申请的自动加解密装置的功能。Specifically, the encryption and decryption algorithm storage unit 12 is also configured to support users to download preset encryption and decryption algorithms and custom encryption and decryption algorithms that can be directly invoked after compilation, so that relevant software can be directly downloaded by users through the encryption and decryption algorithm storage unit 12 The encryption and decryption algorithm of the invention enriches the functions of the automatic encryption and decryption device of the present application.

图3是本发明实施例提供的一种自动加解密方法的流程示意图。本实施例的自动加解密方法通过本申请所述的自动加解密装置实现。如图3所示,本实施例的自动加解密方法包括:FIG. 3 is a schematic flowchart of an automatic encryption and decryption method provided by an embodiment of the present invention. The automatic encryption and decryption method in this embodiment is implemented by the automatic encryption and decryption device described in this application. As shown in Figure 3, the automatic encryption and decryption method of this embodiment includes:

S301、数据获取单元获取用户发送的数据加解密请求,并将所述数据加解密请求发送至加解密单元;所述数据加解密请求包括加解密类型和待加解密数据;所述加解密类型为单层加解密或多层加解密。S301. The data acquisition unit acquires the data encryption and decryption request sent by the user, and sends the data encryption and decryption request to the encryption and decryption unit; the data encryption and decryption request includes the encryption and decryption type and the data to be encrypted and decrypted; the encryption and decryption type is Single-layer encryption and decryption or multi-layer encryption and decryption.

S302、所述加解密单元根据所述数据加解密请求确定出所述加解密类型和所述待加解密数据,并根据所述加解密类型从加解密算法存储单元中调用目标加解密算法,以及根据所述目标加解密算法处理所述待加解密数据;所述加解密算法存储单元存储有预设加解密算法;所述预设加解密算法的种类至少为两种。S302. The encryption/decryption unit determines the encryption/decryption type and the data to be encrypted/decrypted according to the data encryption/decryption request, and calls the target encryption/decryption algorithm from the encryption/decryption algorithm storage unit according to the encryption/decryption type, and The data to be encrypted and decrypted is processed according to the target encryption/decryption algorithm; the encryption/decryption algorithm storage unit stores a preset encryption/decryption algorithm; the preset encryption/decryption algorithm has at least two types.

进一步的,所述数据获取单元获取用户发送的数据加解密请求,具体为:Further, the data acquisition unit acquires the data encryption and decryption request sent by the user, specifically:

所述数据获取单元根据用户的选择加解密方式操作获取所述加解密类型;所述选择加解密方式操作为在预设选择模块中选择目标加解密类型;所述目标加解密类型为所述单层加解密或所述多层加解密。The data acquisition unit obtains the encryption/decryption type according to the user's selected encryption/decryption mode operation; the selected encryption/decryption mode operation is to select a target encryption/decryption type in a preset selection module; the target encryption/decryption type is the single encryption/decryption type. Layer encryption and decryption or the multi-layer encryption and decryption.

所述数据获取单元获取用户发送的所述待加解密数据,并根据所述加解密类型和所述待加解密数据确定出所述数据加解密请求。The data acquisition unit acquires the data to be encrypted and decrypted sent by the user, and determines the data encryption and decryption request according to the encryption and decryption type and the data to be encrypted and decrypted.

进一步的,所述加解密类型还可以为自定义加解密。Further, the encryption/decryption type may also be a custom encryption/decryption type.

所述数据获取单元获取用户发送的数据加解密请求,具体为:The data acquisition unit acquires the data encryption and decryption request sent by the user, specifically:

所述数据获取单元根据用户的上传自定义加解密算法操作获取所述加解密类型;所述加解密类型为自定义加解密。The data acquisition unit acquires the encryption/decryption type according to an operation of a user-defined encryption/decryption algorithm uploaded; the encryption/decryption type is a user-defined encryption/decryption type.

所述数据获取单元获取用户发送的所述待加解密数据,并根据所述加解密类型和所述待加解密数据确定出所述数据加解密请求。The data acquisition unit acquires the data to be encrypted and decrypted sent by the user, and determines the data encryption and decryption request according to the encryption and decryption type and the data to be encrypted and decrypted.

本实施的自动加解密方法通过本申请上述实施例的自动加解密装置实现,具备相应的技术特征和有益效果,在此不再赘述。The automatic encryption and decryption method of this embodiment is realized by the automatic encryption and decryption apparatus of the above-mentioned embodiments of the present application, and has corresponding technical features and beneficial effects, which will not be repeated here.

图4是本发明实施例提供的一种自动加解密设备的结构示意图。如图4所示,本实施例的自动加解密设备,包括:FIG. 4 is a schematic structural diagram of an automatic encryption and decryption device provided by an embodiment of the present invention. As shown in Figure 4, the automatic encryption and decryption device of this embodiment includes:

处理器410,以及与处理器410相连接的存储器420。A processor 410, and a memory 420 connected to the processor 410.

存储器420用于存储计算机程序,所述计算机程序用于执行本申请所述的自动加解密方法。The memory 420 is used to store a computer program, and the computer program is used to execute the automatic encryption and decryption method described in this application.

处理器410用于调用并执行存储器420中的所述计算机程序。The processor 410 is used to invoke and execute the computer program in the memory 420 .

本申请还提供了一种存储介质,所述存储介质存储有计算机程序,所述计算机程序被处理器执行时,实现本申请所述的自动加解密方法中的各个步骤。The present application also provides a storage medium, where a computer program is stored in the storage medium, and when the computer program is executed by a processor, each step in the automatic encryption and decryption method described in the present application is implemented.

可以理解的是,上述各实施例中相同或相似部分可以相互参考,在一些实施例中未详细说明的内容可以参见其他实施例中相同或相似的内容。It can be understood that, the same or similar parts in the above embodiments may refer to each other, and the content not described in detail in some embodiments may refer to the same or similar content in other embodiments.

需要说明的是,在本发明的描述中,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本发明的描述中,除非另有说明,“多个”的含义是指至少两个。It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for the purpose of description, and should not be construed as indicating or implying relative importance. Furthermore, in the description of the present invention, unless otherwise specified, the meaning of "plurality" means at least two.

流程示意图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any description of a process or method in the flow diagrams or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing a particular logical function or step of the process , and the scope of the preferred embodiments of the invention includes alternative implementations in which the functions may be performed out of the order shown or discussed, including performing the functions substantially concurrently or in the reverse order depending upon the functions involved, which should It is understood by those skilled in the art to which the embodiments of the present invention belong.

应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention may be implemented in hardware, software, firmware or a combination thereof. In the above-described embodiments, various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or a combination of the following techniques known in the art: Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, Programmable Gate Arrays (PGA), Field Programmable Gate Arrays (FPGA), etc.

本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those skilled in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the program can be stored in a computer-readable storage medium. When executed, one or a combination of the steps of the method embodiment is included.

此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically alone, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium.

上述提到的存储介质可以是只读存储器,磁盘或光盘等。The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, and the like.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, description with reference to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples", etc., mean specific features described in connection with the embodiment or example , structure, material or feature is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it should be understood that the above-mentioned embodiments are exemplary and should not be construed as limiting the present invention. Embodiments are subject to variations, modifications, substitutions and variations.

Claims (10)

1.一种自动加解密装置,其特征在于,包括:1. an automatic encryption and decryption device, is characterized in that, comprises: 数据获取单元,配置为用于获取用户发送的数据加解密请求,并将所述数据加解密请求发送至加解密单元;所述数据加解密请求包括加解密类型和待加解密数据;所述加解密类型为单层加解密或多层加解密;a data acquisition unit, configured to acquire a data encryption/decryption request sent by a user, and send the data encryption/decryption request to the encryption/decryption unit; the data encryption/decryption request includes the encryption/decryption type and the data to be encrypted and decrypted; the encryption/decryption request The decryption type is single-layer encryption and decryption or multi-layer encryption and decryption; 加解密算法存储单元,配置为用于存储预设加解密算法;所述预设加解密算法的种类至少为两种;an encryption/decryption algorithm storage unit, configured to store a preset encryption/decryption algorithm; there are at least two types of the preset encryption/decryption algorithm; 所述加解密单元,配置为用于根据所述数据加解密请求确定出所述加解密类型和所述待加解密数据,并根据所述加解密类型从所述加解密算法存储单元中调用目标加解密算法,以及根据所述目标加解密算法处理所述待加解密数据。The encryption/decryption unit is configured to determine the encryption/decryption type and the data to be encrypted/decrypted according to the data encryption/decryption request, and call a target from the encryption/decryption algorithm storage unit according to the encryption/decryption type encryption and decryption algorithm, and process the data to be encrypted and decrypted according to the target encryption and decryption algorithm. 2.根据权利要求1所述的自动加解密装置,其特征在于,所述加解密算法存储单元还配置为用于接收并存储用户上传的自定义加解密算法。2 . The automatic encryption and decryption device according to claim 1 , wherein the encryption and decryption algorithm storage unit is further configured to receive and store a user-defined encryption and decryption algorithm uploaded by the user. 3 . 3.根据权利要求1所述的自动加解密装置,其特征在于,所述加解密单元包括主线程子单元和工作线程子单元;3. The automatic encryption and decryption device according to claim 1, wherein the encryption and decryption unit comprises a main thread subunit and a worker thread subunit; 所述主线程子单元配置为用于接收所述数据获取单元发送的所述数据加解密请求,根据所述数据加解密请求确定出所述加解密类型和所述待加解密数据,以及根据所述加解密类型从所述加解密算法存储单元中调用目标加解密算法,将所述目标加解密算法和所述数据加解密请求发送至所述工作线程子单元;The main thread subunit is configured to receive the data encryption/decryption request sent by the data acquisition unit, determine the encryption/decryption type and the data to be encrypted/decrypted according to the data encryption/decryption request, and determine the encryption/decryption type according to the data encryption/decryption request; The encryption/decryption type calls the target encryption/decryption algorithm from the encryption/decryption algorithm storage unit, and sends the target encryption/decryption algorithm and the data encryption/decryption request to the worker thread subunit; 所述工作线程子单元用于根据预设工作线程响应逻辑、所述目标加解密算法和所述加解密类型处理所述待加解密数据,得出结果数据,并将所述结果数据发送至所述主线程子单元;The worker thread subunit is used to process the data to be encrypted and decrypted according to the preset worker thread response logic, the target encryption/decryption algorithm and the encryption/decryption type, obtain the result data, and send the result data to the the main thread subunit; 所述主线程子单元还用于根据预设主线程响应逻辑接收所述结果数据,并将所述结果数据放入预设内存中。The main thread subunit is further configured to receive the result data according to the preset main thread response logic, and put the result data into the preset memory. 4.根据权利要求1所述的自动加解密装置,其特征在于,所述加解密算法存储单元还配置为用于支持用户下载所述预设加解密算法。4 . The automatic encryption and decryption device according to claim 1 , wherein the encryption and decryption algorithm storage unit is further configured to support a user to download the preset encryption and decryption algorithm. 5 . 5.根据权利要求1所述的自动加解密装置,其特征在于,当所述加解密类型为多层加解密时,所述加解密单元具体配置为:5. The automatic encryption and decryption device according to claim 1, wherein when the encryption and decryption type is multi-layer encryption and decryption, the encryption and decryption unit is specifically configured as: 根据所述数据加解密请求确定出所述多层加解密中所有的加解密方式和各所述加解密方式的加解密顺序,以及所述待加解密数据;According to the data encryption and decryption request, determine all encryption and decryption methods in the multi-layer encryption and decryption, the encryption and decryption sequence of each encryption and decryption methods, and the data to be encrypted and decrypted; 根据所述所有的加解密方式从所述加解密算法存储单元中调用所述目标加解密算法;Call the target encryption/decryption algorithm from the encryption/decryption algorithm storage unit according to all the encryption/decryption methods; 根据所述所有的加解密方式和所述目标加解密算法按照各所述加解密方式的加解密顺序依次处理所述待加解密数据。According to all the encryption/decryption methods and the target encryption/decryption algorithm, the to-be-encrypted/decrypted data is processed in sequence according to the encryption/decryption sequence of each encryption/decryption method. 6.一种自动加解密方法,通过如权利要求1所述的自动加解密装置实现,其特征在于,包括:6. an automatic encryption and decryption method, realized by the automatic encryption and decryption device as claimed in claim 1, is characterized in that, comprises: 数据获取单元获取用户发送的数据加解密请求,并将所述数据加解密请求发送至加解密单元;所述数据加解密请求包括加解密类型和待加解密数据;所述加解密类型为单层加解密或多层加解密;The data acquisition unit acquires the data encryption and decryption request sent by the user, and sends the data encryption and decryption request to the encryption and decryption unit; the data encryption and decryption request includes the encryption and decryption type and the data to be encrypted and decrypted; the encryption and decryption type is a single layer Encryption and decryption or multi-layer encryption and decryption; 所述加解密单元根据所述数据加解密请求确定出所述加解密类型和所述待加解密数据,并根据所述加解密类型从加解密算法存储单元中调用目标加解密算法,以及根据所述目标加解密算法处理所述待加解密数据;所述加解密算法存储单元存储有预设加解密算法;所述预设加解密算法的种类至少为两种。The encryption/decryption unit determines the encryption/decryption type and the data to be encrypted/decrypted according to the data encryption/decryption request, and calls the target encryption/decryption algorithm from the encryption/decryption algorithm storage unit according to the encryption/decryption type; The target encryption/decryption algorithm processes the to-be-encrypted/decrypted data; the encryption/decryption algorithm storage unit stores a preset encryption/decryption algorithm; the preset encryption/decryption algorithm has at least two types. 7.根据权利要求6所述的自动加解密方法,其特征在于,所述数据获取单元获取用户发送的数据加解密请求,具体为:7. automatic encryption and decryption method according to claim 6, is characterized in that, described data acquisition unit obtains the data encryption and decryption request that user sends, is specially: 所述数据获取单元根据用户的选择加解密方式操作获取所述加解密类型;所述选择加解密方式操作为在预设选择模块中选择目标加解密类型;所述目标加解密类型为所述单层加解密或所述多层加解密;The data acquisition unit obtains the encryption/decryption type according to the user's selected encryption/decryption mode operation; the selected encryption/decryption mode operation is to select a target encryption/decryption type in a preset selection module; the target encryption/decryption type is the single encryption/decryption type. Layer encryption and decryption or the multi-layer encryption and decryption; 所述数据获取单元获取用户发送的所述待加解密数据,并根据所述加解密类型和所述待加解密数据确定出所述数据加解密请求。The data acquisition unit acquires the data to be encrypted and decrypted sent by the user, and determines the data encryption and decryption request according to the encryption and decryption type and the data to be encrypted and decrypted. 8.根据权利要求6所述的自动加解密方法,其特征在于,所述加解密类型还可以为自定义加解密;8. automatic encryption and decryption method according to claim 6, is characterized in that, described encryption and decryption type can also be self-defined encryption and decryption; 所述数据获取单元获取用户发送的数据加解密请求,具体为:The data acquisition unit acquires the data encryption and decryption request sent by the user, specifically: 所述数据获取单元根据用户的上传自定义加解密算法操作获取所述加解密类型;所述加解密类型为自定义加解密;The data obtaining unit obtains the encryption/decryption type according to the user's uploading custom encryption/decryption algorithm operation; the encryption/decryption type is a custom encryption/decryption type; 所述数据获取单元获取用户发送的所述待加解密数据,并根据所述加解密类型和所述待加解密数据确定出所述数据加解密请求。The data acquisition unit acquires the data to be encrypted and decrypted sent by the user, and determines the data encryption and decryption request according to the encryption and decryption type and the data to be encrypted and decrypted. 9.一种自动加解密设备,其特征在于,包括:9. An automatic encryption and decryption device, characterized in that, comprising: 处理器,以及与所述处理器相连接的存储器;a processor, and a memory connected to the processor; 所述存储器用于存储计算机程序,所述计算机程序用于执行权利要求6-8任一项所述的自动加解密方法;The memory is used to store a computer program, and the computer program is used to execute the automatic encryption and decryption method according to any one of claims 6-8; 所述处理器用于调用并执行所述存储器中的所述计算机程序。The processor is used to invoke and execute the computer program in the memory. 10.一种存储介质,其特征在于,所述存储介质存储有计算机程序,所述计算机程序被处理器执行时,实现如权利要求6-8任一项所述的自动加解密方法中的各个步骤。10. A storage medium, characterized in that the storage medium stores a computer program, and when the computer program is executed by a processor, each of the automatic encryption and decryption methods according to any one of claims 6-8 is implemented. step.
CN202010794247.0A 2020-08-10 2020-08-10 Automatic encryption and decryption device, method, device and storage medium Pending CN111988132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010794247.0A CN111988132A (en) 2020-08-10 2020-08-10 Automatic encryption and decryption device, method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010794247.0A CN111988132A (en) 2020-08-10 2020-08-10 Automatic encryption and decryption device, method, device and storage medium

Publications (1)

Publication Number Publication Date
CN111988132A true CN111988132A (en) 2020-11-24

Family

ID=73445328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010794247.0A Pending CN111988132A (en) 2020-08-10 2020-08-10 Automatic encryption and decryption device, method, device and storage medium

Country Status (1)

Country Link
CN (1) CN111988132A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116094754A (en) * 2022-11-29 2023-05-09 中汽创智科技有限公司 Encryption and decryption method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102412967A (en) * 2011-09-29 2012-04-11 用友软件股份有限公司 Data transmission system and method
WO2016058487A1 (en) * 2014-10-16 2016-04-21 阿里巴巴集团控股有限公司 Information processing method and apparatus
US20180074975A1 (en) * 2016-09-13 2018-03-15 Intel Corporation Multi-stage memory integrity method and apparatus
CN108197485A (en) * 2018-01-29 2018-06-22 世纪龙信息网络有限责任公司 terminal data encryption method and system, terminal data decryption method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102412967A (en) * 2011-09-29 2012-04-11 用友软件股份有限公司 Data transmission system and method
WO2016058487A1 (en) * 2014-10-16 2016-04-21 阿里巴巴集团控股有限公司 Information processing method and apparatus
US20180074975A1 (en) * 2016-09-13 2018-03-15 Intel Corporation Multi-stage memory integrity method and apparatus
CN108197485A (en) * 2018-01-29 2018-06-22 世纪龙信息网络有限责任公司 terminal data encryption method and system, terminal data decryption method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116094754A (en) * 2022-11-29 2023-05-09 中汽创智科技有限公司 Encryption and decryption method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US9767295B2 (en) Content based hardware security module assignment to virtual machines
CN103946856B (en) Encryption and decryption processing method, device and equipment
US10650077B2 (en) Providing secure storage of content and controlling content usage by social media applications
US10325109B2 (en) Automatic and dynamic selection of cryptographic modules for different security contexts within a computer network
EP3207488B1 (en) Identifying security boundaries on computing devices
WO2019024230A1 (en) Information encryption and decryption method and device, computer equipment and storage medium
CN105453034A (en) Handle customer events in systems controlled by the Manager
US10229272B2 (en) Identifying security boundaries on computing devices
WO2018177394A1 (en) Method and device for protecting android so file
CN106610863A (en) Virtual machine trusted migration method and apparatus
CN111478974B (en) Network connection method and device, electronic equipment and readable storage medium
CN108880812A (en) The method and system of data encryption
CN111241532A (en) Host login method, device, equipment and storage medium based on board jump machine
CN111988132A (en) Automatic encryption and decryption device, method, device and storage medium
US12294578B2 (en) Zero-trust attestation in cloud computing
CN105404470B (en) Date storage method and safety device, data-storage system
CN114338629A (en) Data processing method, device, equipment and medium
CN106453335B (en) Data transmission method and device
CN117749424A (en) Transmission method, system, electronic device and medium
CN111147481B (en) Data processing system, method, device, medium and equipment
WO2019134278A1 (en) Chat encryption method and apparatus, chat decryption method and apparatus, electronic terminal and readable storage medium
CN116633583A (en) Data security management system, method, equipment and medium
CN114389790A (en) Secure multi-party computing method and device
US10459722B2 (en) Device, system, and method for secure supervisor system calls
CN110855439A (en) HTTP encryption method, device, computer equipment and storage medium

Legal Events

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

Application publication date: 20201124

RJ01 Rejection of invention patent application after publication