Mobile phone encryption communication method integrated with optical quantum random number generator

By integrating an optical quantum random number generator and using specific encryption logic algorithms to process image, audio, and video data based on data type and area division, the problem of lack of specificity and security in encryption in existing technologies is solved, and efficient and secure mobile phone communication encryption is achieved.

CN120785643AActive Publication Date: 2025-10-14ANHUI GUOXINTONG TECHNOLOGY CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202511167445.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-20
Publication Date
2025-10-14
Estimated Expiration
2045-08-20

AI Technical Summary

Technical Problem

In existing technologies, quantum random number generators lack targeted encryption in mobile phone communications and are unable to distinguish between sensitive and non-sensitive areas based on data types for differentiated encryption processing, resulting in a lack of targeted encryption and insufficient security.

Method used

Using an integrated optical quantum random number generator and encryption logic algorithms corresponding to different data types, it distinguishes image, audio and video data, and performs differentiated encryption processing on sensitive and non-sensitive areas respectively, including non-uniform blocking and pixel transformation of images, triangle mapping and spherical rotation transformation of audio, and polygonal encryption graphics generation of video.

Benefits of technology

It achieves high-strength encryption of image, audio and video data, ensuring the security of sensitive information and reducing redundant calculations in non-sensitive areas, adapting to the computing power limitations of mobile phones, and resisting attacks based on data statistical patterns.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120785643A_ABST
    Figure CN120785643A_ABST
Patent Text Reader

Abstract

The invention discloses a mobile phone encryption communication method integrated with an optical quantum random number generator, and particularly relates to the technical field of communication encryption. Image data is subjected to region division, a sensitive region and a remaining region are distinguished, and the remaining region is based on a difference formula of random number parity; a processing mode of non-uniform partitioning and pixel value dynamic transformation is adopted, and a sensitive area is subjected to secondary encryption through random palette filling, so that differential encryption strategies are realized for data needing to be transmitted by a user, high-strength protection is realized, and while the security of sensitive information is ensured, redundant calculation of residual areas is reduced, and encryption efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication encryption technology, and more specifically, to a mobile phone encryption communication method integrating an optical quantum random number generator. Background Art

[0002] With the rapid development of information technology, the importance of communication security has become increasingly prominent. Quantum random number generators use quantum physics processes to generate randomness. Compared with traditional random number generators, they have higher security and unpredictability, and can effectively prevent hackers and unauthorized users from obtaining sensitive information, thereby ensuring the confidentiality and integrity of data.

[0003] However, the application of quantum random number generators in mobile phone communications in existing technologies still has the following deficiencies: Data transmission in mobile communications covers a variety of data types, including images, audio, and video. Existing technologies often use a unified encryption method, but fail to adopt targeted encryption methods based on the specific data type of the communication, resulting in a lack of targetedness and security. In addition, for the specific data that users need to transmit, it is impossible to distinguish between sensitive areas and non-sensitive areas and further carry out targeted encryption processing. For example, for images, there is a lack of differentiated encryption strategies for sensitive areas and non-sensitive areas, resulting in either insufficient protection of sensitive information or redundant encryption of non-sensitive areas and a low level of intelligence.

[0004] To this end, a mobile phone encryption communication method that integrates an optical quantum random number generator is introduced. Summary of the Invention

[0005] In order to overcome the above-mentioned defects of the prior art, an embodiment of the present invention provides a mobile phone encryption communication method integrating an optical quantum random number generator.

[0006] To achieve the above object, the present invention provides the following technical solutions: A mobile phone encryption communication method integrating an optical quantum random number generator comprises: Communication encryption: Obtain random numbers generated by the optical quantum random number generator module, process them using encryption logic algorithms corresponding to different data types based on the data type of the communication process, and add them to the communication data stream for encryption processing; data types include images, audio, and video; Decryption output: After the receiving mobile phone receives the communication data stream, it decodes the encrypted data and outputs the decrypted data to complete the presentation of the communication content.

[0007] Specifically, the encryption logic algorithm corresponding to different data types is used for processing, wherein the image encryption process is as follows: If the data type of the current communication process is an image, the sensitive area pre-divided by the sender in the image is extracted. After the sensitive area is extracted from the image, two sets of random numbers are requested from the optical quantum random number generator for the remaining area, including a block random number set and a pixel transformation random number set; Randomly extract 64-bit numbers from the block random number set and divide the image into non-uniform blocks; After non-uniform block division, for each pixel in each block, an 8-bit binary random number is randomly extracted from the pixel transformation random number set, and its lowest bit is taken as the encryption number, represented by X. Based on the parity determination result of X, it is substituted into the formula with different settings to calculate the encrypted pixel value F corresponding to each pixel in each block, and then the transformation is performed; Expressed as ; Where Y is the original pixel value; M is the random offset, and when X is an odd number, it is obtained by calculating the average value of the remaining 7-bit binary random numbers. When X is an even number, 7 is taken as the highest value among the binary random numbers. represents a random coefficient, and is obtained by taking the highest value of the 7-bit binary random number and dividing it by the integer 2 and rounding it off when X is an odd number, and by taking the lowest value of the 7-bit binary random number and dividing it by the integer 2 and rounding it off when X is an even number; Each block that has undergone pixel value transformation is shuffled as a whole, and the encrypted pixel value G is calculated for the three RGB channels of the image and dynamically transformed.

[0008] Specifically, the process of encrypting the sensitive areas in the image is as follows: For the sensitive area, a blank-filled image of the same size as the sensitive area is generated; a new set of random numbers is requested from the optical quantum random number generator as a secondary encryption set; Construct a color palette containing 256 groups of colors, each group of palette colors corresponds to a set range of random number intervals; randomly extract 3 random numbers from the secondary encryption set, corresponding to the R, G, and B channels respectively, and match each random number in the secondary encryption set with the set range to determine the palette color corresponding to each random number. After the matching is completed, the corresponding position of the blank fill image is written to generate an encrypted image composed entirely of random colors.

[0009] Specifically, the encryption logic algorithm corresponding to different data types is used for processing, wherein the process of encrypting audio is as follows: If the data type of the current communication process is audio, set the audio energy threshold, extract the audio segments above the energy threshold as high-energy segments, and the remaining audio segments as normal-energy segments; For the audio in the high energy segment to the optical quantum random number generator request a set of random number set, as the high encryption set; from the high encryption set extraction highest random number, the lowest random number and each group of random number mean; The average energy value of the high energy segment is calculated, and the preset adjustment value is divided to obtain the adjustment factor k; The extracted highest random number, the lowest random number and the mean of each group of random numbers are multiplied by the adjustment factor k respectively, so as to obtain the corrected encryption number one, encryption number two and encryption number three, denoted as a1, a2 and a3; a1, a2, a3 are used as the lengths of three sides of a triangle to construct a triangle, so as to determine the three internal angles of the triangle; For the audio sampling points of the high energy segment, set as sequence ; Grouping according to the integer multiple of area, using the sine values of the three internal angles as the weighting coefficients of each group, and weighting and replacing each group of sampling points, wherein the jth sampling point of the ith group is transformed into ; Respectively represent the sine values of the three internal angles; The greatest common divisor of a1, a2 and a3 is used as the overall offset, and all the transformed sampling points are calculated according to the replacement order of adding and subtracting the overall offset.

[0010] Specifically, the process of encrypting the high energy segment in the audio is: For the high energy segment in the audio, the same as the encryption processing of the high energy segment, the peak energy, the duration and the frequency bandwidth are extracted from the high energy segment, denoted as E1, E2 and E3; E1, E2 and E3 are calculated according to the formula respectively to determine the spherical center coordinates ; A set of random numbers within a certain range are requested from the optical quantum random number generator as optimization coefficients; The average value of a1, a2 and a3 is divided by the optimization coefficient, and the result is rounded to the nearest integer as the spherical radius R; The encryption ball of the current high energy segment is constructed with the spherical center coordinates and the spherical radius, and the sampling point sequence of the high energy segment is mapped to the surface of the sphere, wherein the sampling point sequence of the high energy segment is represented as ; N is the total number of sampling points; For the ith sampling point, the polar angle is defined; the azimuth angle ; Based on the spherical center and the spherical radius R, the spherical surface coordinates corresponding to the sampling points are calculated, represented as ; Request three sets of 16-bit random numbers from the optical quantum random number generator, labeled v1, v2, and v3, and convert the three sets of random numbers into rotation angles around the x, y, and z axes; The conversion process is: ; The spherical surface coordinates corresponding to each sampling point are rotated around the x, y, and z axes in sequence to obtain the encrypted coordinates.

[0011] Specifically, the encryption logic algorithm corresponding to different data types is used for processing, wherein the process of encrypting the video is as follows: If the data type of the current communication process is video, two sets of random numbers are requested from the optical quantum random number generator, which are recorded as the frame-level random number set and the offset random number set; The original coordinate points are formed by using adjacent random numbers in the frame-level random number set, the positions of each group of coordinate points corresponding to the plane rectangular coordinate system are plotted, and the adjacent coordinate points are connected to construct a frame-level polyline graph; The original coordinate points are formed by using adjacent random numbers in the offset random number set, the positions of each group of coordinate points corresponding to the plane rectangular coordinate system are plotted, and the adjacent coordinate points are connected to construct a random broken line graph; A point is randomly selected from the frame-level polyline graph as the starting point, and two points are randomly selected from the random polyline graph as the end points. A line segment between the starting point and the two end points is constructed as a perimeter segment, and a polygon constructed by the two perimeter segments is intercepted as a polygonal encryption graph to encrypt the video.

[0012] Specifically, the above also includes: Generate random numbers: Generate analog signals through the quantum entropy source in the optical quantum random number generator, and convert the analog signals into random number outputs; Communication transmission: Transmit the encrypted communication data stream to the recipient's mobile phone.

[0013] Technical effects and advantages of the present invention: (1) By dividing the image data into regions, the sensitive area and the remaining area are distinguished. The remaining area is processed based on the differential formula of random number parity, and the non-uniform block plus pixel value dynamic transformation is adopted. The sensitive area is encrypted twice by random color palette filling, thereby implementing a differentiated encryption strategy for the data required to be transmitted by the user, achieving high-intensity protection, while ensuring the security of sensitive information, reducing redundant calculations in the remaining area and improving encryption efficiency; (2) By dividing the high-energy segment and the general energy segment based on the energy threshold, the general energy segment adopts lightweight encryption with triangle mapping plus offset adjustment, and the high-energy segment is upgraded to enhanced encryption with spherical space mapping plus three-dimensional rotation transformation, which not only meets the high security requirements of core information, but also adapts to the computing power limitations of real-time communication on mobile phones; (3) By dynamically adjusting the random number length according to the frame complexity, a polygonal encrypted graph is generated by fusing frame-level polylines with random polylines. This makes the encrypted graph have no fixed rules and is strongly associated with the characteristics of the video content, effectively resisting attacks based on data statistical laws. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 This is a flow chart of the mobile phone encryption communication method with integrated optical quantum random number generator of the present invention; Figure 2 Schematic diagram of the construction of the multilateral encryption graph of the present invention. DETAILED DESCRIPTION

[0015] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0016] Example

[0017] like Figure 1 As shown, the mobile phone encryption communication method integrating an optical quantum random number generator includes: Generate random numbers: Generate analog signals through the quantum entropy source in the optical quantum random number generator, and then convert the analog signals into random number outputs through the quantum signal acquisition and extraction module; Communication encryption: Obtain random numbers generated by the optical quantum random number generator module, process them using encryption logic algorithms corresponding to different data types based on the data type of the communication process, and add them to the communication data stream for encryption processing; data types include images, audio, and video; Specifically: If the data type of the current communication process is an image, the sensitive area pre-divided by the sender in the image is extracted. After the sensitive area is extracted from the image, two sets of random numbers are requested from the optical quantum random number generator for the remaining area, including a block random number set and a pixel transformation random number set; Block random number set (length 256 bits): used for block rules; Pixel transformation random number set (length = total number of image pixels × number of channels): each pixel / channel corresponds to an 8-bit random number (range 0-255), used for pixel value transformation; Randomly extract 64-bit numbers from the block random number set and divide the image into non-uniform blocks; the first 64 bits generate the block size (e.g., 8×8 to 32×32, the block size changes dynamically with the random number distribution), and assign a unique identifier to each block (generated by a 16-bit quantum random number); After non-uniform block division, for each pixel in each block, an 8-bit binary random number is randomly extracted from the pixel transformation random number set, and its lowest bit is taken as the encryption number, represented by X. Based on the parity determination result of X, it is substituted into the formula with different settings to calculate the encrypted pixel value F corresponding to each pixel in each block, and then the transformation is performed; Expressed as ; Where Y is the original pixel value; M is the random offset, and when X is an odd number, it is obtained by calculating the average value of the remaining 7-bit binary random numbers. When X is an even number, 7 is taken as the highest value among the binary random numbers. represents a random coefficient, and is obtained by taking the highest value of the 7-bit binary random number and dividing it by the integer 2 and rounding it off when X is an odd number, and by taking the lowest value of the 7-bit binary random number and dividing it by the integer 2 and rounding it off when X is an even number; Each block that has undergone pixel value transformation is shuffled as a whole, and the encrypted pixel value G is calculated for the three RGB channels of the image and dynamically transformed; (The random numbers for each channel are independent and may have different parity). For example, if an odd-number formula is used for a pixel in the R channel, an even-number formula may be used for the pixel at the same position in the G channel, thus destroying the color correlation between channels. The usage rules (such as parity judgment logic and coefficient generation method) are embedded in the image metadata area through the "key index" tag (composed of a 16-bit quantum random number). The receiver obtains the corresponding random number sequence and transformation rules from the pre-shared key pool through the index, without the need to transmit the complete random number (saving bandwidth); For sensitive areas, a blank padded image of the same size as the sensitive area is generated; each pixel position of the padded image reserves a mapping relationship with the original pixel of the sensitive area (marked by a 16-bit index) to ensure accurate restoration during decryption; Request a new set of random numbers from the optical quantum random number generator as the secondary encryption set; the length is "total number of pixels in the sensitive area × 3" (each pixel's three channels correspond to one random number), and each random number is 16 bits (range 0-65535) to match the color range of the palette; Construct a color palette containing 256 groups of colors; covering the full RGB color range; each group of palette colors corresponds to a random number interval within a set range; Three 16-bit random numbers are randomly drawn from the secondary encryption set, corresponding to the R, G, and B channels respectively. Each random number in the secondary encryption set is matched with the set range to determine the color of the palette corresponding to each random number. After the matching is completed, the corresponding position of the blank fill image is written to generate an encrypted image composed entirely of random colors. For sensitive areas, an additional "parity reversal" transformation is performed after the initial transformation. If an odd formula is used in the initial transformation, the secondary transformation is forced to use an even formula (based on a newly generated random number to ensure parity reversal), thus improving the encryption strength of sensitive information. Through "dynamic segmentation of the remaining area + pixel value parity transformation + double encryption of sensitive areas + quantum random number full-link drive", a three-layer security system of "spatial disorder - value transformation - feature masking" is constructed; If the data type of the current communication process is audio, an audio energy threshold is set according to the audio characteristics, and audio segments above the energy threshold are extracted as high-energy segments, and the remaining audio segments are taken as normal-energy segments; For the general energy segment in the audio, a set of random numbers is requested from the optical quantum random number generator as a general encryption set; the length is limited to 8-12 bits; the highest random number, the lowest random number, and the average of each group of random numbers are extracted from the general encryption set; Calculate the average energy value of the general energy segment and divide it by the preset adjustment value to use as the adjustment factor k; the preset adjustment value is 100, which can be dynamically adjusted to ensure that k is between 1-5 and is positively correlated with the audio energy; The highest random number, the lowest random number, and the mean of each group of random numbers are multiplied by the adjustment factor k to obtain the modified encrypted numbers one, two, and three, denoted by a1, a2, and a3; a triangle is constructed with a1, a2, and a3 as the three side lengths of the triangle, thereby determining the three interior angles of the triangle; For the audio sampling points of the general energy segment, set it as the sequence ; Group by integer multiples of area, use the sine values ​​of the three internal angles as the weight coefficients of each group, and perform weighted permutation on each group of sampling points, where the jth sampling point in the i-th group Transformed into ; Represent the sine values ​​of the three interior angles respectively; take the numbers cyclically to ensure reversibility; Taking the greatest common divisor of a1, a2, and a3 as the overall offset, all transformed sampling points are calculated in the order of addition and subtraction of the overall offset; the offset is reversed during decryption to complete the encryption of the general energy segment; For example, if the first set of sampling points is added to the overall offset, then the second set of sampling points is subtracted from the overall offset, and so on; After the high-energy segment in the audio is encrypted in the same way as the normal-energy segment, the peak energy, duration, and frequency bandwidth are extracted from the high-energy segment and recorded as E1, E2, and E3; E1, E2 and E3 are calculated based on the formula Perform calculations to determine the coordinates of the sphere center The coordinate range is controlled within ±200 to ensure that the sampling points of the sphere mapping are evenly distributed. The optical quantum random number generator is requested to generate a set of random numbers within the set range. The set range is 1-5 and is an integer. This is used as the optimization coefficient. Divide the average of the three groups of values ​​of a1, a2, and a3 by the optimization coefficient, and round the result to get the radius R of the sphere; The encrypted sphere of the current high energy segment is constructed using the sphere center coordinates and the sphere radius, and the sampling point sequence of the high energy segment is mapped to the surface of the sphere, where the sampling point sequence of the high energy segment is expressed as ; N is the total number of sampling points; For the i-th sampling point, define: polar angle ; 0-π, covering the upper hemisphere to the lower hemisphere of the sphere; azimuth ; 0-2π, combining the characteristics of the sampling value to enhance randomness; Based on the center of the sphere And the radius R of the sphere, calculate the coordinates of the sphere surface corresponding to the sampling point, which is expressed as ; Make sure the coordinates are range and are evenly distributed; Request three sets of 16-bit random numbers from the optical quantum random number generator, labeled v1, v2, and v3, and convert the three sets of random numbers into rotation angles around the x, y, and z axes; The conversion process is: ; The spherical surface coordinates corresponding to each sampling point are rotated around the x, y, and z axes in sequence to obtain encrypted coordinates; thus, encryption of the high-energy segment is completed; For example, rotation around the x-axis The rotation matrices around the y-axis and z-axis are similar. After the three rotations are superimposed, the positions of the sampling points on the surface of the sphere are completely disrupted. The spherical rotation completely disrupts the spatial coordinates of the sampling points, destroying temporal continuity. When the sampling points are mapped to the surface of the sphere, their coordinates are directly associated with the sampled values. Subsequent rotation indirectly affects the encryption logic of the values, causing the values ​​to be deeply coupled with the spatial coordinates. After rotation, the sampling points are reorganized by radial distance, replacing the original time sequence. This prevents attackers from inferring the rhythm or accent positions of the original audio from the time sequence. This three-dimensional encryption completely destroys the statistical characteristics of the high-energy segment (such as amplitude distribution, correlation between adjacent sampling points, and frequency components), thus improving the security of encryption. If the data type of the current communication process is video, two sets of random numbers are requested from the optical quantum random number generator, which are recorded as the frame-level random number set and the offset random number set. The lengths of the frame-level random number set and the offset random number set vary with the complexity of the current video frame, such as the sum of motion vectors. The original coordinate points are formed by using adjacent random numbers in the frame-level random number set, the positions of each group of coordinate points corresponding to the plane rectangular coordinate system are plotted, and the adjacent coordinate points are connected to construct a frame-level polyline graph; The original coordinate points are formed by using adjacent random numbers in the offset random number set, the positions of each group of coordinate points corresponding to the plane rectangular coordinate system are plotted, and the adjacent coordinate points are connected to construct a random broken line graph; The coordinate range is limited to 0-511 to ensure that the polylines are evenly distributed in the plane; Randomly select a position point from the frame-level polyline graph as the starting point, and randomly select two position points from the random polyline graph as the end points. The two sets of end points are not repeated. The line segment between the starting point and the two end points is constructed as the enclosing line segment, and the polygon constructed by the two enclosing line segments is intercepted to encrypt the video as a polygonal encryption graph. The encrypted graph consists of a polygon constructed from a frame-level polyline starting point and two random polyline end points. The starting point comes from the frame-level polyline, and the end point comes from the random polyline. The two sources of randomness are independent and unrelated. The shape of the polygon is determined by the relative positions of the three points, which are chosen completely randomly ("randomly select the starting point + randomly select the two end points"). The combination space grows exponentially with the length of the random number, making it impossible for attackers to restore the graph through brute force enumeration. The interception of polygons further breaks the continuity and relevance of the original polyline, making the encrypted graph have neither fixed shape nor spatial distribution pattern; Communication transmission: Use the mobile phone's MODEM to transmit the encrypted communication data stream to the recipient's mobile phone; Decryption output: After the receiving mobile phone receives the communication data stream through the MODEM, the decoder decodes the encrypted data and outputs the decrypted data to complete the presentation of the communication content; The above formulas are all dimensionless and calculated numerically. Specific dimension removal can be achieved by various means such as standardization, which will not be elaborated here. The formula is a formula obtained by collecting a large amount of data and performing software simulation to obtain the most recent real situation. The preset parameters in the formula are set by technicians in this field according to actual conditions.

[0018] The above embodiments can be implemented in whole or in part via software, hardware, firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. When loaded or executed on a computer, the processes or functions described in the embodiments of this application are fully or partially performed. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium accessible by a computer or a data storage device such as a server or data center that contains a collection of one or more available media. The available medium can be magnetic media (e.g., floppy disks, ATA hard drives, magnetic tapes), optical media (e.g., DVDs), or semiconductor media. The semiconductor media can be a solid-state ATA hard drive.

[0019] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0020] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0021] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as 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 devices or units, which can be electrical, mechanical or other forms.

[0022] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, and may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment as needed.

[0023] 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.

[0024] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile ATA hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program code.

[0025] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A mobile phone encryption communication method integrating an optical quantum random number generator, characterized in that: include: Communication encryption: Obtain random numbers generated by the optical quantum random number generator module, process them using encryption logic algorithms corresponding to different data types based on the data type of the communication process, and add them to the communication data stream for encryption processing; data types include images, audio, and video; Decryption output: After the receiving mobile phone receives the communication data stream, it decodes the encrypted data and outputs the decrypted data to complete the presentation of the communication content.

2. The mobile phone encryption communication method of the integrated optical quantum random number generator according to claim 1, characterized in that: The encryption logic algorithm corresponding to different data types is used for processing, wherein the image encryption process is as follows: If the data type of the current communication process is an image, the sensitive area pre-divided by the sender in the image is extracted. After the sensitive area is extracted from the image, two sets of random numbers are requested from the optical quantum random number generator for the remaining area, including a block random number set and a pixel transformation random number set; Randomly extract 64-bit numbers from the block random number set and divide the image into non-uniform blocks; After non-uniform block division, for each pixel in each block, an 8-bit binary random number is randomly extracted from the pixel transformation random number set, and its lowest bit is taken as the encryption number, represented by X. Based on the parity determination result of X, it is substituted into the formula with different settings to calculate the encrypted pixel value F corresponding to each pixel in each block, and then the transformation is performed; Expressed as ; Where Y is the original pixel value; M is the random offset, and when X is an odd number, it is obtained by calculating the average value of the remaining 7 binary random numbers. When X is an even number, 7 is taken as the highest value among the binary random numbers. represents a random coefficient, and is obtained by taking the highest value of the 7-bit binary random number and dividing it by the integer 2 and rounding it off when X is an odd number, and by taking the lowest value of the 7-bit binary random number and dividing it by the integer 2 and rounding it off when X is an even number; Each block that has undergone pixel value transformation is shuffled as a whole, and the encrypted pixel value G is calculated for the three RGB channels of the image and dynamically transformed.

3. The mobile phone encryption communication method of the integrated optical quantum random number generator according to claim 2, characterized in that: The process of encrypting the sensitive areas in the image is as follows: For the sensitive area, a blank-filled image of the same size as the sensitive area is generated; a new set of random numbers is requested from the optical quantum random number generator as a secondary encryption set; Construct a color palette containing 256 groups of colors, each group of palette colors corresponds to a set range of random number intervals; randomly extract 3 random numbers from the secondary encryption set, corresponding to the R, G, and B channels respectively, and match each random number in the secondary encryption set with the set range to determine the palette color corresponding to each random number. After the matching is completed, the corresponding position of the blank fill image is written to generate an encrypted image composed entirely of random colors.

4. The mobile phone encryption communication method of the integrated optical quantum random number generator according to claim 3 is characterized in that: The encryption logic algorithm corresponding to different data types is used for processing, wherein the process of encrypting audio is as follows: If the data type of the current communication process is audio, set the audio energy threshold, extract the audio segments above the energy threshold as high-energy segments, and the remaining audio segments as normal-energy segments; For the general energy segment in the audio, a set of random numbers is requested from the optical quantum random number generator as a general encryption set; the highest random number, the lowest random number, and the mean of each set of random numbers are extracted from the general encryption set; Calculate the average energy value of the general energy segment and divide it by the preset adjustment value as the adjustment factor k; The highest random number, the lowest random number, and the mean of each group of random numbers are multiplied by the adjustment factor k to obtain the modified encrypted numbers one, two, and three, denoted by a1, a2, and a3; a triangle is constructed with a1, a2, and a3 as the three side lengths of the triangle, thereby determining the three interior angles of the triangle; For the audio sampling points of the general energy segment, set it as the sequence ; Group by integer multiples of area, use the sine values ​​of the three internal angles as the weight coefficients of each group, and perform weighted permutation on each group of sampling points, where the jth sampling point in the i-th group Transformed into ; Represent the sine values ​​of the three interior angles respectively; The greatest common divisor of a1, a2, and a3 is used as the overall offset, and all transformed sampling points are calculated in the order of addition and subtraction of the overall offset.

5. The mobile phone encryption communication method of the integrated optical quantum random number generator according to claim 4 is characterized in that: The process of encrypting the high-energy segment in the audio is as follows: After the high-energy segment in the audio is encrypted in the same way as the normal-energy segment, the peak energy, duration, and frequency bandwidth are extracted from the high-energy segment and recorded as E1, E2, and E3; E1, E2 and E3 are calculated based on the formula Perform calculations to determine the coordinates of the sphere center ; Requesting a set of random numbers within a set range from the optical quantum random number generator as optimization coefficients; Divide the average of the three groups of values ​​of a1, a2, and a3 by the optimization coefficient, and round the result to get the radius R of the sphere; The encrypted sphere of the current high energy segment is constructed using the sphere center coordinates and the sphere radius, and the sampling point sequence of the high energy segment is mapped to the surface of the sphere, where the sampling point sequence of the high energy segment is expressed as ; N is the total number of sampling points; For the i-th sampling point, define: polar angle ; Azimuth ; Based on the center of the sphere And the radius R of the sphere, calculate the coordinates of the sphere surface corresponding to the sampling point, which is expressed as ; Request three sets of 16-bit random numbers from the optical quantum random number generator, labeled v1, v2, and v3, and convert the three sets of random numbers into rotation angles around the x, y, and z axes; The conversion process is: ; The spherical surface coordinates corresponding to each sampling point are rotated around the x, y, and z axes in sequence to obtain the encrypted coordinates.

6. The mobile phone encryption communication method of the integrated optical quantum random number generator according to claim 5, characterized in that: The encryption logic algorithm corresponding to different data types is used for processing, wherein the process of encrypting the video is as follows: If the data type of the current communication process is video, two sets of random numbers are requested from the optical quantum random number generator, which are recorded as the frame-level random number set and the offset random number set; The original coordinate points are formed by using adjacent random numbers in the frame-level random number set, the positions of each group of coordinate points corresponding to the plane rectangular coordinate system are plotted, and the adjacent coordinate points are connected to construct a frame-level polyline graph; The original coordinate points are formed by using adjacent random numbers in the offset random number set, the positions of each group of coordinate points corresponding to the plane rectangular coordinate system are plotted, and the adjacent coordinate points are connected to construct a random broken line graph; A point is randomly selected from the frame-level polyline graph as the starting point, and two points are randomly selected from the random polyline graph as the end points. A line segment between the starting point and the two end points is constructed as a perimeter segment, and a polygon constructed by the two perimeter segments is intercepted as a polygonal encryption graph to encrypt the video.

7. The mobile phone encryption communication method of the integrated optical quantum random number generator according to claim 6, characterized in that: Said also includes: Generate random numbers: Generate analog signals through the quantum entropy source in the optical quantum random number generator, and convert the analog signals into random number outputs; Communication transmission: Transmit the encrypted communication data stream to the recipient's mobile phone.

Citation Information

Patent Citations

  • Foreground and background separation-based image encryption and decryption methods

    CN104851070A

  • Method for balancing image privacy and availability based on three-pixel point encryption

    CN113206926A

  • Lightweight dynamic image data encryption method and system

    CN115378574A

  • Audio cloud storage method and device

    CN118486315A

  • Encryption communication method of integrated quantum random number generator

    CN119628837A