Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data encryption method and device

A technology of data encryption and encryption algorithm, which is applied in the field of encryption, can solve problems such as inapplicable memory, and achieve the effects of reducing memory overhead, reducing memory space, and low power consumption

Active Publication Date: 2019-12-10
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problem in the related art that it is not suitable for devices with relatively small memory because it needs to apply for two segments of memory when encrypting, the embodiment of the present invention provides a data encryption method and device

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data encryption method and device
  • Data encryption method and device
  • Data encryption method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0064] figure 1 It is a method flowchart of a data encryption method provided in an embodiment of the present invention. The data encryption method can be applied to low-power embedded devices, and the low-power embedded devices mentioned here refer to devices with very small memory and very high requirements for the use of memory. The data encryption method may include:

[0065] Step 101, apply for a section of memory for the plaintext data that needs to be encrypted according to a predetermined method, the memory includes a first area at the head of the memory and a second area at the end of the memory, the size of the memory is equal to the encrypted plaintext data. The size of the ciphertext data.

[0066] Step 102, writing the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a data encryption method and apparatus, and belongs to the technical field of encryption. The data encryption method comprises the steps of applying for a section of memory for plaintext data needed to be encrypted in a predetermined mode, wherein the size of the memory is equal to the size of ciphertext data obtained after the plaintext data is encrypted; writing the plaintext data into a second region; sequentially reading plaintext data blocks of predetermined sizes from unread plaintext data in the second region, and performing encryption on the read plaintext data blocks according to a predetermined encryption algorithm; and writing the ciphertext data into a first region. According to the method and the apparatus, the memory overhead is reduced and low-power embedded equipment with a relatively small memory is ensured to perform encrypted storage.

Description

technical field [0001] The invention relates to the technical field of encryption, in particular to a data encryption method and device. Background technique [0002] In order to ensure the security of the data, it is usually necessary to encrypt the data. [0003] A common encryption method is as follows: First, apply for two sections of memory in the device's memory, one of which is used to store plaintext, and this section of memory is recorded as the first memory, and the other section of memory is used to store ciphertext. It is recorded as the second memory; then, the plaintext data is read from the first memory, the read plaintext data is encrypted according to a predetermined encryption method, and the encrypted data ciphertext is stored in the second memory. [0004] In the process of realizing the present invention, the inventor found that the related technology has at least the following problems: Since the above-mentioned encryption method needs to apply for two...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F12/02G06F21/78H04L29/06
CPCY02D10/00
Inventor 王炼
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products