Encryption and decryption method and device, electronic equipment and readable storage medium

A technology of electronic equipment and an encryption method, applied in the field of electronic equipment and readable storage media, encryption and decryption methods, and devices, capable of solving the problems of low security of Android equipment and the like

Pending Publication Date: 2020-08-04
CHINA MOBILE COMM LTD RES INST +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The present invention provides an encryption and decryption method, device, electronic equipmen

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
  • Encryption and decryption method and device, electronic equipment and readable storage medium
  • Encryption and decryption method and device, electronic equipment and readable storage medium
  • Encryption and decryption method and device, electronic equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0078] figure 1 A schematic diagram of an encryption process provided by an embodiment of the present invention, the process includes the following steps:

[0079] S101: Obtain the first SO library function to be encrypted in the SO library file.

[0080] The encryption method provided by the embodiment of the present invention is applied to an electronic device, and the electronic device is an electronic device installed with an Android system. In addition, third-party software or algorithms for performing the encryption process may also be installed in the electronic device.

[0081] An SO library file is stored in the electronic device, and an SO library function is stored in the SO library file, and the SO library function may include functions such as core algorithms, encryption and decryption methods, and protocols.

[0082] The electronic device can determine the first SO library function to be encrypted. Specifically, it can be preset which SO library functions need ...

Embodiment 2

[0096] On the basis of the foregoing embodiments, in an embodiment of the present invention, said obtaining the first SO library function to be encrypted in the SO library file includes:

[0097] In the SO library file, determine the first section header table for recording section table information;

[0098] Determine the first section table where the first SO library function is located in the first section header table;

[0099] Find the first identification information, the first initial storage location and the first occupied storage space size of the first SO library function in the first section table;

[0100] A first SO library function that acquires the first identification information stored in the storage space corresponding to the first initial storage location and the size of the first occupied storage space.

[0101] In order to improve the search speed of the first SO library function to be encrypted, in the embodiment of the present invention, the first SO li...

Embodiment 3

[0120] On the basis of the above embodiments, in the embodiment of the present invention, after replacing the first SO library function with the encrypted first SO library function in the SO library file, the method further includes:

[0121] Determine the size of the storage space occupied by the encrypted first SO library function;

[0122] The size of the first occupied storage space saved in the first section table is updated to the size of the occupied storage space of the encrypted first SO library function.

[0123] The size of the storage space occupied by the SO library function before and after encryption may change. In order to ensure the accuracy of the decryption in the subsequent decryption process, the storage space occupied by the encrypted first SO library function is used in the embodiment of the present invention. The size updates the size of the storage space occupied by the first SO library function.

[0124] The process for the electronic device to deter...

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 an encryption and decryption method and apparatus, an electronic device and a readable storage medium. The method comprises the steps of obtaining a to-be-encrypted first SO library function in an SO library file; adopting an encryption algorithm corresponding to the first SO library function to encrypt the first SO library function; and replacing the first SO library function with the encrypted first SO library function in the SO library file. The encryption algorithm corresponding to the to-be-encrypted SO library function is adopted to encrypt the to-be-encrypted SOlibrary function, so that the SO library is prevented from being packaged for the second time and reversely analyzed by a disassembling tool to a certain extent, and the safety of Android equipment isimproved.

Description

technical field [0001] The invention relates to the technical field of software security, in particular to an encryption and decryption method, device, electronic equipment and a readable storage medium. Background technique [0002] The SO library under the Android system mainly stores core algorithms, encryption and decryption methods, protocols, etc., but the existing SO library is usually not encrypted, so the SO library is easily repackaged and easily reversed by IDA and other disassembly tools, resulting in Android devices, that is, electronic devices installed with an Android system, have reduced security. Contents of the invention [0003] The invention provides an encryption and decryption method, device, electronic equipment and readable storage medium, which are used to solve the problem of low security of Android equipment in the prior art. [0004] The present invention provides an encryption method applied to electronic equipment, the method comprising: [...

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
IPC IPC(8): G06F21/14
CPCG06F21/14
Inventor 石松泉
Owner CHINA MOBILE COMM LTD RES INST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products