Digital collection encryption method and device, storage medium and electronic equipment
By using the first algorithm to generate a random key and the second algorithm in the digital collection encryption method for data dilution processing, the problem of inefficient encryption in the traditional method is solved, and the security and processing efficiency of the digital collection are improved.
Patent Information
- Application Number
- CN202411675268.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-03-14
AI Technical Summary
Traditional digital collection encryption methods are inefficient in encryption due to information redundancy, which cannot effectively solve the security and authenticity of digital collections.
The first algorithm is used to generate a random encryption key, and the initial digital collection is diluted and targeted through the second algorithm to reduce data redundancy, reduce data size, and ultimately improve encryption processing speed and efficiency.
It improves the security and trust of digital collection information, reduces the system's computing and storage costs, enhances encryption efficiency and data processing speed, and solves the problems of redundancy and inefficiency in traditional methods.
Smart Images

Figure CN119622765A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the fields of financial technology and information security, and specifically, to a digital collection encryption method, device, storage medium and electronic device. Background Art
[0002] In the field of financial technology, with the advent of digitalization and the increasing demand for digital assets, digital collections have received widespread attention and popularity. Digital collections, mainly including artworks, music, videos, game items, etc., are a unique form of digital assets. However, due to the characteristics of digital information being easy to leak and tamper with, the security and authenticity of digital collections have always been a serious problem, which has seriously affected the development of the digital collection market.
[0003] Because digital collections themselves have the characteristics of huge amounts of information and redundancy, this will cause the traditional digital collection encryption method to process data very slowly, and at the same time it will also increase the computing and storage pressure of the system, making the final encryption efficiency low.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The main purpose of this application is to provide a digital collection encryption method, device, storage medium and electronic device to at least solve the technical problems of information redundancy and low encryption efficiency existing in traditional digital collection encryption methods.
[0006] In order to achieve the above-mentioned purpose, according to one aspect of an embodiment of the present application, there is provided an encryption method for a digital collection, including: generating a target key according to a first algorithm, wherein the first algorithm is used to generate a random encryption key; performing thinning processing and target processing on the initial digital collection using a second algorithm to obtain a first digital collection, wherein the second algorithm is used to simplify linear features or paths, the thinning processing is used to filter redundant data in the data, and the target processing is used to reduce the size of the data by format conversion or data compression; encrypting the first digital collection according to the target key to obtain a target digital collection.
[0007] Optionally, a first algorithm is used to generate a target key, including: obtaining a control parameter and an initial state value, wherein the control parameter is used to control the key generation method, and the initial state value is used to generate a key that is non-repetitive with a historical key in a random manner; determining an objective function, wherein the objective function is used to generate a random number sequence; and determining the target key based on the control parameter, the initial state value, and the objective function.
[0008] Optionally, determining a target key according to control parameters, an initial state value and an objective function includes: determining a target length, wherein the target length is used to characterize the length of the generated key; using the control parameters, the initial state value and the target length as first data; and inputting the first data into an objective function for calculation to obtain the target key.
[0009] Optionally, a second algorithm is used to perform thinning and target processing on the initial digital collection to obtain a first digital collection, including: determining a thinning parameter, wherein the thinning parameter is used to determine whether a data point is redundant data; converting the initial digital collection into a discrete data point sequence; performing thinning processing on the data point sequence according to the thinning parameter to obtain a second digital collection; and performing target processing on the second digital collection to obtain the first digital collection.
[0010] Optionally, the data point sequence is thinned out according to the thinning parameters to obtain a second digital collection, including: determining a starting point and an end point from the data point sequence, and taking a line segment formed by the starting point and the end point as a target line segment; for the target line segment, points in the data point sequence other than the starting point and the end point and the target line segment, performing at least one target operation on the points in the data point sequence to obtain multiple new target line segments, and the data point sequence is updated to a feature point sequence, wherein each point in the feature point sequence is matched to a target line segment with a vertical distance greater than a preset distance, wherein the preset distance is determined according to the thinning parameters; and determining the second digital collection according to the feature point sequence.
[0011] Optionally, the target operation includes the following steps, including: taking the point in the data point sequence with the largest vertical distance to the generated target line segment as the target point; when the vertical distance between the target point and each generated target line segment is less than or equal to a preset distance, deleting the target point from the data point sequence; when the vertical distance between the target point and any generated target line segment is greater than a preset distance, adding the target point to the feature point sequence, and determining two new target line segments based on the target point, wherein the two ends of one of the two newly determined target line segments are the starting point and the target point, and the two ends of the other of the two newly determined target line segments are the target point and the end point.
[0012] Optionally, after using the second algorithm to perform thinning and target processing on the initial digital collection to obtain the first digital collection, the encryption method for the digital collection also includes: performing preprocessing operations on the first digital collection, wherein the preprocessing operations are used to back up and store the first digital collection, check data integrity, and check data consistency.
[0013] Optionally, after encrypting the first digital collection according to the target key to obtain the target digital collection, the encryption method for the digital collection also includes: using the target key generated by the first algorithm to decrypt the target digital collection, and using the second algorithm to perform the inverse operation of the target processing on the decrypted data to obtain the initial digital collection.
[0014] According to another aspect of an embodiment of the present application, there is also provided an encryption device for a digital collection, including: a generation unit, which generates a target key according to a first algorithm, wherein the first algorithm is used to generate a random encryption key; a processing unit, which performs thinning processing and target processing on the initial digital collection using a second algorithm to obtain a first digital collection, wherein the second algorithm is used to simplify linear features or paths, the thinning processing is used to filter redundant data in the data, and the target processing is used to reduce the size of the data by format conversion or data compression; an encryption unit, which encrypts the first digital collection according to the target key to obtain a target digital collection.
[0015] Optionally, the generation unit includes: a first acquisition subunit, a first determination subunit, and a second determination subunit. The first acquisition subunit is used to acquire a control parameter and an initial state value, wherein the control parameter is used to control the key generation method, and the initial state value is used to generate a key that is not repeated with the historical key in a random manner; the first determination subunit is used to determine a target function, wherein the target function is used to generate a random number sequence; and the second determination subunit is used to determine a target key according to the control parameter, the initial state value, and the target function.
[0016] Optionally, the second determination subunit includes: a first determination module, a first processing module and a second processing module. The first determination module is used to determine a target length, wherein the target length is used to characterize the length of the generated key; the first processing module is used to use the control parameter, the initial state value and the target length as the first data; and the second processing module is used to input the first data into the target function for calculation to obtain the target key.
[0017] Optionally, the processing unit includes: a third determining subunit, a first processing subunit, a second processing subunit, and a third processing subunit. The third determining subunit is used to determine a thinning parameter, wherein the thinning parameter is used to determine whether a data point is redundant data; the first processing subunit is used to convert the initial digital collection into a discrete data point sequence; the second processing subunit is used to perform thinning processing on the data point sequence according to the thinning parameter to obtain a second digital collection; the third processing subunit is used to perform target processing on the second digital collection to obtain the first digital collection.
[0018] Optionally, the second processing subunit includes: a second determination module, a third processing module and a third determination module. The second determination module is used to determine the starting point and the end point from the data point sequence, and use the line segment formed by the starting point and the end point as the target line segment; the third processing module is used to perform at least one target operation on the points in the data point sequence according to the target line segment, the vertical distance between the points in the data point sequence other than the starting point and the end point and the target line segment, and obtain multiple new target line segments, and the data point sequence is updated to a feature point sequence, wherein each point in the feature point sequence is matched to a target line segment with a vertical distance greater than a preset distance, wherein the preset distance is determined according to the rarefaction parameter; the third determination module is used to determine the second digital collection according to the feature point sequence.
[0019] Optionally, the target operation includes the following steps, including: taking the point in the data point sequence with the largest vertical distance to the generated target line segment as the target point; when the vertical distance between the target point and each generated target line segment is less than or equal to a preset distance, deleting the target point from the data point sequence; when the vertical distance between the target point and any generated target line segment is greater than a preset distance, adding the target point to the feature point sequence, and determining two new target line segments based on the target point, wherein the two ends of one of the two newly determined target line segments are the starting point and the target point, and the two ends of the other of the two newly determined target line segments are the target point and the end point.
[0020] Optionally, the encryption device for the digital collection also includes: a preprocessing unit, used to perform preprocessing operations on the first digital collection, wherein the preprocessing operations are used to back up and store the first digital collection, check data integrity, and check data consistency.
[0021] Optionally, the encryption device for the digital collection also includes: a decryption unit, which is used to use the target key generated by the first algorithm to decrypt the target digital collection, and use the second algorithm to perform the reverse operation of the target processing on the decrypted data to obtain the initial digital collection.
[0022] According to another aspect of an embodiment of the present application, there is also provided an electronic device, comprising: a memory storing an executable program; and a processor for running the program, wherein the above-mentioned encryption method for digital collections is executed when the program is running.
[0023] According to another aspect of an embodiment of the present application, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned encryption method for digital collections.
[0024] According to another aspect of an embodiment of the present application, a computer program product is also provided, including computer instructions, which implement the steps of the above-mentioned encryption method for digital collections when executed by a processor.
[0025] In an embodiment of the present application, a target key is first generated according to a first algorithm, wherein the first algorithm is used to generate a random encryption key. Then, a second algorithm is used to perform thinning processing and target processing on the initial digital collection to obtain a first digital collection. The second algorithm is used to simplify linear features or paths, thinning processing is used to filter redundant data in the data, and target processing is used to reduce the size of the data by format conversion or data compression. Finally, the first digital collection is encrypted according to the target key to obtain a target digital collection.
[0026] From the above content, it can be seen that the present application generates a target key through the first algorithm, and the generated target key is a highly random and unpredictable random number sequence, which improves the security and trustworthiness of the digital collection information, thereby preventing the digital collection information from being maliciously acquired, tampered with or forged.
[0027] Secondly, the second algorithm is used to perform thinning and target processing on the initial digital collection to obtain the first digital collection. Compared with the traditional digital collection encryption algorithm that directly processes the original digital collection information, since the original digital collection information often contains a large amount of data and information redundancy, it is easy to cause problems such as low encryption efficiency and slow data processing speed. The second algorithm technical solution proposed in this application can optimize the digital collection encryption process, reduce information redundancy, improve encryption efficiency and data processing speed, and just solve the technical problem existing in the traditional digital collection encryption algorithm.
[0028] In addition, the highly random and unpredictable random number sequence generated by the first algorithm is used as the encryption key, and the digital collection information is thinned and optimized in combination with the second algorithm, which can greatly prevent the digital collection information from being maliciously acquired, tampered with or forged, thereby improving the security and integrity of the information.
[0029] It can be seen that through the technical solution of the present application, the algorithm is used to optimize the digital collection information, and then it is encrypted to achieve the purpose of information protection, thereby achieving the technical effect of reducing the computing and storage costs of the system and improving the security and integrity of the information, and thus solving the technical problems of information redundancy and low encryption efficiency existing in traditional digital collection encryption methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] 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:
[0031] Figure 1 A hardware structure block diagram of a computer terminal for implementing an encryption method for digital collections is shown;
[0032] Figure 2 is a flow chart of an optional method for encrypting digital collections according to an embodiment of the present application;
[0033] Figure 3 is a flow chart of an optional encryption optimization of digital collections according to an embodiment of the present application;
[0034] Figure 4 is a schematic diagram of an encryption device for digital collections provided according to an embodiment of the present application;
[0035] Figure 5 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0036] 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.
[0037] 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.
[0038] It should also be noted that the collected information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this application are information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with relevant laws, regulations and standards, necessary confidentiality measures are taken, and public order and good customs are not violated, and corresponding operation entrances are provided for users to choose to authorize or refuse. For example, an interface is set up between this system and relevant users or institutions to provide users with corresponding operation entrances for users to choose to agree or refuse the results of automated decision-making; if the user chooses to refuse, the expert decision-making process will be entered.
[0039] According to an embodiment of the present application, a method embodiment of an encryption method for digital collections is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0040] It should be noted that a digital collection encryption system can be used as the execution subject of the digital collection encryption processing method of the embodiment of the present application. It is understandable that the digital collection encryption method provided in the embodiment of the present application can also be executed by other systems or devices, and the embodiment of the present application does not specifically limit this.
[0041] According to an embodiment of the present application, a method embodiment of an encryption method for digital collections is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0042] The method embodiments provided in the present application may be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or mobile device) for implementing an encryption method for digital collections is shown. Figure 1As shown, the computer terminal 10 (or mobile device) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. 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 electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0043] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0044] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the encryption method for digital collections in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the encryption method for digital collections described above is implemented. 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 10 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.
[0045] 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 the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, 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.
[0046] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).
[0047] Under the above operating environment, this application provides Figure 2 The encryption method for digital collections shown. Figure 2 FIG. 1 is a flowchart of an optional encryption method for digital collections according to Embodiment 1 of the present application. Figure 2 As shown, the method comprises the following steps:
[0048] Step S201: Generate a target key according to a first algorithm, wherein the first algorithm is used to generate a random encryption key.
[0049] Optionally, the first algorithm is an algorithm using a chaotic logistic mapping model, which is a typical model in chaos theory and has the characteristics of randomness, sensitivity and nonlinearity.
[0050] Alternatively, chaos theory is widely used in the fields of cryptography and data security. The unpredictability and high complexity of chaotic phenomena make it an effective means of encryption.
[0051] Optionally, the Chaotic Logistic Algorithm can generate a highly random and unpredictable random number sequence (ie, a target key), and the digital collection encryption system can use the random number sequence generated by the Chaotic Logistic Algorithm as an encryption key.
[0052] Step S202: Use the second algorithm to perform thinning and target processing on the initial digital collection to obtain the first digital collection.
[0053] In step S202, the second algorithm is used to simplify the linear features or paths, the thinning process is used to filter the redundant data in the data, and the target process is used to reduce the size of the data by format conversion or data compression.
[0054] Optionally, thinning is a technique for reducing the amount of data, usually used to process large data sets to reduce storage requirements, increase processing speed, or reduce computational complexity. Common data thinning methods include: random sampling, stratified sampling, systematic sampling, cluster thinning, time series thinning, spatial thinning, importance thinning, etc.
[0055] Optionally, target processing of data usually refers to screening, analyzing and processing data according to specific business goals or needs in order to better understand and use the data. Common target processing steps: define goals, data collection, data cleaning, data integration, data conversion, feature engineering, data exploration, model training, result evaluation, decision support, continuous monitoring, compliance with regulations, etc.
[0056] Optionally, the second algorithm may be a Douglas-Peuker algorithm. The Douglas-Peuker algorithm is an algorithm for simplifying a curve or line graph. The Douglas-Peuker algorithm reduces the number of data points by retaining key points and removing unnecessary points while maintaining the basic shape of the curve. This algorithm has a wide range of applications in the fields of geographic information systems (GIS), computer graphics, and data compression.
[0057] Step S203: encrypt the first digital collection according to the target key to obtain the target digital collection.
[0058] Optionally, the digital collection encryption system can combine the encryption key generated by the chaotic logistic algorithm (i.e., the first algorithm) with the digital collection information optimized by the Douglas-Peuker algorithm (i.e., the second algorithm) and perform encryption operations. The encrypted information is the target digital collection information.
[0059] Optionally, the key generated by the chaotic logistic algorithm is used to encrypt the digital collection information, which can ensure the security and confidentiality of the information while ensuring encryption efficiency and speed.
[0060] It can be seen from the contents of steps S201 to S203 that in the embodiment of the present application, a target key is first generated according to a first algorithm, wherein the first algorithm is used to generate a random encryption key, and then the initial digital collection is subjected to thinning processing and target processing using a second algorithm to obtain a first digital collection, wherein the second algorithm is used to simplify linear features or paths, thinning processing is used to filter redundant data in the data, and target processing is used to reduce the size of the data by format conversion or data compression, and finally the first digital collection is encrypted according to the target key to obtain a target digital collection.
[0061] From the above content, it can be seen that the present application generates a target key through the first algorithm, and the generated target key is a highly random and unpredictable random number series, which improves the security and trustworthiness of the digital collection information, thereby preventing the digital collection information from being maliciously acquired, tampered with or forged.
[0062] Secondly, the second algorithm is used to perform thinning and target processing on the initial digital collection to obtain the first digital collection. Compared with the traditional digital collection encryption algorithm that directly processes the original digital collection information, since the original digital collection information often contains a large amount of data and information redundancy, it is easy to cause problems such as low encryption efficiency and slow data processing speed. The second algorithm technical solution proposed in this application can optimize the digital collection encryption process, reduce information redundancy, improve encryption efficiency and data processing speed, and just solve the technical problem existing in the traditional digital collection encryption algorithm.
[0063] In addition, the highly random and unpredictable random number sequence generated by the first algorithm is used as the encryption key, and the digital collection information is thinned and optimized in combination with the second algorithm, which can greatly prevent the digital collection information from being maliciously acquired, tampered with or forged, thereby improving the security and integrity of the information.
[0064] It can be seen that through the technical solution of the present application, the algorithm is used to optimize the digital collection information, and then it is encrypted to achieve the purpose of information protection, thereby achieving the technical effect of reducing the computing and storage costs of the system and improving the security and integrity of the information, and thus solving the technical problems of information redundancy and low encryption efficiency existing in traditional digital collection encryption methods.
[0065] In an optional embodiment, the digital collection encryption system first obtains control parameters and initial state values, wherein the control parameters are used to control the key generation method, and the initial state values are used to randomly generate keys that are not repeated with historical keys, and then determines the target function, wherein the target function is used to generate a random number series, and then determines the target key based on the control parameters, the initial state value and the target function.
[0066] Optionally, the control parameter can be denoted as r, which is used to control the key generation method. The digital collection encryption system can select a suitable control parameter r, which is generally in the range of [0,4].
[0067] Optionally, the initial state value (denoted as x0) is used to randomly generate a key that is not repeated with the historical key. The digital collection encryption system can select an initial state value x0, which is generally in the range of [0,1].
[0068] Optionally, the digital collection encryption system can obtain a Logistic algorithm function (i.e., an objective function). The steps mainly include: first, obtaining a function written by the user, taking the control parameter r, the initial state value x0, and the length n of the generated random number sequence as the input of the function, and then inside the function, using the Logistic algorithm formula x(n+1)=r*x(n)*(1-x(n)), calculating the next state value x(n+1) according to the current state value x(n), and then cyclically updating the state until a random number sequence of a specified length is generated.
[0069] From the above content, it can be seen that using the Logistic algorithm function as the objective function can make the generated random number sequence (i.e., the key) have strong randomness because the Logistic algorithm function has basic characteristics such as nonlinearity, sensitivity to initial conditions, periodicity, chaos, and bifurcation phenomenon.
[0070] In an optional embodiment, the digital collection encryption system first determines the target length, where the target length is used to characterize the length of the generated key, and then uses the control parameters, the initial state value, and the target length as the first data, and then inputs the first data into the objective function for calculation to obtain the target key.
[0071] Optionally, the target length is used to represent the length of the generated key, and is denoted by n.
[0072] Optionally, the digital collection encryption system can call the programmed Logistic algorithm function (i.e., the objective function), select the incoming control parameter (denoted as r), the initial state value (denoted as x0), and the length of the random number sequence to be generated (i.e., the target length), and then obtain the generated random number sequence for use as an encryption key.
[0073] The following shows an optional Python sample code for generating a random sequence of numbers for the Logistic algorithm:
[0074]
[0075] From the above content, we can see that the digital collection encryption system calls the written Logistic algorithm function to generate a random number sequence of a certain length for use as an encryption key. The chaotic characteristics of the function itself make the generated key unpredictable and highly complex, making it an effective encryption method.
[0076] In an optional embodiment, the digital collection encryption system first determines a thinning parameter, wherein the thinning parameter is used to determine whether a data point is redundant data, and then converts the initial digital collection into a discrete data point sequence, and then thins the data point sequence according to the thinning parameter to obtain a second digital collection, and then performs target processing on the second digital collection to obtain the first digital collection.
[0077] Alternatively, a discrete sequence of data points refers to a set of discontinuous, independent data points that have no direct connection between them. These data points are usually represented as a series of values and can be used to describe a phenomenon or process.
[0078] Alternatively, the rarefaction parameter is a concept used in probability theory and statistics, especially when dealing with Poisson processes and random sampling problems. The rarefaction parameter is usually used to describe the probability of drawing a subsample from an original Poisson process. In this example, it is used to determine whether a data point is redundant data.
[0079] Optionally, thinning is a technique for reducing the amount of data, which is usually used to process large-scale data sets to reduce storage requirements, increase processing speed, or reduce computational complexity. Common data thinning methods include random sampling, stratified sampling, systematic sampling, cluster thinning, time series thinning, spatial thinning, importance thinning, etc. Through thinning, the amount of data to be processed can be reduced while maintaining the distribution characteristics of the original data, thereby improving computational efficiency.
[0080] Optionally, target processing usually refers to the screening, analysis and processing of data according to specific business goals or needs in order to better understand and use the data. Common target processing steps: define goals, data collection, data cleaning, data integration, data conversion, feature engineering, data exploration, model training, result evaluation, decision support, continuous monitoring, compliance with regulations, etc.
[0081] From the above content, it can be seen that the digital collection encryption system obtains the second digital collection by performing rarefaction processing on the digital collection information, which can reduce the amount of data to be processed while maintaining the distribution characteristics of the original data, thereby improving the computing efficiency. Then, the second digital collection is subjected to target processing to obtain the first digital collection, and the data can be screened, analyzed and processed to better understand and use the data.
[0082] In an optional embodiment, the digital collection encryption system first determines the starting point and the end point from the data point sequence, and uses the line segment formed by the starting point and the end point as the target line segment, and then performs at least one target operation on the points in the data point sequence according to the target line segment and the vertical distance between the points in the data point sequence other than the starting point and the end point and the target line segment, to obtain multiple new target line segments, and the data point sequence is updated to a feature point sequence, wherein each point in the feature point sequence is matched to a target line segment with a vertical distance greater than a preset distance, wherein the preset distance is determined based on a thinning parameter, and then a second digital collection is determined based on the feature point sequence.
[0083] Optionally, the digital collection encryption system can identify a starting point and an end point from the sequence of data points, which will constitute the target line segment.
[0084] Optionally, the digital collection encryption system can perform a target operation on the data information. The digital collection encryption system can calculate the vertical distance between the target line segment and each point in the data point sequence except the starting point and the end point and the target line segment. Perform at least one target operation, which involves formally screening or transforming the data points to obtain multiple new target line segments.
[0085] Alternatively, perpendicular distance generally refers to the shortest distance between two points or objects in a two-dimensional plane or three-dimensional space, which is measured along a straight line perpendicular to the line between them.
[0086] Alternatively, the thinning parameter is a concept used in probability theory and statistics, especially when dealing with Poisson processes and random sampling problems. The thinning parameter is usually used to describe the probability of drawing a subsample from an original Poisson process. The thinning parameter affects the selection of feature points and the level of detail of the final digital collection.
[0087] Optionally, the digital collection encryption system may update the data point sequence into a feature point sequence, wherein each point in the feature point sequence has a vertical distance from at least one target line segment greater than a preset distance, which is determined based on a rarefaction parameter.
[0088] From the above content, it can be seen that by first determining the starting point and the end point of the data point sequence, then performing target processing, and then updating the data point sequence to a feature point sequence, the second digital collection is determined. The process of extracting feature points from the data point sequence and determining the digital collection based on these feature points can screen, analyze and process the data, reduce the amount of data to be processed, and thus improve computing efficiency.
[0089] In an optional embodiment, the digital collection encryption system first takes the point in the data point sequence with the largest vertical distance to the generated target line segment as the target point, and then deletes the target point from the data point sequence when the vertical distance between the target point and each generated target line segment is less than or equal to a preset distance, and then adds the target point to the feature point sequence when the vertical distance between the target point and any generated target line segment is greater than a preset distance, and determines two new target line segments based on the target point, wherein the two ends of one of the two newly determined target line segments are the starting point and the target point, and the two ends of the other of the two newly determined target line segments are the target point and the end point.
[0090] Optionally, the target point is a point selected from the data point sequence whose vertical distance to the generated target line segment is the largest.
[0091] Alternatively, perpendicular distance generally refers to the shortest distance between two points or objects in a two-dimensional plane or three-dimensional space, which is measured along a straight line perpendicular to the line between them.
[0092] Optionally, the digital collection encryption system can determine two new target line segments according to the target point. The two ends of one of the two new target line segments are the starting point and the target point, and the two ends of the other target line segment are the target point and the end point.
[0093] From the above content, it can be seen that the digital collection encryption system first searches for the target point, then checks the vertical distance between the target point and each generated target line segment, and deletes or adds the target point based on the comparison between the vertical distance between the target point and all generated target line segments and the preset distance, and finally determines the new target line segment. The process of identifying feature points from the data point sequence and generating target line segments based on these feature points can screen, analyze and process the data to improve computing efficiency.
[0094] In an optional embodiment, after the initial digital collection is subjected to thinning and target processing by the second algorithm to obtain the first digital collection, the digital collection encryption system performs a preprocessing operation on the first digital collection, wherein the preprocessing operation is used to back up and store the first digital collection, check data integrity, and check data consistency.
[0095] Alternatively, data integrity refers to the accuracy and reliability of data, ensuring that data remains correct and complete during input, processing and storage. Data integrity checking methods include integrity constraints, data verification, audit tracking, data backup and recovery, etc.
[0096] Optionally, data consistency refers to whether data maintains consistency and logical consistency at different time points and in different systems. Methods for checking data consistency include transaction management, data synchronization, version control, data cleaning, etc.
[0097] From the above content, it can be seen that backing up and storing the first digital collection, checking the integrity of the data, and checking the consistency of the data can maintain the integrity and core characteristics of the information as much as possible.
[0098] In an optional embodiment, after encrypting the first digital collection according to the target key to obtain the target digital collection, the digital collection encryption system uses the target key generated by the first algorithm to decrypt the target digital collection, and uses the second algorithm to perform the inverse operation of the target processing on the decrypted data to obtain the initial digital collection.
[0099] Optionally, the encryption operation is used to convert plaintext (readable information, i.e. the first digital collection) into ciphertext (incomprehensible information, i.e. the target digital collection). Encryption is a process of converting data into a form that cannot be directly read to protect the data from being accessed by unauthorized persons. Encryption technology plays an important role in protecting personal privacy, corporate confidentiality and information security.
[0100] Optionally, the decryption operation is used to restore the ciphertext (incomprehensible information, i.e. the target digital collection) to plaintext (readable information, i.e. the first digital collection). The decryption operation usually requires the use of the correct decryption key and algorithm. It mainly includes: symmetric encryption and decryption, asymmetric encryption and decryption, and hash function decryption. Here, it refers to the use of symmetric encryption and decryption.
[0101] From the above content, we can see that encryption and decryption are important means to protect the security of digital information. By selecting appropriate encryption algorithms and key management strategies, we can effectively protect the confidentiality, integrity and availability of data. By decrypting the target digital collections, we can ensure the integrity and accuracy of the digital collection information and verify the correctness and reliability of the encryption and decryption process.
[0102] It can be seen from the above content that according to the technical solution of this application, at least the following technical effects can be achieved:
[0103] 1. According to the technical solution of the present application, chaotic mapping and Douglas-Peuker algorithm are combined to improve the security of the encryption algorithm and effectively protect the confidentiality of the data.
[0104] 2. According to the technical solution of this application, by optimizing the algorithm, the speed of the encryption process is accelerated, the encryption efficiency is improved, and it is suitable for encryption processing of large-scale data.
[0105] 3. The Douglas-Peuker algorithm is used to remove redundant data points, which reduces the storage cost of encrypted data and optimizes data storage efficiency.
[0106] 4. According to the technical solution of this application, parameters can be adjusted and sub-key generation methods can be selected according to specific needs. It has certain flexibility and ease of use and is suitable for data encryption needs in different scenarios.
[0107] Optionally, Figure 3 is a flowchart of an optional encryption optimization of digital collections according to an embodiment of the present application, such as Figure 3 As shown, the process of digital collection encryption optimization includes: first inputting plaintext data, where the plaintext data is the initial digital collection information; then setting the initial chaotic mapping parameters, including: obtaining the control parameter r, the initial state value x0 and the length n of the generated random number sequence, and using the Logistic function to generate a chaotic sequence as an encryption key. Then, the plaintext data (i.e., the initial digital collection information) is processed by the Douglas-Peuker algorithm to generate the first digital collection, and then the first digital collection is stored. Finally, the encryption key generated by the chaotic Logistic algorithm is combined with the digital collection information optimized by the Douglas-Peuker algorithm to perform encryption operations, thereby ensuring the security and confidentiality of the information, while ensuring encryption efficiency and speed.
[0108] According to another aspect of the embodiment of the present application, an encryption device for digital collections is also provided, wherein: Figure 4 is a schematic diagram of an optional encryption device for digital collections according to an embodiment of the present application, such as Figure 4 As shown, the encryption device for digital collections includes: a generation unit 401, a processing unit 402, and an encryption unit 403.
[0109] A generation unit 401 generates a target key according to a first algorithm, wherein the first algorithm is used to generate a random encryption key; a processing unit 402 performs thinning processing and target processing on an initial digital collection using a second algorithm to obtain a first digital collection, wherein the second algorithm is used to simplify linear features or paths, the thinning processing is used to filter redundant data in the data, and the target processing is used to reduce the size of the data by format conversion or data compression; an encryption unit 403 encrypts the first digital collection according to the target key to obtain a target digital collection.
[0110] Optionally, the generating unit 401 includes: a first acquiring subunit, a first determining subunit, and a second determining subunit. The first acquiring subunit is used to acquire a control parameter and an initial state value, wherein the control parameter is used to control the key generation method, and the initial state value is used to generate a key that is not repeated with the historical key in a random manner; the first determining subunit is used to determine a target function, wherein the target function is used to generate a random number sequence; and the second determining subunit is used to determine a target key according to the control parameter, the initial state value, and the target function.
[0111] Optionally, the second determination subunit includes: a first determination module, a first processing module and a second processing module. The first determination module is used to determine a target length, wherein the target length is used to characterize the length of the generated key; the first processing module is used to use the control parameter, the initial state value and the target length as the first data; and the second processing module is used to input the first data into the target function for calculation to obtain the target key.
[0112] Optionally, the processing unit 402 includes: a third determining subunit, a first processing subunit, a second processing subunit, and a third processing subunit. The third determining subunit is used to determine a thinning parameter, wherein the thinning parameter is used to determine whether a data point is redundant data; the first processing subunit is used to convert the initial digital collection into a discrete data point sequence; the second processing subunit is used to perform thinning processing on the data point sequence according to the thinning parameter to obtain a second digital collection; the third processing subunit is used to perform target processing on the second digital collection to obtain the first digital collection.
[0113] Optionally, the second processing subunit includes: a second determination module, a third processing module and a third determination module. The second determination module is used to determine the starting point and the end point from the data point sequence, and use the line segment formed by the starting point and the end point as the target line segment; the third processing module is used to perform at least one target operation on the points in the data point sequence according to the target line segment, the vertical distance between the points in the data point sequence other than the starting point and the end point and the target line segment, and obtain multiple new target line segments, and the data point sequence is updated to a feature point sequence, wherein each point in the feature point sequence is matched to a target line segment with a vertical distance greater than a preset distance, wherein the preset distance is determined according to the rarefaction parameter; the third determination module is used to determine the second digital collection according to the feature point sequence.
[0114] Optionally, the target operation includes the following steps, including: taking the point in the data point sequence with the largest vertical distance to the generated target line segment as the target point; when the vertical distance between the target point and each generated target line segment is less than or equal to a preset distance, deleting the target point from the data point sequence; when the vertical distance between the target point and any generated target line segment is greater than a preset distance, adding the target point to the feature point sequence, and determining two new target line segments based on the target point, wherein the two ends of one of the two newly determined target line segments are the starting point and the target point, and the two ends of the other of the two newly determined target line segments are the target point and the end point.
[0115] Optionally, the encryption device for the digital collection also includes: a preprocessing unit, used to perform preprocessing operations on the first digital collection, wherein the preprocessing operations are used to back up and store the first digital collection, check data integrity, and check data consistency.
[0116] Optionally, the encryption device for the digital collection also includes: a decryption unit, which is used to use the target key generated by the first algorithm to decrypt the target digital collection, and use the second algorithm to perform the reverse operation of the target processing on the decrypted data to obtain the initial digital collection.
[0117] An embodiment of the present application may also provide an electronic device, Figure 5 is a structural block diagram of an electronic device according to an embodiment of the present application. Figure 5 As shown, the electronic device may include: one or more ( Figure 5 Only one is shown) a processor, a memory, a storage controller, and a peripheral interface, wherein the peripheral interface is connected to a radio frequency module, an audio module, and a display.
[0118] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the methods and devices in the embodiments of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned method. The memory 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 instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the 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.
[0119] The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: generate a target key according to a first algorithm, wherein the first algorithm is used to generate a random encryption key; use a second algorithm to perform thinning processing and target processing on the initial digital collection to obtain a first digital collection, wherein the second algorithm is used to simplify linear features or paths, the thinning processing is used to filter redundant data in the data, and the target processing is used to reduce the size of the data by format conversion or data compression; encrypt the first digital collection according to the target key to obtain a target digital collection.
[0120] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: obtain control parameters and initial state values, wherein the control parameters are used to control the method of generating the key, and the initial state value is used to generate a key that is not repeated with the historical key in a random manner; determine the target function, wherein the target function is used to generate a random number series; determine the target key based on the control parameters, the initial state value and the target function.
[0121] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: determine the target length, where the target length is used to characterize the length of the generated key; use the control parameters, initial state value, and target length as the first data; input the first data into the target function for calculation to obtain the target key.
[0122] The processor can also call the information and application programs stored in the memory through the transmission device to perform the following steps: determine the thinning parameters, where the thinning parameters are used to determine whether the data points are redundant data; convert the initial digital collection into a discrete data point sequence; thin the data point sequence according to the thinning parameters to obtain a second digital collection; and target process the second digital collection to obtain the first digital collection.
[0123] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: determine the starting point and the end point from the data point sequence, and use the line segment formed by the starting point and the end point as the target line segment; for the target line segment, the vertical distance between the points in the data point sequence other than the starting point and the end point and the target line segment, perform at least one target operation on the points in the data point sequence to obtain multiple new target line segments, and the data point sequence is updated to a feature point sequence, wherein each point in the feature point sequence is matched to a target line segment with a vertical distance greater than a preset distance, wherein the preset distance is determined based on the rarefaction parameter; determine the second digital collection based on the feature point sequence.
[0124] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: taking the point in the data point sequence with the largest vertical distance to the generated target line segment as the target point; when the vertical distance between the target point and each generated target line segment is less than or equal to the preset distance, deleting the target point from the data point sequence; when the vertical distance between the target point and any generated target line segment is greater than the preset distance, adding the target point to the feature point sequence, and determining two new target line segments based on the target point, wherein the two ends of one of the two newly determined target line segments are the starting point and the target point, and the two ends of the other of the two newly determined target line segments are the target point and the end point.
[0125] The processor can also call the information and applications stored in the memory through the transmission device to execute the following steps: preprocessing the first digital collection, wherein the preprocessing operation is used to back up the first digital collection, check the integrity of the data, and check the consistency of the data.
[0126] The processor can also call the information and applications stored in the memory through the transmission device to perform the following steps: use the target key generated by the first algorithm to decrypt the target digital collection, and use the second algorithm to perform the inverse operation of the target processing on the decrypted data to obtain the initial digital collection.
[0127] In an embodiment of the present application, a target key is first generated according to a first algorithm, wherein the first algorithm is used to generate a random encryption key. Then, a second algorithm is used to perform thinning processing and target processing on the initial digital collection to obtain a first digital collection. The second algorithm is used to simplify linear features or paths, thinning processing is used to filter redundant data in the data, and target processing is used to reduce the size of the data by format conversion or data compression. Finally, the first digital collection is encrypted according to the target key to obtain a target digital collection.
[0128] From the above content, it can be seen that the present application generates a target key through the first algorithm, and the generated target key is a highly random and unpredictable random number series, which improves the security and trustworthiness of the digital collection information, thereby preventing the digital collection information from being maliciously acquired, tampered with or forged.
[0129] Secondly, the second algorithm is used to perform thinning and target processing on the initial digital collection to obtain the first digital collection. Compared with the traditional digital collection encryption algorithm that directly processes the original digital collection information, since the original digital collection information often contains a large amount of data and information redundancy, it is easy to cause problems such as low encryption efficiency and slow data processing speed. The second algorithm technical solution proposed in this application can optimize the digital collection encryption process, reduce information redundancy, improve encryption efficiency and data processing speed, and just solve the technical problem existing in the traditional digital collection encryption algorithm.
[0130] In addition, the highly random and unpredictable random number sequence generated by the first algorithm is used as the encryption key, and the digital collection information is thinned and optimized in combination with the second algorithm, which can greatly prevent the digital collection information from being maliciously acquired, tampered with or forged, thereby improving the security and integrity of the information.
[0131] It can be seen that through the technical solution of the present application, the algorithm is used to optimize the digital collection information, and then it is encrypted to achieve the purpose of information protection, thereby achieving the technical effect of reducing the computing and storage costs of the system and improving the security and integrity of the information, and thus solving the technical problems of information redundancy and low encryption efficiency existing in traditional digital collection encryption methods.
[0132] It can be understood by those skilled in the art that Figure 5 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, and other terminal devices. Figure 5 The structure of the electronic device is not limited. Figure 5 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 5 Different configurations are shown.
[0133] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0134] According to another aspect of the present application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, wherein when the computer program is executed, the device where the computer-readable storage medium is located executes the above-mentioned encryption method for digital collections.
[0135] According to another aspect of the present application, a computer program product is also provided, wherein the computer program product includes computer instructions, wherein when the computer instructions are executed, the device where the computer program product is located executes the above-mentioned encryption method for digital collections.
[0136] The above-mentioned embodiments or examples disclosed in the present application are not exhaustive, but are only illustrative of some embodiments or examples, and are not intended to be specific limitations on the scope of protection disclosed in the present application. In the absence of contradiction, each step in a certain embodiment or example in the present application can be implemented as an independent example, and the steps can be combined arbitrarily. For example, the scheme after removing some steps in a certain embodiment or example can also be implemented as an independent example, and the order of the steps in a certain embodiment or example can be arbitrarily exchanged. In addition, the optional methods or optional examples in a certain embodiment or example can be combined arbitrarily; in addition, the various embodiments or examples can be combined arbitrarily, for example, some or all steps of different embodiments or examples can be combined arbitrarily, and a certain embodiment or example can be combined arbitrarily with the optional methods or optional examples of other embodiments or examples.
[0137] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0138] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0139] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0140] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0141] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0142] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0143] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. An encryption method for digital collections, characterized in that: include: generating a target key according to a first algorithm, wherein the first algorithm is used to generate a random encryption key; The first digital collection is obtained by performing thinning processing and target processing on the initial digital collection using a second algorithm, wherein the second algorithm is used to simplify linear features or paths, the thinning processing is used to filter redundant data in the data, and the target processing is used to reduce the size of the data by format conversion or data compression; The first digital collection is encrypted according to the target key to obtain a target digital collection.
2. The encryption method for digital collections according to claim 1, characterized in that: Generating a target key according to a first algorithm includes: Obtaining a control parameter and an initial state value, wherein the control parameter is used to control the method for generating a key, and the initial state value is used to generate a key that is not repeated with a historical key in a random manner; Determining a target function, wherein the target function is used to generate a random number sequence; The target key is determined according to the control parameter, the initial state value and the target function.
3. The encryption method for digital collections according to claim 2, characterized in that: Determining the target key according to the control parameter, the initial state value and the target function includes: Determining a target length, wherein the target length is used to characterize the length of the generated key; Taking the control parameter, the initial state value, and the target length as first data; The first data is input into the target function for calculation to obtain the target key.
4. The encryption method for digital collections according to claim 1, characterized in that: The second algorithm is used to perform thinning processing and target processing on the initial digital collection to obtain a first digital collection, including: Determining a thinning parameter, wherein the thinning parameter is used to determine whether a data point is redundant data; Converting the initial digital collection into a discrete sequence of data points; Performing thinning processing on the data point sequence according to the thinning parameter to obtain a second digital collection; The second digital collection is subjected to target processing to obtain the first digital collection.
5. The encryption method for digital collections according to claim 4, characterized in that: The data point sequence is thinned out according to the thinning parameter to obtain a second digital collection, including: Determine a starting point and an end point from the data point sequence, and use a line segment formed by the starting point and the end point as a target line segment; For the target line segment, the vertical distance between the points in the data point sequence other than the starting point and the end point and the target line segment, at least one target operation is performed on the points in the data point sequence to obtain a plurality of new target line segments, and the data point sequence is updated to a feature point sequence, wherein each point in the feature point sequence is matched to a target line segment with a vertical distance greater than a preset distance, wherein the preset distance is determined according to the thinning parameter; The second digital collection is determined according to the feature point sequence.
6. The encryption method for digital collections according to claim 5, characterized in that: The target operation includes the following steps, including: The point in the data point sequence with the largest vertical distance to the generated target line segment is taken as the target point; When the vertical distance between the target point and each generated target line segment is less than or equal to the preset distance, deleting the target point from the data point sequence; When the vertical distance between the target point and any generated target line segment is greater than the preset distance, the target point is added to the feature point sequence, and two new target line segments are determined based on the target point, wherein the two ends of one of the two newly determined target line segments are the starting point and the target point, and the two ends of the other of the two newly determined target line segments are the target point and the end point.
7. The encryption method for digital collections according to claim 1, characterized in that: After the initial digital collection is subjected to thinning processing and target processing by using the second algorithm to obtain the first digital collection, the encryption method for the digital collection further includes: A preprocessing operation is performed on the first digital collection, wherein the preprocessing operation is used to back up and store the first digital collection, check data integrity, and check data consistency.
8. The encryption method for digital collections according to claim 1, characterized in that: After encrypting the first digital collectible according to the target key to obtain the target digital collectible, the encryption method for the digital collectible further includes: The target key generated by the first algorithm is used to perform a decryption operation on the target digital collection, and the second algorithm is used to perform the reverse operation of the target processing on the decrypted data to obtain the initial digital collection.
9. An encryption device for digital collections, characterized in that: include: A generating unit, generating a target key according to a first algorithm, wherein the first algorithm is used to generate a random encryption key; A processing unit, which performs thinning processing and target processing on the initial digital collection using a second algorithm to obtain a first digital collection, wherein the second algorithm is used to simplify linear features or paths, the thinning processing is used to filter redundant data in the data, and the target processing is used to reduce the size of the data by format conversion or data compression; The encryption unit encrypts the first digital collection according to the target key to obtain a target digital collection.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is run, the device where the computer-readable storage medium is located is controlled to execute the encryption method for digital collections described in any one of claims 1 to 8.
11. An electronic device, characterized in that: include: A memory storing an executable program; A processor, configured to run the program, wherein the program, when running, executes the encryption method for digital collections as described in any one of claims 1 to 8.
12. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the encryption method for digital collections described in any one of claims 1 to 8 are implemented.