Data encryption method, device and storage medium

By using species migration data to generate a service data key and encrypt it, the problem of low data encryption security in the existing technology is solved and a higher data protection effect is achieved.

CN114531302BActive Publication Date: 2024-09-13CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210362172.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-12-28
Filing Date
2022-04-07
Publication Date
2024-09-13
Estimated Expiration
2042-04-07

AI Technical Summary

Technical Problem

The security of data encryption in the existing technology is low and it is easy to be illegally deciphered, leading to the problem of user data leakage.

Method used

By determining the geographical location and species migration data of the target object, the corresponding service data key is generated, and the service data is encrypted based on the key. Dynamic matching security encryption algorithms and multi-mode security strategies are used to improve the security of data encryption.

Benefits of technology

It improves the security of data encryption, reduces the probability of illegal cracking, and provides stronger data protection measures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114531302B_ABST
    Figure CN114531302B_ABST
Patent Text Reader

Abstract

The present application discloses a data encryption method, device and storage medium, wherein the method comprises: responding to a service request initiated by a target object to determine the geographic location of the target object; determining species migration data corresponding to the geographic location of the target object, wherein the species migration data is used to indicate the migration pattern of the species; generating a secret key for service data corresponding to the service request of the target object according to the species migration data, and encrypting the service data corresponding to the service request of the target object according to the secret key. The above technical solution is adopted to solve the problem of low security when encrypting data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a data encryption method, device and storage medium. Background Art

[0002] The current Internet industry has the advantages of scale, systematization and continuous high-speed development. With the continuous development of Internet technology, illegal key decryption technology is rapidly iterating, which makes the unchanging data security strategy constantly being decrypted, causing the problem of user data leakage. Therefore, while enjoying the convenience brought by the industry advantages of the Internet industry, users also pay more attention to the security and confidentiality of their own information data. The current encryption strategy in the industry generally uses a core encryption algorithm with a security key to encrypt data. This security key is mostly composed of a combination of characters with special meanings and random strings, timestamps, etc., or is directly generated using a key tool. The keys obtained by these key generation methods are generally used by non-strong security data encryption algorithms, but due to the easy availability of keys, there are certain security risks, resulting in low security when using data encryption algorithms with these keys to encrypt data.

[0003] In the related art, there is a problem of low security when encrypting data.

[0004] In view of the problem of low security when encrypting data in related technologies, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a data encryption method, device and storage medium to at least solve the problem of low security when encrypting data in the related art.

[0006] According to an embodiment of the present application, a data encryption method is provided, including: responding to a service request initiated by a target object to determine the geographic location of the target object; determining species migration data corresponding to the geographic location of the target object, wherein the species migration data is used to indicate the migration pattern of the species; generating a secret key for service data corresponding to the service request of the target object based on the species migration data, and encrypting the service data corresponding to the service request of the target object based on the secret key.

[0007] In an exemplary embodiment, determining the species migration data corresponding to the geographic location of the target object includes: obtaining the species migration tracks within the coverage area corresponding to the geographic location of the target object; classifying the species migration tracks within the coverage area corresponding to the geographic location according to species types to obtain multiple groups of species migration data; wherein any group of species migration data among the multiple groups of species migration data includes at least one of the following: species type, migration longitude, migration latitude, migration altitude, migration country code, and migration climate.

[0008] In an exemplary embodiment, a key for service data corresponding to a service request of the target object is generated based on the species migration data, including: determining a security level of the service data corresponding to the service request of the target object; matching a corresponding key generation algorithm for the service data based on the security level, wherein an encryption level of the key generation algorithm corresponds to the security level; when the encryption level of the key generation algorithm includes a normal security level, generating a first key string using the key generation algorithm and the species migration data; when the encryption level of the key generation algorithm includes a strong security level, generating a second key string using the key generation algorithm and the species migration data; wherein the first key string or the second key string is a key for the service data corresponding to the service request of the target object.

[0009] In an exemplary embodiment, when the encryption level of the key generation algorithm includes a normal security level, generating a first key string using the key generation algorithm and the species migration data includes: determining a migration altitude in the species migration data and a migration country code in the species migration data; determining the first key string F by the following formula: F=G×A / r 2 ; wherein, the G represents the migration country code in the species migration data, the A represents the first security string, wherein the first security string is used to indicate the initial security string corresponding to the service data, and the r represents the migration altitude in the species migration data.

[0010] In an exemplary embodiment, when the encryption level of the key generation algorithm includes a strong security level, a second key string is generated using the key generation algorithm and the species migration data, including: determining the migration altitude in the species migration data, the migration country code in the species migration data, the species type in the species migration data, and the migration climate in the species migration data; determining a random number of the key generation algorithm, and determining the timestamp of the service data corresponding to the service request of the target object; generating a second security string using the species type in the species migration data, the migration climate in the species migration data, the random number of the key generation algorithm, and the timestamp of the service data corresponding to the service request of the target object; and determining the concatenation result of the first key string and the second security string as the second key string.

[0011] In an exemplary embodiment, before determining the first secret key string F, the method also includes: determining the migration longitude in the species migration data and the migration latitude in the species migration data; and generating the first security string using the migration longitude in the species migration data and the migration latitude in the species migration data.

[0012] In an exemplary embodiment, generating the first security string using the migration longitude in the species migration data and the migration latitude in the species migration data includes: determining the product of the migration longitude in the species migration data and the migration latitude in the species migration data as the first security string; or, determining the sum of the migration longitude in the species migration data and the migration latitude in the species migration data as the first security string; or, processing the migration longitude in the species migration data and the migration latitude in the species migration data into at least two encrypted data respectively according to preset rules; determining the multiplication result corresponding to the non-zero numerical value in each of the at least two encrypted data; and determining the concatenation result of all the multiplication results as the first security string.

[0013] In an exemplary embodiment, the product of the migration longitude in the species migration data and the migration latitude in the species migration data is determined as the first safety string, including: obtaining a conversion rule for format conversion of the migration longitude in the species migration data and the migration latitude in the species migration data, wherein the conversion rule includes a longitude conversion coefficient and a latitude conversion coefficient; determining a first sum value between longitude values ​​corresponding to different longitude units in the migration longitude in the species migration data, and determining a second sum value between latitude values ​​corresponding to different latitude units in the migration latitude in the species migration data; and determining a third sum value of the product of the first sum value and the longitude conversion coefficient and the product of the second sum value and the latitude conversion coefficient as the first safety string.

[0014] According to another embodiment of the embodiment of the present application, a data encryption device is also provided, including: a first determination module, used to respond to a service request initiated by a target object to determine the geographical location of the target object; a second determination module, used to determine the species migration data corresponding to the geographical location of the target object, wherein the species migration data is used to indicate the migration pattern of the species; an encryption module, used to generate a secret key for the service data corresponding to the service request of the target object based on the species migration data, and encrypt the service data corresponding to the service request of the target object based on the secret key.

[0015] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned data encryption method when running.

[0016] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the data encryption method through the computer program.

[0017] In an embodiment of the present application, the geographic location of the target object is determined through a service request initiated by the target object, and the species migration data corresponding to the geographic location of the target object is determined, a secret key for the service data corresponding to the service request of the target object is generated according to the species migration data, and the service data corresponding to the service request of the target object is encrypted according to the secret key. The above technical solution solves the problem of low security when encrypting data, thereby improving the security of data encryption. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0019] Figure 1 It is a hardware structure block diagram of a computer terminal of a data encryption method according to an embodiment of the present application;

[0020] Figure 2 is a flow chart of a data encryption method according to an embodiment of the present application;

[0021] Figure 3 is a schematic diagram of a key generation process according to an embodiment of the present application;

[0022] Figure 4 is a schematic diagram of a classification process of species migration data according to an embodiment of the present application;

[0023] Figure 5 It is a structural block diagram of a data encryption device according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 1 1 is a hardware structure block diagram of a computer terminal of a data encryption method according to an embodiment of the present application. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. In an exemplary embodiment, the computer terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Equivalent functions or comparisons shown Figure 1 A different configuration with more features is shown.

[0027] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the data encryption method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0028] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0029] In this embodiment, a data encryption method is provided, which is applied to the above-mentioned computer terminal. Figure 2 : is a flow chart of a data encryption method according to an embodiment of the present application, the flow includes the following steps:

[0030] Step S202, responding to a service request initiated by a target object to determine a geographic location of the target object;

[0031] Step S204, determining species migration data corresponding to the geographical location of the target object, wherein the species migration data is used to indicate the migration pattern of the species;

[0032] It should be noted that the above-mentioned species migration data can be understood as data on the migration behavior of organisms over a certain distance due to their own reasons or environmental reasons, which has a periodic pattern.

[0033] Step S206: generating a secret key for service data corresponding to the service request of the target object according to the species migration data, and encrypting the service data corresponding to the service request of the target object according to the secret key.

[0034] Through the above steps, a service request initiated by a target object is responded to to determine the geographic location of the target object; species migration data corresponding to the geographic location of the target object is determined, wherein the species migration data is used to indicate the migration pattern of the species; a key for service data corresponding to the service request of the target object is generated according to the species migration data, and the service data corresponding to the service request of the target object is encrypted according to the key, thereby solving the problem of low security when encrypting data in related technologies, and thereby improving the security of data encryption.

[0035] It should be noted that the service data corresponding to the service request of the above-mentioned target object corresponds to the identity information of the target object. Different security levels of the service data can be determined according to different identity information. For example, in one embodiment, when the identity information of the above-mentioned target object is a member customer, the security level of the member customer's service data is determined to be a strong security level; when the identity information of the above-mentioned target object is an ordinary customer, the security level of the member customer's service data is determined to be an ordinary security level.

[0036] In other embodiments, the service data corresponding to the service request of the target object also corresponds to the data type of the service data, and the security level of the service data can be determined according to the data type of the service data. For example, in one embodiment, when the data type of the service data is private data, the security level of the member customer's service data is determined to be a strong security level; when the data type of the service data is daily data, the security level of the member customer's service data is determined to be a normal security level. Among them, private data can include the user's identity document information, communication information, consumption information, and image information, etc., and daily data can be understood as data that the user allows to be disclosed.

[0037] Optionally, in an exemplary embodiment, determining the species migration data corresponding to the geographic location of the target object includes: obtaining the species migration tracks within the coverage area corresponding to the geographic location of the target object; classifying the species migration tracks within the coverage area corresponding to the geographic location according to species type to obtain multiple groups of species migration data; wherein any group of species migration data among the multiple groups of species migration data includes at least one of the following: species type, migration longitude, migration latitude, migration altitude, migration country code, and migration climate.

[0038] It should be noted that the coverage range corresponding to the geographical location of the target object may be understood as a coverage range with the geographical location of the target object as the center and a preset distance as the radius.

[0039] It should be noted that the above-mentioned species types are represented by species names, including units such as species, genus, family, order, class, phylum, and kingdom. In addition, new units can be added at will, such as stocks, groups, tribes, and groups, or secondary units can be attached under the units. The present invention does not limit this.

[0040] It should be noted that the above-mentioned migration longitude and migration latitude represent the geographical locations that the organisms corresponding to the above-mentioned species types pass through when performing migration behavior.

[0041] It should be noted that the above-mentioned migration country area code can be understood as the code assigned to each country by the International Telecommunication Union.

[0042] It should be noted that the above-mentioned migration climate can be understood as the climate of the areas through which the organisms corresponding to the above-mentioned species types pass during migration, including tropical rainforest climate, tropical savanna climate, tropical desert climate, tropical monsoon climate, Mediterranean climate, temperate oceanic climate, temperate continental climate, and temperate monsoon climate, but not limited to these.

[0043] Optionally, in an exemplary embodiment, a key for service data corresponding to the service request of the target object is generated based on the species migration data, including: determining the security level of the service data corresponding to the service request of the target object; matching a corresponding key generation algorithm for the service data according to the security level, wherein the encryption level of the key generation algorithm corresponds to the security level; when the encryption level of the key generation algorithm includes a normal security level, using the key generation algorithm and the species migration data to generate a first key string; when the encryption level of the key generation algorithm includes a strong security level, using the key generation algorithm and the species migration data to generate a second key string; wherein the first key string or the second key string is the key for the service data corresponding to the service request of the target object.

[0044] Optionally, in an exemplary embodiment, when the encryption level of the key generation algorithm includes a normal security level, generating a first key string using the key generation algorithm and the species migration data includes: determining the migration altitude in the species migration data and the migration country code in the species migration data; determining the first key string F by the following formula: F = G × A / r 2 ; wherein, the G represents the migration country code in the species migration data, the A represents the first security string, wherein the first security string is used to indicate the initial security string corresponding to the service data, and the r represents the migration altitude in the species migration data.

[0045] Optionally, in an exemplary embodiment, when the encryption level of the key generation algorithm includes a strong security level, a second key string is generated using the key generation algorithm and the species migration data, including: determining the migration altitude in the species migration data, the migration country code in the species migration data, the species type in the species migration data, and the migration climate in the species migration data; determining the random number of the key generation algorithm, and determining the timestamp of the service data corresponding to the service request of the target object; generating a second security string using the species type in the species migration data, the migration climate in the species migration data, the random number of the key generation algorithm, and the timestamp of the service data corresponding to the service request of the target object; and determining the concatenation result of the first key string and the second security string as the second key string.

[0046] Optionally, in an exemplary embodiment, before determining the first secret key string F, the method also includes: determining the migration longitude in the species migration data and the migration latitude in the species migration data; and generating the first security string using the migration longitude in the species migration data and the migration latitude in the species migration data.

[0047] Optionally, in an exemplary embodiment, generating the first security string using the migration longitude in the species migration data and the migration latitude in the species migration data includes: determining the product of the migration longitude in the species migration data and the migration latitude in the species migration data as the first security string; or, determining the sum of the migration longitude in the species migration data and the migration latitude in the species migration data as the first security string; or, processing the migration longitude in the species migration data and the migration latitude in the species migration data into at least two encrypted data according to preset rules; determining the multiplication result corresponding to the non-zero numerical value in each of the at least two encrypted data; and determining the concatenation result of all the multiplication results as the first security string.

[0048] It should be noted that the above-mentioned preset rules can be understood as rules for encrypting the longitude values ​​of the migration longitudes in the species migration data and the latitude values ​​of the migration latitudes in the species migration data. For example, the longitude values ​​and latitude values ​​can be processed into different letters according to the size of the numbers, and the processed letters can be used as encrypted data.

[0049] Optionally, in an exemplary embodiment, the product of the migration longitude in the species migration data and the migration latitude in the species migration data is determined as the first safety string, including: obtaining a conversion rule for format conversion of the migration longitude in the species migration data and the migration latitude in the species migration data, wherein the conversion rule includes a longitude conversion coefficient and a latitude conversion coefficient; determining a first sum value between longitude values ​​corresponding to different longitude units in the migration longitude in the species migration data, and determining a second sum value between latitude values ​​corresponding to different latitude units in the migration latitude in the species migration data; and determining a third sum value of the product of the first sum value and the longitude conversion coefficient and the product of the second sum value and the latitude conversion coefficient as the first safety string.

[0050] In one embodiment, when a user orders a system product, the security level of the data in the order request initiated by the user and the user's geographic location can be intelligently analyzed to obtain the encryption type of the security encryption algorithm that matches the user's request (equivalent to the encryption level of the above-mentioned key generation algorithm) and the key that needs to be used. Here, the process of generating the second key string based on a key generation algorithm with a strong security level is illustrated by way of example.

[0051] Specifically, firstly, the migration longitude in the species migration data and the migration latitude in the species migration data are converted into a format, and the conversion algorithm (equivalent to the conversion rule of the above format conversion) is as follows:

[0052] 1. Longitude conversion

[0053] East Longitude: The corresponding longitude units include degrees, minutes, and seconds. Add different longitude units to the corresponding longitude values ​​and multiply by the east longitude coefficient (equivalent to the longitude conversion coefficient mentioned above), which can be set to 1;

[0054] West Longitude: West Longitude coefficient (equivalent to the longitude conversion coefficient mentioned above), can be set to 2;

[0055] 2. Latitude conversion

[0056] North Latitude: The corresponding latitude units include degrees, minutes, and seconds. Add different latitude units to the corresponding latitude values ​​and multiply them by the north latitude coefficient (equivalent to the above latitude conversion coefficient), which can be set to 3;

[0057] South Latitude: The corresponding latitude units include degrees, minutes, and seconds. Add different latitude units to the corresponding latitude values ​​and multiply them by the south latitude coefficient (equivalent to the above latitude conversion coefficient), which can be set to 4;

[0058] For example: 116°25′29″ east longitude, longitude value: m1=(116+25+29)×1; 39°54′20″ north latitude, latitude value: m2=(39+54+20)×3; then, the initial security string (equivalent to the first security string mentioned above) is obtained: A=m1+m2=170+339=509.

[0059] Then, add the country code (equivalent to the migration country code in the above species migration data, such as 8110000) and altitude data (equivalent to the migration altitude in the species migration data, such as 8848m) to form a complex key string F (equivalent to the above first key string): F = G × A / r 2 =8110000×509 / 8848=53.

[0060] Next, add climate classification data and species data: climate classification data (equivalent to the migration climate in the above species migration data, for example, temperate monsoon-WDJF, represented by C), species data (equivalent to the species type in the above species migration data, for example, Anserindicus, represented by H), take an 8-bit random number (equivalent to the random number of the above key generation algorithm, for example, 32464351, represented by X), determine the timestamp (equivalent to the timestamp of the service data corresponding to the service request of the above target object, for example, 1634394862, represented by T), and concatenate the above climate classification data, species data, random number and timestamp to form a second security string Y:

[0061] Y=C+H+X+T=WDJFAnseridicus324643511634394862 (1).

[0062] Furthermore, the complex secret key string F is concatenated with the second security string Y to form a strong security secret key string (equivalent to the above second secret key string) Z:

[0063] Z=F+Y=53WDJFAnseridicus324643511634394862 (2).

[0064] Then, the data of the order request initiated by the user is encrypted according to the obtained strong security key string Z.

[0065] In order to better understand the process of the above-mentioned data encryption method, the implementation method flow of the above-mentioned data encryption is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present application.

[0066] In this embodiment, a data encryption method is provided. Figure 3 is a schematic diagram of the key generation process according to an embodiment of the present application, such as Figure 3As shown, the specific steps are as follows:

[0067] Step S301: Determine the security level and time node (equivalent to the timestamp of the service data corresponding to the service request of the target object) of the user interaction data (equivalent to the service data corresponding to the service request of the target object);

[0068] Step S302: triggering the encryption algorithm;

[0069] Step S303: Obtain the secret key required by the encryption algorithm;

[0070] Step S304: determining a key generation algorithm that matches the user interaction data by performing intelligent analysis on the user interaction data;

[0071] Step S305: determining coordinate data corresponding to the user interaction data (equivalent to the geographic location of the target object);

[0072] Step S306: determining species trajectory data (equivalent to the above-mentioned species migration data) according to the coordinate data;

[0073] In one embodiment, for example, if it is determined that the user initiates a data interaction request in Beijing, the migration trajectories of species that overlap with the border line of Beijing are determined, and the migration trajectory data corresponding to the species with the most overlap points is selected as the species migration data for generating the secret key.

[0074] Step S307: Determine the encryption level of the key generation algorithm according to the security level of the user interaction data;

[0075] When the encryption level is the normal security level, execute steps S308-S309;

[0076] Step S308: Process the longitude (m1′) and latitude (m2′) data to form an initial security string, A=m1×m2;

[0077] Step S309: Process the country code (G) and altitude (r) data to form a complex key string F, F = G × A / r 2 ;

[0078] When the encryption level is a strong security level, steps S310-S312 are executed, wherein S310-S311 are the same as steps S308-S309 and are not described again.

[0079] Step S312: Add climate (C), species (H), 8-bit random number (X), and timestamp (T) data processing to form a strong security key string Z, Z = F + C + H + X + T;

[0080] Step S313: Obtain the generated key, that is, the complex key string generated in step S309 (equivalent to the above-mentioned first key string) or the strong security key string generated in step S312 (equivalent to the above-mentioned second key string), and execute step S314.

[0081] Step S314: Encrypt the user interaction data using a secret key and an encryption algorithm.

[0082] Through the above embodiments, a dynamically configurable encryption algorithm is realized. Compared with the traditional encryption algorithm with fixed generation mode, single mode, easy to be illegally cracked and cause the leakage of a large amount of data, this embodiment provides a real security barrier for the system by intelligently analyzing the security level of user interaction data, dynamically matching the security encryption algorithm, combining different trajectory coordinate data with multi-mode security key strategies, adding complex formula algorithms, splicing random numbers and other mechanisms, and reducing the probability of data being illegally cracked.

[0083] In this embodiment, a method for classifying species migration data is provided. Figure 4 is a schematic diagram of the classification process of species migration data according to an embodiment of the present application, such as Figure 4 As shown, the specific steps are as follows:

[0084] Step S402: Obtain different species types (e.g. Figure 4 The migration trajectory data of species A, species B, and species C in the above data (equivalent to the above species migration data), the migration trajectory data includes species type, migration longitude, migration latitude, migration altitude, migration country code, migration climate, etc.;

[0085] Step S404: Classify and store the migration trajectory data according to species type;

[0086] Step S406: Obtain multiple sets of migration trajectory data.

[0087] In one embodiment, the intelligent AI robot can be trained in real time to intelligently learn trajectory data, and continuously adjust the real-time aggregated species migration trajectory longitude and latitude, altitude, climate and other data to improve the unbreakability of the system encryption processing.

[0088] This embodiment can collect real-time data on species migration routes and perform intelligent learning on species migration trajectory data. Since the trajectory data of different species migration routes are different, the trajectory data of species migration routes are dynamically classified and aggregated into a trajectory database according to the categories of different species. Secret keys generated by different species migration trajectory data can be provided in response to the security requirements of user interaction data, thereby increasing the complexity of the key acquisition method and improving the security of user interaction data.

[0089] Next, the data encryption algorithm is described in conjunction with the following embodiment. This embodiment is based on species migration data and performs intelligent analysis on the region to which the user interaction data belongs. The specific steps are as follows:

[0090] The first step is data collection: obtain species migration route data, classify and summarize data factors such as longitude, latitude, altitude, species type, climate, etc. in the route, and store them in the trajectory database.

[0091] The second step is to obtain species trajectory data: the user interacts with the system, and after the system receives the data, it triggers the data encryption algorithm. The server on the server side intelligently analyzes the user interaction data, and dynamically matches different key generation algorithms and species trajectory data according to the security level of the data. For example, if the user interaction data is the user's identity document information, it is strong security data, and the encryption level of the matching key generation algorithm is strong security level;

[0092] In one embodiment, the corresponding species migration data can be determined based on the geographical location where the user initiates the request: if it is determined that the user initiates the data interaction request in Hangzhou, the migration trajectory of the species that overlaps with the border line of Hangzhou is determined, and the migration trajectory data corresponding to the species at any overlapping point is selected as the species migration data for generating the secret key.

[0093] The third step is data encryption - longitude and latitude data processing: perform custom format conversion on the longitude (m1') and latitude (m2') in the coordinate trajectory data, and multiply the converted values: longitude value (m1) and latitude value (m2) to make the longitude and latitude data closely combined to form an initial security string: A=m1+m2, completing the first line of defense for key security.

[0094] Step 4: Encryption of country code and altitude data: Use the square of the altitude data r: r2, as the dividend of A, and use the country code G as the product coefficient of A / r2 to form a complex key string (round the result): F = G × A / r2. This key string has strong security and can be applied to the security encryption of most systems.

[0095] Step 5: Encryption of climate and species: Use the climate classification data of the area where the trajectory point is located: C, and the scientific name string of the migratory species: H, take an 8-bit random number: X, and a timestamp: T, and concatenate them to form a security string: Y = C + H + X + T. The complex secret key string F is concatenated with the security string Y to form a strong security secret key string Z = F + Y;

[0096] Step 6: Output the secret key: Generate a matching secret key according to the strategy of the key generation algorithm for different encryption levels, and encrypt the user interaction data by combining the encryption algorithm and the secret key.

[0097] This embodiment reduces the probability of encrypted data being illegally deciphered and improves the security of data encryption by dynamically allocating security policies and combining them with dynamic and changeable security algorithms.

[0098] This embodiment has been innovated through the existing key string encryption method. The traditional key string has a solidified method, a single mode, and a mechanical splicing method such as timestamps and random numbers. It cannot provide effective protection against the constantly updated illegal cracking technology. Once illegally cracked, it will cause a large amount of data leakage. The key generation algorithm described in this patent can almost 100% avoid the occurrence of illegal decryption by intelligently analyzing the time and region of user interaction data, dynamically allocating security strategies, and combining flexible and changeable security algorithms, thereby ensuring the security of system data; in addition, after the traditional encryption algorithm key is generated, the security processing of all data is consistent, and the security experience is not good. This algorithm can dynamically adjust the security level of the key generation algorithm according to the different security levels of the data, and generate key strings of different complexities, which greatly meets the multi-level requirements of the system's data security processing.

[0099] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0100] Figure 5 is a structural block diagram of a data encryption device according to an embodiment of the present application. Figure 5 As shown, including:

[0101] A first determination module 52, configured to respond to a service request initiated by a target object to determine a geographic location of the target object;

[0102] It should be noted that the above-mentioned species migration data can be understood as data on the migration behavior of organisms over a certain distance due to their own reasons or environmental reasons, which has a periodic pattern.

[0103] A second determination module 54 is used to determine species migration data corresponding to the geographical location of the target object, wherein the species migration data is used to indicate the migration pattern of the species;

[0104] The encryption module 56 is used to generate a secret key for the service data corresponding to the service request of the target object according to the species migration data, and to encrypt the service data corresponding to the service request of the target object according to the secret key.

[0105] Through the above-mentioned device, the geographical location of the target object is determined by responding to the service request initiated by the target object; the species migration data corresponding to the geographical location of the target object is determined, wherein the species migration data is used to indicate the migration pattern of the species; a key for the service data corresponding to the service request of the target object is generated according to the species migration data, and the service data corresponding to the service request of the target object is encrypted according to the key, thereby solving the problem of low security when encrypting data in the related art, thereby improving the security of data encryption.

[0106] It should be noted that the service data corresponding to the service request of the above-mentioned target object corresponds to the identity information of the target object. Different security levels of the service data can be determined according to different identity information. For example, in one embodiment, when the identity information of the above-mentioned target object is a member customer, the security level of the member customer's service data is determined to be a strong security level; when the identity information of the above-mentioned target object is an ordinary customer, the security level of the member customer's service data is determined to be an ordinary security level.

[0107] In other embodiments, the service data corresponding to the service request of the target object also corresponds to the data type of the service data, and the security level of the service data can be determined according to the data type of the service data. For example, in one embodiment, when the data type of the service data is private data, the security level of the member customer's service data is determined to be a strong security level; when the data type of the service data is daily data, the security level of the member customer's service data is determined to be a normal security level. Among them, private data can include the user's identity document information, communication information, consumption information, and image information, etc., and daily data can be understood as data that the user allows to be disclosed.

[0108] Optionally, in an exemplary embodiment, the second determination module is also used to obtain species migration trajectories within the coverage area corresponding to the geographic location of the target object; classify the species migration trajectories within the coverage area corresponding to the geographic location according to species type to obtain multiple groups of species migration data; wherein any group of species migration data among the multiple groups of species migration data includes at least one of the following: species type, migration longitude, migration latitude, migration altitude, migration country code, and migration climate.

[0109] It should be noted that the coverage range corresponding to the geographical location of the target object may be understood as a coverage range with the geographical location of the target object as the center and a preset distance as the radius.

[0110] It should be noted that the above-mentioned species types are represented by species names, including units such as species, genus, family, order, class, phylum, and kingdom. In addition, new units can be added at will, such as stocks, groups, tribes, and groups, or secondary units can be attached under the units. The present invention does not limit this.

[0111] It should be noted that the above-mentioned migration longitude and migration latitude represent the geographical locations that the organisms corresponding to the above-mentioned species types pass through when performing migration behavior.

[0112] It should be noted that the above-mentioned migration country area code can be understood as the code assigned to each country by the International Telecommunication Union.

[0113] It should be noted that the above-mentioned migration climate can be understood as the climate of the areas through which the organisms corresponding to the above-mentioned species types pass during migration, including tropical rainforest climate, tropical savanna climate, tropical desert climate, tropical monsoon climate, Mediterranean climate, temperate oceanic climate, temperate continental climate, and temperate monsoon climate, but not limited to these.

[0114] Optionally, in an exemplary embodiment, the encryption module is also used to determine the security level of the service data corresponding to the service request of the target object; match a corresponding key generation algorithm for the service data according to the security level, wherein the encryption level of the key generation algorithm corresponds to the security level; when the encryption level of the key generation algorithm includes an ordinary security level, use the key generation algorithm and the species migration data to generate a first key string; when the encryption level of the key generation algorithm includes a strong security level, use the key generation algorithm and the species migration data to generate a second key string; wherein the first key string or the second key string is the key for the service data corresponding to the service request of the target object.

[0115] Optionally, in an exemplary embodiment, the data encryption device further includes a first secret key string generation module, used to determine the migration altitude in the species migration data and the migration country code in the species migration data; the first secret key string F is determined by the following formula: F=G×A / r2; wherein, G represents the migration country code in the species migration data, A represents a first security string, wherein the first security string is used to indicate the initial security string corresponding to the service data, and r represents the migration altitude in the species migration data.

[0116] Optionally, in an exemplary embodiment, the data encryption device further includes a second secret key string generation module, which is used to determine the migration altitude in the species migration data, the migration country code in the species migration data, the species type in the species migration data, and the migration climate in the species migration data; determine the random number of the secret key generation algorithm, and determine the timestamp of the service data corresponding to the service request of the target object; use the species type in the species migration data, the migration climate in the species migration data, the random number of the secret key generation algorithm, and the timestamp of the service data corresponding to the service request of the target object to generate a second security string; and determine the concatenation result of the first secret key string and the second security string as the second secret key string.

[0117] Optionally, in an exemplary embodiment, the above-mentioned data encryption device also includes a first security string generation module, which is used to determine the migration longitude in the species migration data and the migration latitude in the species migration data; and use the migration longitude in the species migration data and the migration latitude in the species migration data to generate the first security string.

[0118] Optionally, in an exemplary embodiment, the above-mentioned first security string generation module is also used to determine the product of the migration longitude in the species migration data and the migration latitude in the species migration data as the first security string; or, determine the sum of the migration longitude in the species migration data and the migration latitude in the species migration data as the first security string; or, according to preset rules, process the migration longitude in the species migration data and the migration latitude in the species migration data into at least two encrypted data respectively; determine the multiplication result corresponding to the non-zero numerical value in each of the at least two encrypted data; and determine the splicing result of all the multiplication results as the first security string.

[0119] It should be noted that the above-mentioned preset rules can be understood as rules for encrypting the longitude values ​​of the migration longitudes in the species migration data and the latitude values ​​of the migration latitudes in the species migration data. For example, the longitude values ​​and latitude values ​​can be processed into different letters according to the size of the numbers, and the processed letters can be used as encrypted data.

[0120] Optionally, in an exemplary embodiment, the above-mentioned first safety string generation module is also used to obtain conversion rules for format conversion of the migration longitude in the species migration data and the migration latitude in the species migration data, wherein the conversion rules include a longitude conversion coefficient and a latitude conversion coefficient; determine a first sum value between longitude values ​​corresponding to different longitude units in the migration longitude in the species migration data, and determine a second sum value between latitude values ​​corresponding to different latitude units in the migration latitude in the species migration data; and determine a third sum value of the product of the first sum value and the longitude conversion coefficient and the product of the second sum value and the latitude conversion coefficient as the first safety string.

[0121] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.

[0122] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:

[0123] S1, responding to a service request initiated by a target object to determine the geographic location of the target object;

[0124] S2, determining species migration data corresponding to the geographical location of the target object, wherein the species migration data is used to indicate the migration pattern of the species;

[0125] S3, generating a secret key for service data corresponding to the service request of the target object according to the species migration data, and encrypting the service data corresponding to the service request of the target object according to the secret key.

[0126] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0127] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0128] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0129] S1, responding to a service request initiated by a target object to determine the geographic location of the target object;

[0130] S2, determining species migration data corresponding to the geographical location of the target object, wherein the species migration data is used to indicate the migration pattern of the species;

[0131] S3, generating a secret key for service data corresponding to the service request of the target object according to the species migration data, and encrypting the service data corresponding to the service request of the target object according to the secret key.

[0132] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0133] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0134] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0135] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A data encryption method, It is characterized in that include: Responding to a service request initiated by a target object to determine the geographic location of the target object; Determine species migration data corresponding to the geographical location of the target object, wherein the species migration data is used to indicate the migration pattern of the species; generating a secret key for service data corresponding to the service request of the target object according to the species migration data, and encrypting the service data corresponding to the service request of the target object according to the secret key; Determining the species migration data corresponding to the geographical location of the target object, including: Acquire species migration trajectories within the coverage area corresponding to the geographical location of the target object; The species migration trajectories within the coverage area corresponding to the geographical location are classified according to species types to obtain multiple groups of species migration data; wherein any group of species migration data in the multiple groups of species migration data at least includes: species type, migration longitude, migration latitude, migration altitude, migration country code and migration climate.

2. The data encryption method according to claim 1, It is characterized in that Generating a key for service data corresponding to the service request of the target object according to the species migration data includes: Determining a security level of service data corresponding to the service request of the target object; Matching a corresponding key generation algorithm for the service data according to the security level, wherein an encryption level of the key generation algorithm corresponds to the security level; generating a first key string using the key generation algorithm and the species migration data when the encryption level of the key generation algorithm includes a normal security level; generating a second key string using the key generation algorithm and the species migration data when the encryption level of the key generation algorithm includes a strong security level; The first key string or the second key string is a key of service data corresponding to the service request of the target object.

3. The data encryption method according to claim 2, It is characterized in that In a case where the encryption level of the key generation algorithm includes a normal security level, generating a first key string using the key generation algorithm and the species migration data includes: Determine the migration altitude in the species migration data and the migration country code in the species migration data; The first secret key string F is determined by the following formula: F=G×A / r 2 ; Among them, the G represents the migration country area code in the species migration data, the A represents the first security string, wherein the first security string is used to indicate the initial security string corresponding to the service data, and the r represents the migration altitude in the species migration data.

4. The data encryption method according to claim 2, It is characterized in that In the case where the encryption level of the key generation algorithm includes a strong security level, generating a second key string using the key generation algorithm and the species migration data includes: Determining the migration altitude in the species migration data, the migration country code in the species migration data, the species type in the species migration data, and the migration climate in the species migration data; Determine a random number of the key generation algorithm, and determine a timestamp of service data corresponding to the service request of the target object; Generate a second security string using the species type in the species migration data, the migration climate in the species migration data, the random number of the secret key generation algorithm, and the timestamp of the service data corresponding to the service request of the target object; A concatenation result of the first secret key string and the second security string is determined as the second secret key string.

5. The data encryption method according to claim 3, It is characterized in that Before determining the first key string F, the method further includes: Determining the migration longitude in the species migration data and the migration latitude in the species migration data; The first security string is generated using the migration longitude in the species migration data and the migration latitude in the species migration data.

6. The data encryption method according to claim 5, It is characterized in that Generating the first security string using the migration longitude in the species migration data and the migration latitude in the species migration data comprises: Determine the product of the migration longitude in the species migration data and the migration latitude in the species migration data as the first safety string; Alternatively, the sum of the migration longitude in the species migration data and the migration latitude in the species migration data is determined as the first safety string; Alternatively, the migration longitude in the species migration data and the migration latitude in the species migration data are processed into at least two encrypted data respectively according to a preset rule; Determine a multiplication result corresponding to a non-zero value in each of the at least two encrypted data; A concatenation result of all the multiplication results is determined as the first security string.

7. The data encryption method according to claim 6, It is characterized in that Determining the product of the migration longitude in the species migration data and the migration latitude in the species migration data as the first safety string includes: Obtaining a conversion rule for converting the format of the migration longitude in the species migration data and the migration latitude in the species migration data, wherein the conversion rule includes a longitude conversion coefficient and a latitude conversion coefficient; Determine a first sum value between longitude values ​​corresponding to different longitude units in the migration longitude in the species migration data, and determine a second sum value between latitude values ​​corresponding to different latitude units in the migration latitude in the species migration data; A third sum value of a product of the first sum value and the longitude conversion coefficient and a product of the second sum value and the latitude conversion coefficient is determined as the first security string.

8. A data encryption device, It is characterized in that include: A first determination module, configured to respond to a service request initiated by a target object to determine a geographic location of the target object; A second determination module is used to determine species migration data corresponding to the geographical location of the target object, wherein the species migration data is used to indicate the migration pattern of the species; an encryption module, configured to generate a secret key for service data corresponding to the service request of the target object according to the species migration data, and encrypt the service data corresponding to the service request of the target object according to the secret key; The second determination module is also used to: obtain the species migration trajectory within the coverage area corresponding to the geographical location of the target object; classify the species migration trajectory within the coverage area corresponding to the geographical location according to species type to obtain multiple groups of species migration data; wherein any group of species migration data in the multiple groups of species migration data includes at least: species type, migration longitude, migration latitude, migration altitude, migration country code and migration climate.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed.