Data encryption method and system for solid state hard disk
By parsing the partition table structure and capacity distribution analysis of the solid-state drive, blocking and obfuscating data to be written, and using random pictures for data steganography and multi-layer image steganography, the security of traditional solid-state drive data encryption methods is solved. Insufficient performance and multi-layer encryption requirements achieve efficient and secure data encryption effects.
Patent Information
- Application Number
- CN202411605539.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-11-12
AI Technical Summary
Traditional solid-state drive data encryption methods have problems such as low encryption efficiency and insufficient security, which are difficult to meet the needs of data security and confidentiality, especially in terms of dynamic adjustment of data encryption and multi-layer encryption.
A data encryption method for solid-state hard disk is proposed. By analyzing the partition table structure and capacity distribution analysis of the hard disk, the hard disk capacity distribution data is obtained; the data to be written is processed in blocks and obfuscated encryption; and the pre-stored random pictures are used for Data distribution encrypted steganography, and visual deviation fine-tuning and global pixel points confusion are performed, and multi-layer image steganography is finally performed based on hard disk capacity distribution data.
It improves the security and concealment of data, enhances the confidentiality and integrity of data, and makes data more difficult to be cracked and stolen through multi-layer encryption, effectively protecting the data security in solid-state drives.
Smart Images

Figure CN119150329B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of solid state hard disk data encryption, and in particular to a solid state hard disk data encryption method and system. Background Art
[0002] In today's information age, data security and privacy protection are increasingly valued, especially for sensitive data in storage devices such as solid-state drives. As a high-speed, large-capacity storage medium, solid-state drives are widely used in various application scenarios. However, with the frequent occurrence of data leaks and hacker attacks, traditional data encryption methods have been unable to meet the demand for data security. Traditional solid-state drive data encryption methods often rely on software implementation or use hardware encryption modules, which have problems such as low encryption efficiency and insufficient security. In addition, the demand for dynamic adjustment and multi-layer encryption of data encryption is also difficult to meet. Therefore, in order to improve the security and confidentiality of solid-state drive data, an intelligent and efficient data encryption method is needed to cope with the growing security challenges. Summary of the invention
[0003] In order to solve the above technical problems, the present invention proposes a data encryption method and system for a solid state drive to solve at least one of the above technical problems.
[0004] To achieve the above object, the present invention provides a method for encrypting data of a solid state drive, comprising the following steps:
[0005] Step S1: parsing the partition table structure of the solid state hard disk and analyzing the hard disk capacity distribution to obtain hard disk capacity distribution data;
[0006] Step S2: obtaining the data to be written into the hard disk; performing data block processing on the data to be written into the hard disk, and performing obfuscated encryption processing, thereby constructing an obfuscated encrypted data sequence;
[0007] Step S3: obtaining a pre-stored random image; performing pixel-by-pixel channel decomposition on the pre-stored random image, and performing maximum data steganographic distribution density calculation to obtain the maximum data steganographic distribution density;
[0008] Step S4: Based on the maximum data steganalysis distribution density, the obfuscated encrypted data sequence is used to perform data distribution encryption steganalysis on the pre-stored random image, and visual deviation is fine-tuned to generate a visually fine-tuned steganalysis image;
[0009] Step S5: Randomly position mapping and arranging the visual fine-tuning steganographic image, and performing global pixel obfuscation, thereby obtaining a global pixel obfuscated steganographic image;
[0010] Step S6: Perform multi-layer image steganography on the global pixel obfuscation steganographic image based on the hard disk capacity distribution data to obtain a multi-layer data encrypted steganographic image to complete the solid state disk data encryption operation.
[0011] The present invention can accurately understand the capacity utilization of the hard disk, including the size of each partition and the data storage location, by performing partition table structure analysis and capacity distribution analysis on the solid-state hard disk. This provides necessary hard disk structure information for subsequent data encryption operations, and helps to ensure the accuracy and integrity of data encryption operations. After obtaining the data to be written to the hard disk, block processing and obfuscated encryption processing of the data can effectively improve the security of the data. Block processing helps to reduce the risk of leakage of a single data block, while obfuscated encryption can make the data more difficult to be decrypted by unauthorized users, thereby protecting the confidentiality and integrity of the data. By performing pixel-by-pixel channel decomposition and maximum data steganographic distribution density calculation on pre-stored random images, the steganographic capacity of the image can be accurately evaluated, which helps to determine the maximum amount of data that can be hidden in the image, and provides a basis and restriction conditions for subsequent data steganographic operations. Based on the maximum Data steganography distribution density, the obfuscated encrypted data sequence is used to perform data distribution encryption steganography on the pre-stored random picture and perform visual deviation fine-tuning to generate a visually fine-tuned steganographic picture, which effectively embeds the encrypted data into the picture, and improves the data's steganographic stability and visual quality through fine-tuning, thereby enhancing the data's concealment. Random position mapping arrangement and global pixel point obfuscation of the visually fine-tuned steganographic picture can increase the data's obfuscation and concealment. Random position mapping arrangement and pixel point obfuscation operations make the data in the picture more difficult to identify and restore, further improving the data's security. Multi-layer image steganography is performed on the global pixel point obfuscation steganographic picture based on the hard disk capacity distribution data to generate multi-layer data encryption steganographic pictures, thereby achieving multiple protection and encryption of the data. This multi-layer encryption method improves the data's security, makes the data more difficult to crack and steal, and effectively protects the data security in the solid-state drive.
[0012] Preferably, step S1 comprises the following steps:
[0013] Step S11: performing hard disk partition identification on the solid state hard disk to obtain solid state hard disk partition data;
[0014] Step S12: parsing the partition table structure of the solid state hard disk partition data to generate sector data of each hard disk partition;
[0015] Step S13: Calculate the sector capacity of each hard disk partition based on the sector data of each hard disk partition to obtain the capacity of each hard disk partition;
[0016] Step S14: Perform hard disk capacity distribution analysis based on the capacity of each hard disk partition to obtain hard disk capacity distribution data.
[0017] The present invention can accurately obtain the partition data of the solid-state hard disk, including the starting position, size and data storage of each partition, by performing hard disk partition identification on the solid-state hard disk. This provides partition-level data structure information for subsequent data encryption operations, which helps to more accurately control the encryption and storage of data. The partition table structure is parsed for the partition data of the solid-state hard disk to generate the sector data of each hard disk partition. It helps to determine the data organization mode of each partition, including the order and storage content of the sectors, and provides a basis for subsequent data encryption and distribution. The capacity size of the sector data of each hard disk partition is calculated to obtain the accurate capacity size of each hard disk partition. This helps to accurately determine the amount of data that can be stored in each partition, and provides necessary parameters and restrictions for subsequent data distribution and encryption. Hard disk capacity distribution analysis is performed based on the capacity size of each hard disk partition to obtain hard disk capacity distribution data. It can help to understand the data storage and space utilization of different partitions in the hard disk, provide a basis for subsequent data encryption operations, and ensure the accuracy and integrity of data encryption.
[0018] Preferably, step S2 comprises the following steps:
[0019] Step S21: Acquire the data to be written into the hard disk;
[0020] Step S22: performing abnormal value detection on the data to be written into the hard disk, and extracting abnormal values of the data to be written;
[0021] Step S23: performing abnormal filtering and normalization according to abnormal values of the data to be written, thereby obtaining standardized data to be written;
[0022] Step S24: performing data block processing on the standardized data to be written, thereby obtaining a plurality of lossless compressed data blocks;
[0023] Step S25: performing symmetrical encryption on the multiple lossless compressed data blocks respectively to obtain multiple symmetrically encrypted data blocks;
[0024] Step S26: Perform hash obfuscation serialization processing on multiple symmetrically encrypted data blocks to construct an obfuscated encrypted data sequence.
[0025] The present invention obtains the hard disk data to be written as the starting point of the data encryption process, ensures the availability and integrity of the data to be encrypted, and provides a basis for subsequent data processing and encryption operations. By performing abnormal value detection on the hard disk data to be written, the abnormal values in the data can be timely identified and extracted, the influence of the abnormal data on the encryption process can be avoided, and the accuracy and reliability of data encryption can be improved. According to the abnormal values of the data to be written, abnormal filtering and standardization are performed to obtain standardized data to be written. It is helpful to standardize the format and structure of the data, improve the consistency and processability of the data, and lay the foundation for subsequent data processing operations. The standardized data to be written is processed by data block processing to obtain multiple lossless compressed data blocks. Data block processing helps to reduce the size of a single data block, facilitates processing and encryption, and ensures the integrity and recoverability of the data. Symmetric encryption is performed on multiple lossless compressed data blocks respectively to obtain multiple symmetric encrypted data blocks. Through symmetric encryption, the security of data during transmission and storage is ensured, unauthorized access and tampering are prevented, and the privacy and confidentiality of the data are protected. Multiple symmetric encrypted data blocks are subjected to hash obfuscation serialization processing to construct an obfuscated encrypted data sequence. It increases the obfuscation and difficulty of cracking data, improves the security and confidentiality of data, and effectively protects the storage security of data in solid-state drives.
[0026] Preferably, the specific steps of step S24 are:
[0027] Define the fine-grained size of data block segmentation based on the standardized data to be written;
[0028] Based on the fine-grained size of data block segmentation, the standardized data to be written is traversed and segmented to obtain a plurality of initial segmented data blocks;
[0029] Extracting a last initial segmentation data block based on the plurality of initial segmentation data blocks;
[0030] Determine whether the last initial segmentation data block meets the segmentation fine-grained size, and when the last initial segmentation data block does not meet the segmentation fine-grained size, perform random value padding processing on the last initial segmentation data block to obtain a padded initial segmentation data block;
[0031] Performing sequential encoding processing based on the multiple initial segmented data blocks and the padded initial segmented data blocks to obtain encoded segmented data blocks;
[0032] Lossless data compression is performed on the coded segmented data blocks, thereby obtaining a plurality of lossless compressed data blocks.
[0033] The present invention defines the fine-grained size of data block segmentation, and can segment data according to the specified size, which helps to improve the efficiency and accuracy of data processing and is convenient for subsequent processing and encryption operations. The segmentation process is traversed to standardize the data to be written to obtain multiple initial segmented data blocks, which helps to segment the data into multiple blocks according to the fine-grained size and provides a basis for subsequent processing and encoding. Extracting the last initial segmented data block helps to determine whether it meets the specified segmentation fine-grained size and provides a basis for ensuring the integrity and compliance of the data. It is determined whether the last initial segmented data block meets the segmentation fine-grained size. If it does not meet the requirements, random value filling processing is performed to ensure that all data blocks are of the same size and avoid data damage or loss. Multiple initial segmented data blocks are processed by sequential coding and filled with initial segmented data blocks to obtain coded segmented data blocks, which helps to orderly manage and encode data and provide a basis for subsequent compression and encryption operations. Lossless data compression is performed on the coded segmented data blocks to obtain multiple lossless compressed data blocks, which helps to reduce the storage space occupied by data and maintain the integrity of the data, thereby improving the transmission and storage efficiency of data.
[0034] Preferably, step S3 specifically comprises the following steps:
[0035] Step S31: Obtain a pre-stored random picture;
[0036] Step S32: performing image pixel traversal recognition on the pre-stored random picture to obtain an image pixel array;
[0037] Step S33: Decomposing the image pixel array pixel by pixel channel, extracting pixel channel data of the pixel;
[0038] Step S34: Calculating the distribution probability density of the pixel channel data of the pixel point, thereby obtaining the distribution probability density value of the pixel channel;
[0039] Step S35: Calculate the maximum data steganographic distribution density for the distribution probability density value of the pixel channel, so as to obtain the maximum data steganographic distribution density.
[0040] The present invention can provide a random and rich data source through pre-stored random pictures, which is used for subsequent pixel processing and data steganalysis, increasing the randomness and complexity of data encryption. By traversing and identifying the pixel points of the image, the pixel point array of the image can be obtained, providing a basis for subsequent pixel processing and data extraction. The pixel channel decomposition of each pixel point helps to extract the pixel channel data of each pixel point. These data can contain the color information and other important features of the image, providing data support for subsequent probability calculations. The distribution probability density calculation of the pixel channel data can understand the distribution law of the pixel channel value, which is helpful to identify the data steganalysis information in the image and improve the concealment and security of data encryption. By calculating the maximum data steganalysis distribution density in the distribution probability density value of the pixel channel, the area or channel containing the most data steganalysis information can be determined, the detection and extraction accuracy of data steganalysis is improved, and the confidentiality and concealment of data encryption are enhanced.
[0041] Preferably, the specific steps of step S4 are:
[0042] Step S41: performing data steganographic area analysis on the pre-stored random image based on the maximum data steganographic distribution density to obtain the steganographic area of the image;
[0043] Step S42: performing data distribution encryption steganography on the obfuscated encrypted data sequence according to the steganographic area of the image, thereby obtaining a distributed encrypted steganographic image;
[0044] Step S43: Calculate the pixel value of the steganographic region of the image to obtain the pixel value of the steganographic region;
[0045] Step S44: performing image color difference recognition of the stego area on the distributed encrypted stego image based on the pixel value of the stego area, and extracting image color difference data of the stego area;
[0046] Step S45: fine-tune the visual deviation of the distributed encrypted steganographic image based on the image color difference data of the steganographic area, thereby generating a visually fine-tuned steganographic image.
[0047] The present invention determines the steganographic region in the image, that is, the region most suitable for data steganography operation, by analyzing the maximum data steganography distribution density, improves the efficiency and accuracy of data steganography, performs distributed encryption steganography on the data sequence according to the steganographic region, hides the obfuscated encrypted data in the image, increases the confidentiality and concealment of the data, and prevents the data from being obtained by unauthorized visitors. Calculating the pixel value of the steganographic region helps to understand the image characteristics of the region, and provides a basis for subsequent steganographic region analysis and data extraction. Image color difference recognition is performed based on the pixel value of the steganographic region, and image color difference data of the steganographic region is extracted, which helps to locate the position and range of data steganography, and enhances the accuracy and reliability of data steganography. By fine-tuning the visual deviation of the distributed encrypted steganographic image, the steganography operation is made more concealed and difficult to detect, and the security of data encryption is increased, ensuring that the data is not easily stolen or tampered with during transmission and storage. Such steps can improve the concealment and anti-interference ability of data steganography, thereby enhancing the data encryption security of the solid state drive.
[0048] Preferably, the specific steps of step S5 are:
[0049] Step S51: extract all pixels based on visual fine-tuning of the steganographic image;
[0050] Step S52: Calculate the current position of all the pixel points to obtain the image position coordinates of each pixel point;
[0051] Step S53: performing random position mapping and arranging of the image position coordinates of each pixel point, thereby obtaining a pixel point random position mapping table;
[0052] Step S54: performing global pixel obfuscation on all pixels according to the pixel random position mapping table, thereby obtaining a global pixel obfuscated steganographic image.
[0053] The present invention extracts all pixel points based on visual fine-tuning steganographic pictures to ensure that subsequent processing contains complete image information, provides a necessary data basis for subsequent pixel point processing, calculates the current position of all pixel points, obtains the image position coordinates of each pixel point, and provides basic data for subsequent position mapping and arrangement. The position information of each pixel point in the picture can be accurately obtained through position calculation, and accurate coordinate data is provided for subsequent processing. The image position coordinates of each pixel point are randomly mapped and arranged to obtain a random position mapping table of pixels. The random position mapping and arrangement can realize pixel point position obfuscation, increase the difficulty and security of data encryption, perform global pixel point obfuscation on all pixels according to the random position mapping table of pixels, and obtain a global pixel point obfuscated steganographic picture. The global pixel point obfuscation can effectively protect the integrity and security of data, making the data more difficult to be decrypted and tampered with.
[0054] Preferably, the specific steps of step S6 are:
[0055] Step S61: Calculate the available capacity of each hard disk partition to obtain the available capacity data of the hard disk partition;
[0056] Step S62: predicting the maximum number of steganographic layers of a partition based on the hard disk capacity distribution data and the available capacity data of the hard disk partition, thereby obtaining a predicted value of the maximum number of steganographic layers of the hard disk partition;
[0057] Step S63: Perform multi-layer image steganography on the global pixel obfuscation steganographic image based on the maximum steganographic layer number prediction value of the hard disk partition to obtain a multi-layer data encrypted steganographic image to complete the solid state hard disk data encryption operation.
[0058] The present invention calculates the available capacity of each hard disk partition to obtain the available capacity data of the hard disk partition. Calculating the available capacity of the hard disk partition is helpful to effectively plan data storage and encryption operations, ensuring that data encryption will not exceed the hard disk capacity limit. Based on the hard disk capacity distribution data and the available capacity data of the hard disk partition, the maximum number of steganographic layers of the partition is predicted to obtain the predicted value of the maximum number of steganographic layers of the hard disk partition. The predicted maximum number of steganographic layers is helpful to reasonably plan multi-layer data encryption steganography operations to ensure the effectiveness and security of data encryption. Based on the predicted value of the maximum number of steganographic layers of the hard disk partition, multi-layer image steganography is performed on the global pixel obfuscation steganographic picture to obtain a multi-layer data encryption steganographic picture. The multi-layer data encryption steganography can increase the security and concealment of data and provide more levels of protection.
[0059] In this specification, a data encryption system of a solid state drive is provided, which is used to execute the data encryption method of the solid state drive as described above, including:
[0060] The hard disk structure analysis module is used to analyze the partition table structure of the solid state disk and analyze the hard disk capacity distribution, thereby obtaining the hard disk capacity distribution data;
[0061] The obfuscation encryption module is used to obtain the data to be written into the hard disk; divide the data to be written into blocks, and perform obfuscation encryption processing on the data to be written into the hard disk, so as to construct an obfuscation encryption data sequence;
[0062] The channel decomposition module is used to obtain a pre-stored random image; perform pixel-by-pixel channel decomposition on the pre-stored random image, and perform maximum data steganographic distribution density calculation to obtain the maximum data steganographic distribution density;
[0063] A distributed steganography module is used to perform data distribution encryption steganography on a pre-stored random image by using an obfuscated encrypted data sequence based on a maximum data steganography distribution density, and to perform visual deviation fine-tuning to generate a visually fine-tuned steganographic image;
[0064] The pixel obfuscation module is used to randomly map and arrange the visual fine-tuning steganographic image and perform global pixel obfuscation to obtain a global pixel obfuscated steganographic image.
[0065] The multi-layer encryption steganography module is used to perform multi-layer image steganography on the global pixel obfuscation steganography picture based on the hard disk capacity distribution data to obtain a multi-layer data encryption steganography picture to complete the solid state hard disk data encryption operation.
[0066] The present invention parses the partition table structure of the solid-state hard disk to obtain hard disk capacity distribution data, provides basic information for subsequent data encryption, understands the hard disk space structure through hard disk capacity distribution analysis, provides necessary hard disk capacity information for data encryption operations, performs block processing on hard disk data to be written, helps to improve data processing efficiency and security, protects data security through obfuscated encryption processing, makes data more difficult to be cracked and tampered with, performs pixel channel decomposition on pre-stored random images, provides basic data for data steganography operations, determines the best strategy and method for data steganography by calculating the maximum data steganography distribution density, and divides the obfuscated encryption into blocks based on the maximum data steganography distribution density. The secret data sequence performs data distribution encryption and steganography on random images to increase data security. Through visual deviation fine-tuning, visual fine-tuning steganographic images are generated to improve the concealment and security of data steganography. Random position mapping and arrangement of visual fine-tuning steganographic images are performed to increase data obfuscation and improve data security. Through global pixel point obfuscation, the complexity of data encryption is increased to make data more difficult to decrypt and identify. Multi-layer image steganography is performed on the global pixel point obfuscation steganographic images based on the hard disk capacity distribution data to improve the level and security of data encryption. Through multi-layer data encryption steganography, the integrity and security of data encryption are ensured to protect data from unauthorized access and attacks. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 A schematic diagram of the steps of a method for encrypting data on a solid state drive according to the present invention;
[0068] Figure 2 Detailed implementation flow chart of step S1;
[0069] Figure 3 Detailed implementation flow chart of step S2;
[0070] Figure 4 Detailed implementation flow chart of step S3. DETAILED DESCRIPTION
[0071] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0072] The present application example provides a data encryption method and system for a solid-state hard disk. The execution subject of the data encryption method and system for a solid-state hard disk includes but is not limited to: mechanical equipment, data processing platform, cloud server node, network upload device, etc. equipped with the system can be regarded as a general computing node of the present application, and the data processing platform includes but is not limited to: at least one of an audio and image management system, an information management system, and a cloud data management system.
[0073] See also Figures 1 to 4 The present invention provides a data encryption method for a solid state hard disk, the data encryption method for a solid state hard disk comprises the following steps:
[0074] Step S1: parsing the partition table structure of the solid state hard disk and analyzing the hard disk capacity distribution to obtain hard disk capacity distribution data;
[0075] Step S2: obtaining the data to be written into the hard disk; performing data block processing on the data to be written into the hard disk, and performing obfuscated encryption processing, thereby constructing an obfuscated encrypted data sequence;
[0076] Step S3: obtaining a pre-stored random image; performing pixel-by-pixel channel decomposition on the pre-stored random image, and performing maximum data steganographic distribution density calculation to obtain the maximum data steganographic distribution density;
[0077] Step S4: Based on the maximum data steganalysis distribution density, the obfuscated encrypted data sequence is used to perform data distribution encryption steganalysis on the pre-stored random image, and visual deviation is fine-tuned to generate a visually fine-tuned steganalysis image;
[0078] Step S5: Randomly position mapping and arranging the visual fine-tuning steganographic image, and performing global pixel obfuscation, thereby obtaining a global pixel obfuscated steganographic image;
[0079] Step S6: Perform multi-layer image steganography on the global pixel obfuscation steganographic image based on the hard disk capacity distribution data to obtain a multi-layer data encrypted steganographic image to complete the solid state disk data encryption operation.
[0080] The present invention can accurately understand the capacity utilization of the hard disk, including the size of each partition and the data storage location, by performing partition table structure analysis and capacity distribution analysis on the solid-state hard disk. This provides necessary hard disk structure information for subsequent data encryption operations, and helps to ensure the accuracy and integrity of data encryption operations. After obtaining the data to be written to the hard disk, block processing and obfuscated encryption processing of the data can effectively improve the security of the data. Block processing helps to reduce the risk of leakage of a single data block, while obfuscated encryption can make the data more difficult to be decrypted by unauthorized users, thereby protecting the confidentiality and integrity of the data. By performing pixel-by-pixel channel decomposition and maximum data steganographic distribution density calculation on pre-stored random images, the steganographic capacity of the image can be accurately evaluated, which helps to determine the maximum amount of data that can be hidden in the image, and provides a basis and restriction conditions for subsequent data steganographic operations. Based on the maximum Data steganography distribution density, the obfuscated encrypted data sequence is used to perform data distribution encryption steganography on the pre-stored random picture and perform visual deviation fine-tuning to generate a visually fine-tuned steganographic picture, which effectively embeds the encrypted data into the picture, and improves the data's steganographic stability and visual quality through fine-tuning, thereby enhancing the data's concealment. Random position mapping arrangement and global pixel point obfuscation of the visually fine-tuned steganographic picture can increase the data's obfuscation and concealment. Random position mapping arrangement and pixel point obfuscation operations make the data in the picture more difficult to identify and restore, further improving the data's security. Multi-layer image steganography is performed on the global pixel point obfuscation steganographic picture based on the hard disk capacity distribution data to generate multi-layer data encryption steganographic pictures, thereby achieving multiple protection and encryption of the data. This multi-layer encryption method improves the data's security, makes the data more difficult to crack and steal, and effectively protects the data security in the solid-state drive.
[0081] In the embodiment of the present invention, refer to Figure 1 , is a schematic flow chart of the steps of a data encryption method for a solid state hard disk of the present invention. In this example, the steps of the data encryption method for a solid state hard disk include:
[0082] Step S1: parsing the partition table structure of the solid state hard disk and analyzing the hard disk capacity distribution to obtain hard disk capacity distribution data;
[0083] In this embodiment, ensure that the computer is connected to the solid-state drive and obtain appropriate permissions (such as administrator permissions), install necessary tools and libraries, such as the Python programming environment, gdisk, parted, or use command line tools such as fdisk, use command line tools (such as fdisk -l or parted -l) to read the partition table information of the hard disk, use the parted command or the corresponding library to read the partition information of the hard disk, obtain the start sector, end sector, size and other data of each partition, extract the size and file system type of each partition from the obtained partition information, and calculate its available capacity and used capacity, output the analyzed capacity distribution data to the console, or save it to a file (such as JSON format) for subsequent processing.
[0084] Step S2: obtaining the data to be written into the hard disk; performing data block processing on the data to be written into the hard disk, and performing obfuscated encryption processing, thereby constructing an obfuscated encrypted data sequence;
[0085] In this embodiment, the source of the data to be written is clearly defined, which may be a local file, a database, a network interface or other storage device. The data to be written is read by an appropriate method, such as opening a file to read the content, connecting to a database to obtain records, or requesting data from a network. According to the characteristics of the data and storage requirements, a suitable block size is determined, such as 512 bytes, 1 KB or other reasonable number of bytes. The read data is divided into blocks according to the set size to ensure that the size of each block is consistent. The last block may be smaller than the set size (depending on the specific implementation). A suitable encryption algorithm is selected, such as a symmetric encryption algorithm (AES, DES, etc.) to ensure the security and efficiency of the algorithm. Each data block is encrypted. After encryption, it can be obfuscated as needed, such as using simple bit operations (such as XOR) or more complex obfuscation algorithms to enhance the security and concealment of the data. All obfuscated encrypted data blocks are merged to form a complete obfuscated encrypted data sequence, which is ready to be written to the hard disk. The obfuscated encrypted data sequence is recorded or output: the constructed obfuscated encrypted data sequence is saved to a specified file or other data storage location for subsequent write operations.
[0086] Step S3: obtaining a pre-stored random image; performing pixel-by-pixel channel decomposition on the pre-stored random image, and performing maximum data steganographic distribution density calculation to obtain the maximum data steganographic distribution density;
[0087] In this example, ensure that a set of random images are stored in a specified directory. The format can be JPEG, PNG, etc. Use an image processing library (such as Pillow or OpenCV) to load the randomly selected images for subsequent processing. Convert the loaded image to a pixel array. Usually, each pixel consists of RGB or RGBA. Use a nested loop to traverse each pixel of the image and obtain its color channel information. For each pixel, extract its red, green, and blue channels (if it is RGBA, you also need to extract the alpha channel). Channel), store the data of each channel in a separate array, for example, create three arrays to store the data of the red, green and blue channels respectively, and perform probability density estimation on the data of each channel. You can use methods such as histogram method or kernel density estimation (KDE). By counting the frequency of occurrence of pixel values in each channel, calculate the probability density of each pixel value, find the maximum value of each channel from the calculated probability density value, and use it as the maximum data steganographic distribution density of the channel. Record the highest probability density value of each channel to ensure that these values can reflect the data capacity that can be steganographic, organize the maximum data steganographic distribution density value of each channel into a structured data format (such as a dictionary or list) for subsequent use, and output the maximum data steganographic distribution density value. It needs to be saved as a file or displayed on the console for analysis and verification.
[0088] Step S4: Based on the maximum data steganalysis distribution density, the obfuscated encrypted data sequence is used to perform data distribution encryption steganalysis on the pre-stored random image, and visual deviation is fine-tuned to generate a visually fine-tuned steganalysis image;
[0089] In this embodiment, the stego-able area in the image is identified, the pixels of the image are traversed, and whether the stego-able condition is met is determined according to the corresponding probability density value. A threshold value can be set, and only pixels with a probability density higher than the threshold value are selected as the stego-able area. The stego-able area is traversed, and the obfuscated encrypted data sequence is embedded into the selected pixels one by one. The LSB (least significant bit) steganography method can be used to insert the bits of the data into the least significant bits of the pixels to ensure that the total amount of embedded data does not exceed the capacity of the stego-able area to avoid data overflow and image distortion. After the data is embedded, the visual effect of the stego-able image is evaluated to check whether there is obvious visual deviation or distortion. For those pixels that have been modified, fine-tuning is performed as needed to reduce visible changes by adjusting brightness, contrast or color balance. The purpose of fine-tuning is to make the stego-able image as close to the original image as possible visually, thereby enhancing concealment. The image after stego-writing and visual deviation fine-tuning is saved as a new file to ensure that the saved format (such as JPEG, PNG) can retain the stego-able data. In an optional step, a suitable method (such as extracting stego-able data) is used to verify whether the data is successfully embedded and there is no obvious visual distortion.
[0090] Step S5: Randomly position mapping and arranging the visual fine-tuning steganographic image, and performing global pixel obfuscation, thereby obtaining a global pixel obfuscated steganographic image;
[0091] In this embodiment, the steganographic image that has been fine-tuned for visual deviation is loaded into the memory to prepare for subsequent processing. The width and height of the image are read to traverse and process all pixels. The total number of each pixel in the image is calculated to generate an index list with the same number of pixels. The index list is shuffled using a random number generator to obtain a random position mapping. For example, an index list from 0 to (width * height - 1) is generated, and then shuffled using a random algorithm. According to the shuffled index, a new pixel position mapping table is constructed to record the new position of each pixel. A new image object is created with the same size as the original image to store the obfuscated pixel data. The pixel data of the original image is traversed, and each pixel is placed in a new position according to the previously generated random mapping table. It is ensured that each pixel is processed only once to ensure the integrity and consistency of the data. In the process of pixel rearrangement, a simple obfuscation process can be selected for the pixel value, such as the RGB of each pixel. The value is encrypted or simply bit-operated to further enhance the concealment. All obfuscated and rearranged pixel data are merged to generate the final global pixel obfuscated steganographic image. The obfuscated steganographic image is saved to the specified path, and the appropriate file format (such as PNG, BMP) is used to maintain the image quality and the integrity of the steganographic data.
[0092] Step S6: Perform multi-layer image steganography on the global pixel obfuscation steganographic image based on the hard disk capacity distribution data to obtain a multi-layer data encrypted steganographic image to complete the solid state disk data encryption operation.
[0093] In this embodiment, the number of steganographic layers that can be performed is determined according to the hard disk capacity distribution data. If the available capacity of a hard disk partition is large, more steganographic layers can be set. This can be achieved through simple calculations (such as the space required for each layer of steganographic data) to ensure that the maximum number of steganographic layers is not exceeded. A suitable steganographic algorithm (such as LSB (least significant bit) steganography) is selected to embed multiple layers of data. Each layer of data can be data from different sources (such as different files or data blocks). Each layer is traversed and each layer of data is embedded in the global pixel point obfuscated steganographic image in turn. For each layer, the data is embedded into the pixel channel of the image according to the steganographic algorithm to ensure that the embedding of each layer of data does not affect the data of other layers. During the steganographic process, the embedding position and related information of each layer of data are recorded for subsequent extraction and verification. The data embedding results of all layers are integrated to generate the final multi-layer data encrypted steganographic image to ensure that the generated image maintains high quality and the steganographic data is not easily detected visually. The generated multi-layer data encrypted steganographic image is saved to a specified path to ensure that a suitable image format (such as PNG) is used. or BMP) to maintain the integrity of the steganographic data and the image quality, and record the parameters and results of the entire steganographic process, including the embedding position of each layer of data, the steganographic algorithm used, and the file information of the final image for subsequent query and verification.
[0094] In this embodiment, refer to Figure 2 , is a flowchart of detailed implementation steps of step S1. In this embodiment, the detailed implementation steps of step S1 include:
[0095] Step S11: performing hard disk partition identification on the solid state hard disk to obtain solid state hard disk partition data;
[0096] Step S12: parsing the partition table structure of the solid state hard disk partition data to generate sector data of each hard disk partition;
[0097] Step S13: Calculate the sector capacity of each hard disk partition based on the sector data of each hard disk partition to obtain the capacity of each hard disk partition;
[0098] Step S14: Perform hard disk capacity distribution analysis based on the capacity of each hard disk partition to obtain hard disk capacity distribution data.
[0099] In this embodiment, a programming language (such as Python) or a data analysis tool is used to read the previously acquired partition data, and the information of each partition is parsed according to the partition table structure (such as MBR or GPT), including the starting sector and the ending sector, and the sector range of each partition is calculated to generate the sector data of each partition. The sector is the basic storage unit on the hard disk, usually 512 bytes or 4096 bytes. The number of sectors of each partition is determined (end sector - start sector + 1), and the generated sector data of each partition (such as the starting and ending positions of the sectors, the number of sectors) is organized into a structured format (such as JSON or CSV). According to the sector size of the hard disk (usually 512 bytes or 4096 bytes), the capacity of each partition is calculated, and the partition capacity = the number of sectors × the sector size. The capacity of each hard disk partition is organized into structured data, and the name and capacity of each partition are recorded for subsequent analysis. A suitable data analysis tool is selected, such as Python's Pandas. The database or Excel is used to analyze the capacity data of hard disk partitions, summarize the capacity data of each partition, and calculate the total capacity, the proportion of each partition capacity to the total capacity and other indicators, conduct capacity distribution analysis, and identify the characteristics of capacity distribution. For example, you can draw a capacity distribution diagram (such as a pie chart or a bar chart) to show the relationship between the capacity of each partition and the total capacity, and calculate the statistical indicators of the partition capacity, such as the mean, standard deviation, maximum value, minimum value, etc., to facilitate understanding of the distribution characteristics.
[0100] In this embodiment, refer to Figure 3 , is a flowchart of detailed implementation steps of step S2. In this embodiment, the detailed implementation steps of step S2 include:
[0101] Step S21: Acquire the data to be written into the hard disk;
[0102] Step S22: performing abnormal value detection on the data to be written into the hard disk, and extracting abnormal values of the data to be written;
[0103] Step S23: performing abnormal filtering and normalization according to abnormal values of the data to be written, thereby obtaining standardized data to be written;
[0104] Step S24: performing data block processing on the standardized data to be written, thereby obtaining a plurality of lossless compressed data blocks;
[0105] Step S25: performing symmetrical encryption on the multiple lossless compressed data blocks respectively to obtain multiple symmetrically encrypted data blocks;
[0106] Step S26: Perform hash obfuscation serialization processing on multiple symmetrically encrypted data blocks to construct an obfuscated encrypted data sequence.
[0107] In this embodiment, the source of the data to be written is determined, which may be user input, files, databases, or network streams, etc. A programming language (such as Python, Java, etc.) is used to write code to read the data to be written. For files, file I / O operations can be used; for databases, SQL queries can be used; for network data, API calls can be used to organize the acquired data into a unified format (such as JSON, CSV, or binary) to ensure that the data structure is suitable for subsequent processing, select a suitable outlier detection algorithm, such as Z-score, IQR (interquartile range) method, or isolation forest based on machine learning, etc., use the selected algorithm to analyze the data to be written, and identify outliers in the data. For example, for the Z-score method, calculate the Z-score of each data point, set a threshold (such as 3), and regard the data exceeding the threshold as an outlier, remove the extracted outliers from the original data to be written, and obtain a cleaned data set, and select a standardization method, such as Z-score standardization or Min-Max Normalization: select an appropriate method based on the data distribution, standardize the cleaned data to make it conform to the expected distribution range (such as a mean of 0 and a standard deviation of 1), ensure the consistency of subsequent processing, determine the size and method of the blocks, and use fixed-size blocks or dynamic blocks. Block the standardized data according to the determined strategy to generate multiple data blocks. Apply a lossless compression algorithm (such as Gzip, LZ4, Brotli, etc.) to each data block to reduce the space occupied by data storage. Record the size and related information of each compressed block. Select a suitable symmetric encryption algorithm, such as AES (Advanced Encryption Standard), and determine the key length (such as 128 bits, 192 bits, or 256 bits). Generate an encryption key and ensure the secure storage of the key to prevent leakage. Encrypt each lossless compressed data block using the selected symmetric encryption algorithm to obtain multiple encrypted data blocks. Select a suitable hash algorithm, such as SHA-256, SHA-512 etc., used to generate hash values of data blocks, hash each symmetrically encrypted data block to generate a corresponding hash value, combine the hash value with the encrypted data block, perform obfuscation processing, such as shuffling the order or arranging them using specific rules, and serialize the obfuscated data into a format suitable for storage (such as JSON, binary).
[0108] In this embodiment, the specific steps of step S24 are:
[0109] Define the fine-grained size of data block segmentation based on the standardized data to be written;
[0110] Based on the fine-grained size of data block segmentation, the standardized data to be written is traversed and segmented to obtain a plurality of initial segmented data blocks;
[0111] Extracting a last initial segmentation data block based on the plurality of initial segmentation data blocks;
[0112] Determine whether the last initial segmentation data block meets the segmentation fine-grained size, and when the last initial segmentation data block does not meet the segmentation fine-grained size, perform random value padding processing on the last initial segmentation data block to obtain a padded initial segmentation data block;
[0113] Performing sequential encoding processing based on the multiple initial segmented data blocks and the padded initial segmented data blocks to obtain encoded segmented data blocks;
[0114] Lossless data compression is performed on the coded segmented data blocks, thereby obtaining a plurality of lossless compressed data blocks.
[0115] In this embodiment, according to the expected storage efficiency, performance requirements and data type, a suitable fine-grained size (such as 256 KB, 512 KB or other reasonable size) is selected. The size should take into account the speed of data processing and the effectiveness of storage. The defined fine-grained size is stored in a variable for subsequent use. The logic of data segmentation is configured using a programming language (such as Python), and the standardized data to be written is read in. The standardized data to be written is traversed step by step according to the defined fine-grained size using a loop structure, and the data is segmented into multiple initial data blocks. The data is segmented according to the fine-grained size using a for loop and a slice operation. The last initial segmented data block stored in a list or array is extracted through an index access method. A conditional statement (such as an if statement) is used to check whether the size of the last initial segmented data block is equal to the defined fine-grained size. If the last data block is smaller than the fine-grained size, random value filling processing is performed, and a random number generation function (such as Python's random) is used. Module) generates missing random values. The size of the filling value should match the fine-grained size to ensure that the size of the filled data block meets the requirements. The generated random value is appended to the end of the last data block to form a filled initial segmentation data block. The filled data block is saved in a new variable for subsequent processing. A suitable encoding algorithm (such as Base64 encoding, UTF-8 encoding, etc.) is determined to ensure the consistency of data during storage and transmission. Multiple initial segmentation data blocks and filled initial segmentation data blocks are encoded in turn using the selected encoding algorithm. A loop can be used to traverse each data block and perform encoding operations. The encoded data blocks are stored in a new list or array to form a set of encoded segmentation data blocks. A suitable lossless compression algorithm, such as Gzip, LZ77, Brotli or other algorithms, is selected to ensure the integrity of the data during the compression process. The compression algorithm is applied to the encoded segmentation data blocks one by one. Data compression can be achieved using related libraries (such as gzip or zlib).
[0116] In this embodiment, refer to Figure 4 , is a flowchart of detailed implementation steps of step S3. In this embodiment, the detailed implementation steps of step S3 include:
[0117] Step S31: Obtain a pre-stored random picture;
[0118] Step S32: performing image pixel traversal recognition on the pre-stored random picture to obtain an image pixel array;
[0119] Step S33: Decomposing the image pixel array pixel by pixel channel, extracting pixel channel data of the pixel;
[0120] Step S34: Calculating the distribution probability density of the pixel channel data of the pixel point, thereby obtaining the distribution probability density value of the pixel channel;
[0121] Step S35: Calculate the maximum data steganographic distribution density for the distribution probability density value of the pixel channel, so as to obtain the maximum data steganographic distribution density.
[0122] In this embodiment, ensure that a group of random images are stored in a specified directory. The format can be a common image format such as JPEG, PNG, etc. Use an image processing library (such as Pillow or OpenCV in Python) to write code to read the pre-stored random images. For example, use the Image.open() method in the PIL library to load the image, and obtain its pixel array through the read image data. Usually, each pixel of the image is composed of RGB or RGBA. Use a nested loop to traverse each pixel point of the image to obtain its coordinates (x, y). In Python, the numpy library can be used to convert the image into an array for easy traversal. The traversed pixel points are stored as a two-dimensional array (or list), in which each element corresponds to a pixel point in the image. For each pixel point, extract its RGB (or RGBA) channel data. For example, for each pixel point (R, G, B), extract it as the data of the red channel, green channel and blue channel respectively, and store the data of each channel in a separate array to form three one-dimensional arrays (or lists): red_channel, green_channel, blue_channel, record the length and data type of each channel array for subsequent processing, select an appropriate probability density estimation method, such as the histogram method, kernel density estimation (KDE), etc., use the selected method to calculate the probability density of the data of each channel. In Python, you can use the gaussian_kde function in scipy.stats for kernel density estimation, store the calculated probability density values in a data structure (such as a dictionary or array) for subsequent analysis, and identify the maximum data steganographic density value of each channel based on the calculated probability density values. You can use the max() function or other methods to find the maximum probability density value of each channel, and store the maximum steganographic density value of each channel in a dictionary or list for clear display.
[0123] In this embodiment, step S4 includes the following steps:
[0124] Step S41: performing data steganographic area analysis on the pre-stored random image based on the maximum data steganographic distribution density to obtain the steganographic area of the image;
[0125] Step S42: performing data distribution encryption steganography on the obfuscated encrypted data sequence according to the steganographic area of the image, thereby obtaining a distributed encrypted steganographic image;
[0126] Step S43: Calculate the pixel value of the steganographic region of the image to obtain the pixel value of the steganographic region;
[0127] Step S44: performing image color difference recognition of the stego area on the distributed encrypted stego image based on the pixel value of the stego area, and extracting image color difference data of the stego area;
[0128] Step S45: fine-tune the visual deviation of the distributed encrypted steganographic image based on the image color difference data of the steganographic area, thereby generating a visually fine-tuned steganographic image.
[0129] In this embodiment, each pixel of the image is traversed to determine whether its corresponding probability density value is higher than a set threshold (such as a certain proportion of the maximum steganographic distribution density) to determine whether the pixel can be used as a steganographic area. Conditional judgment (such as an if statement) is used to screen out pixels that meet the conditions to ensure that the generated obfuscated encrypted data sequence is available and ready for steganographic operation. The coordinates of the steganographic area are traversed, and each data item of the obfuscated encrypted data sequence is embedded into the corresponding pixel position. The embedding method can adopt LSB (least significant bit) steganography to insert the bit of the encrypted data into the least significant bit of the image pixel. The coordinates of the steganographic area are traversed to extract the RGB (or RGBA) value of each pixel. The average pixel value, maximum value, minimum value and other statistical information in the steganographic area can be calculated for subsequent analysis, and a suitable color difference calculation method is selected, such as CIE76, CIE94 The color difference formula is used to calculate the color difference between the original pixel value and the pixel value after steganography for each pixel of the embedded data. The pixel value of the previously extracted steganographic area is compared with the pixel value of the steganographic area to calculate the color difference. The calculated color difference value is stored in an array or dictionary for subsequent analysis. The fine-tuning strategy can be to increase or decrease the color channel, adjust the brightness or contrast, etc. According to the previously extracted color difference data, the color of the steganographic area is fine-tuned to reduce the visual difference. Image processing libraries such as OpenCV or Pillow can be used to achieve fine-tuning by adjusting the pixel value. The fine-tuned steganographic image is saved to ensure that its appearance is as similar as possible to the original image.
[0130] In this embodiment, the specific steps of step S5 are:
[0131] Step S51: extract all pixels based on visual fine-tuning of the steganographic image;
[0132] Step S52: Calculate the current position of all the pixel points to obtain the image position coordinates of each pixel point;
[0133] Step S53: performing random position mapping and arranging of the image position coordinates of each pixel point, thereby obtaining a pixel point random position mapping table;
[0134] Step S54: performing global pixel obfuscation on all pixels according to the pixel random position mapping table, thereby obtaining a global pixel obfuscated steganographic image.
[0135] In this embodiment, an image processing library (such as Pillow or OpenCV in Python) is used to load the visually fine-tuned steganographic image, and the image data is converted into a pixel array. All pixel points can usually be obtained through the .getdata() method or similar methods provided by the library. In Python, numpy is used to convert the image into an array form for subsequent processing. All extracted pixel points are stored in a list or array in RGB or RGBA format. The image position coordinates of each pixel point are calculated, and the width and height of the steganographic image are obtained to calculate the coordinates of each pixel. The pixel points are traversed, and the (x, y) coordinates of each pixel are calculated and recorded. The coordinate information of each pixel is stored in a list for subsequent use. A random number generation library (such as random in Python) is used. Module) generates a random index list with the same number of pixels, ensuring that the generated random index is not repeated to achieve complete random mapping, rearranges the original pixel coordinates according to the random index to form a new random position mapping table, matches the original coordinates with the random coordinates one by one, generates a dictionary or list for subsequent use, creates a new image object with the same size and mode as the original steganographic image to store the obfuscated pixels, traverses the random position mapping table, copies the original pixels to the corresponding positions of the new image according to the mapping relationship, uses the putpixel() method or other related methods to place the pixels in the new image, and saves the generated obfuscated steganographic image as a new file in the format of JPEG, PNG, etc.
[0136] In this embodiment, the specific steps of step S6 are:
[0137] Step S61: Calculate the available capacity of each hard disk partition to obtain the available capacity data of the hard disk partition;
[0138] Step S62: predicting the maximum number of steganographic layers of a partition based on the hard disk capacity distribution data and the available capacity data of the hard disk partition, thereby obtaining a predicted value of the maximum number of steganographic layers of the hard disk partition;
[0139] Step S63: Perform multi-layer image steganography on the global pixel obfuscation steganographic image based on the maximum steganographic layer number prediction value of the hard disk partition to obtain a multi-layer data encrypted steganographic image to complete the solid state hard disk data encryption operation.
[0140] In this embodiment, a tool (such as fdisk or a graphical interface tool) is used to obtain the total capacity and used capacity of each hard disk partition, and the following formula is used to calculate the available capacity of each partition: available capacity = total capacity − used capacity. Each partition is traversed and the above formula is applied to obtain the available capacity of each partition. According to the available capacity and capacity distribution data, a suitable prediction model (such as linear regression, decision tree, etc.) is selected to predict the maximum number of steganographic layers. The parameters of the prediction model are set to ensure that the model is suitable for processing the problem of predicting the number of steganographic layers. The available capacity data and capacity distribution data are used as input and passed to the selected prediction model. The maximum predicted value of the number of steganographic layers for each partition is calculated. The specific parameter settings of each steganographic layer are determined, such as the amount of data used in each layer, the steganographic method (such as LSB steganography, etc.), and how to manage data in each layer. A loop structure (such as for The method uses a loop to traverse the predicted value of the maximum number of steganographic layers of each partition. In each layer, the corresponding data (such as the data in the obfuscated steganographic image) is embedded into the steganographic area of the image to ensure that the steganographic data of each layer does not affect the data of the previous layer, and the integrity and confidentiality of the data are maintained. By continuously embedding new steganographic data, a steganographic image containing multiple layers of data is finally generated. The generated multi-layer data encrypted steganographic image is saved to ensure that its format (such as JPEG, PNG, etc.) is suitable for storage and transmission.
[0141] In this embodiment, a data encryption system for a solid state drive is provided, which is used to execute the data encryption method for a solid state drive as described above, including:
[0142] The hard disk structure analysis module is used to analyze the partition table structure of the solid state disk and analyze the hard disk capacity distribution, thereby obtaining the hard disk capacity distribution data;
[0143] The obfuscation encryption module is used to obtain the data to be written into the hard disk; divide the data to be written into blocks, and perform obfuscation encryption processing on the data to be written into the hard disk, so as to construct an obfuscation encryption data sequence;
[0144] The channel decomposition module is used to obtain a pre-stored random image; perform pixel-by-pixel channel decomposition on the pre-stored random image, and perform maximum data steganographic distribution density calculation to obtain the maximum data steganographic distribution density;
[0145] A distributed steganography module is used to perform data distribution encryption steganography on a pre-stored random image by using an obfuscated encrypted data sequence based on a maximum data steganography distribution density, and to perform visual deviation fine-tuning to generate a visually fine-tuned steganographic image;
[0146] The pixel obfuscation module is used to randomly map and arrange the visual fine-tuning steganographic image and perform global pixel obfuscation to obtain a global pixel obfuscated steganographic image.
[0147] The multi-layer encryption steganography module is used to perform multi-layer image steganography on the global pixel obfuscation steganography picture based on the hard disk capacity distribution data to obtain a multi-layer data encryption steganography picture to complete the solid state hard disk data encryption operation.
[0148] The present invention parses the partition table structure of the solid-state hard disk to obtain hard disk capacity distribution data, provides basic information for subsequent data encryption, understands the hard disk space structure through hard disk capacity distribution analysis, provides necessary hard disk capacity information for data encryption operations, performs block processing on hard disk data to be written, helps to improve data processing efficiency and security, protects data security through obfuscated encryption processing, makes data more difficult to be cracked and tampered with, performs pixel channel decomposition on pre-stored random images, provides basic data for data steganography operations, determines the best strategy and method for data steganography by calculating the maximum data steganography distribution density, and divides the obfuscated encryption into blocks based on the maximum data steganography distribution density. The secret data sequence performs data distribution encryption and steganography on random images to increase data security. Through visual deviation fine-tuning, visual fine-tuning steganographic images are generated to improve the concealment and security of data steganography. Random position mapping and arrangement of visual fine-tuning steganographic images are performed to increase data obfuscation and improve data security. Through global pixel point obfuscation, the complexity of data encryption is increased to make data more difficult to decrypt and identify. Multi-layer image steganography is performed on the global pixel point obfuscation steganographic images based on the hard disk capacity distribution data to improve the level and security of data encryption. Through multi-layer data encryption steganography, the integrity and security of data encryption are ensured to protect data from unauthorized access and attacks.
[0149] Therefore, the embodiments should be regarded as illustrative and non-restrictive from all points, and the scope of the present invention is limited by the appended claims rather than the above description, and it is therefore intended that all changes falling within the meaning and range of equivalent elements of the application documents are included in the present invention.
[0150] What has been described above is only a specific implementation mode of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be obvious to those skilled in the art. The general principles defined in this article can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown in this article, but will conform to the widest scope consistent with the principles and novel features invented in this article.
Claims
1. A method for encrypting data of a solid state drive, characterized in that: The following steps are involved: Step S1: parsing the partition table structure of the solid state hard disk and analyzing the hard disk capacity distribution to obtain hard disk capacity distribution data; Step S2: obtaining the data to be written into the hard disk; performing data block processing on the data to be written into the hard disk, and performing obfuscated encryption processing, thereby constructing an obfuscated encrypted data sequence; Step S3: obtaining a pre-stored random image; performing pixel-by-pixel channel decomposition on the pre-stored random image, and performing maximum data steganographic distribution density calculation to obtain the maximum data steganographic distribution density; Step S4: Based on the maximum data steganalysis distribution density, the obfuscated encrypted data sequence is used to perform data distribution encryption steganalysis on the pre-stored random image, and visual deviation is fine-tuned to generate a visually fine-tuned steganalysis image; Step S5: Randomly position mapping and arranging the visual fine-tuning steganographic image, and performing global pixel obfuscation, thereby obtaining a global pixel obfuscated steganographic image; Step S6: Perform multi-layer image steganography on the global pixel obfuscation steganographic image based on the hard disk capacity distribution data to obtain a multi-layer data encrypted steganographic image to complete the solid state hard disk data encryption operation; The specific steps of step S3 are: Step S31: Obtain a pre-stored random picture; Step S32: performing image pixel traversal recognition on the pre-stored random picture to obtain an image pixel array; Step S33: Decomposing the image pixel array pixel by pixel channel, extracting pixel channel data of the pixel; Step S34: Calculating the distribution probability density of the pixel channel data of the pixel point, thereby obtaining the distribution probability density value of the pixel channel; Step S35: Calculate the maximum data steganographic distribution density for the distribution probability density value of the pixel channel, so as to obtain the maximum data steganographic distribution density; The specific steps of step S4 are: Step S41: performing data steganographic area analysis on the pre-stored random image based on the maximum data steganographic distribution density to obtain the steganographic area of the image; Step S42: performing data distribution encryption steganography on the obfuscated encrypted data sequence according to the steganographic area of the image, thereby obtaining a distributed encrypted steganographic image; Step S43: Calculate the pixel value of the steganographic region of the image to obtain the pixel value of the steganographic region; Step S44: performing image color difference recognition of the stego area on the distributed encrypted stego image based on the pixel value of the stego area, and extracting image color difference data of the stego area; Step S45: fine-tune the visual deviation of the distributed encrypted steganographic image based on the image color difference data of the steganographic area, thereby generating a visually fine-tuned steganographic image.
2. The data encryption method for a solid state drive according to claim 1, characterized in that: The specific steps of step S1 are: Step S11: Identify the partitions of the solid state hard disk to obtain the partition data of the solid state hard disk; Step S12: parsing the partition table structure of the solid state hard disk partition data to generate sector data of each hard disk partition; Step S13: Calculate the sector capacity of each hard disk partition based on the sector data of each hard disk partition to obtain the capacity of each hard disk partition; Step S14: Perform hard disk capacity distribution analysis based on the capacity of each hard disk partition to obtain hard disk capacity distribution data.
3. The method for encrypting data of a solid state drive according to claim 1, characterized in that: The specific steps of step S2 are: Step S21: Acquire the data to be written into the hard disk; Step S22: performing abnormal value detection on the data to be written into the hard disk, and extracting abnormal values of the data to be written; Step S23: performing abnormal filtering and normalization according to abnormal values of the data to be written, thereby obtaining standardized data to be written; Step S24: performing data block processing on the standardized data to be written, thereby obtaining a plurality of lossless compressed data blocks; Step S25: performing symmetrical encryption on the multiple lossless compressed data blocks respectively to obtain multiple symmetrically encrypted data blocks; Step S26: Perform hash obfuscation serialization processing on multiple symmetrically encrypted data blocks to construct an obfuscated encrypted data sequence.
4. The method for encrypting data of a solid state drive according to claim 3, characterized in that: The specific steps of step S24 are: Define the fine-grained size of data block segmentation based on the standardized data to be written; Based on the fine-grained size of data block segmentation, the standardized data to be written is traversed and segmented to obtain a plurality of initial segmented data blocks; Extracting a last initial segmentation data block based on the plurality of initial segmentation data blocks; Determine whether the last initial segmentation data block meets the segmentation fine-grained size, and when the last initial segmentation data block does not meet the segmentation fine-grained size, perform random value padding processing on the last initial segmentation data block to obtain a padded initial segmentation data block; Performing sequential encoding processing based on the multiple initial segmented data blocks and the padded initial segmented data blocks to obtain encoded segmented data blocks; Lossless data compression is performed on the coded segmented data blocks, thereby obtaining a plurality of lossless compressed data blocks.
5. The method for encrypting data of a solid state drive according to claim 1, characterized in that: The specific steps of step S5 are: Step S51: extract all pixels based on visual fine-tuning of the steganographic image; Step S52: Calculate the current position of all the pixel points to obtain the image position coordinates of each pixel point; Step S53: performing random position mapping and arranging of the image position coordinates of each pixel point, thereby obtaining a pixel point random position mapping table; Step S54: performing global pixel obfuscation on all pixels according to the pixel random position mapping table, thereby obtaining a global pixel obfuscated steganographic image.
6. The method for encrypting data of a solid state drive according to claim 1, characterized in that: The specific steps of step S6 are: Step S61: Calculate the available capacity of each hard disk partition to obtain the available capacity data of the hard disk partition; Step S62: predicting the maximum number of steganographic layers of a partition based on the hard disk capacity distribution data and the available capacity data of the hard disk partition, thereby obtaining a predicted value of the maximum number of steganographic layers of the hard disk partition; Step S63: Perform multi-layer image steganography on the global pixel obfuscation steganographic image based on the maximum steganographic layer number prediction value of the hard disk partition to obtain a multi-layer data encrypted steganographic image to complete the solid state hard disk data encryption operation.
7. A data encryption system for a solid state hard disk, characterized in that: The method for performing data encryption of a solid state drive according to claim 1 comprises: The hard disk structure analysis module is used to analyze the partition table structure of the solid state disk and analyze the hard disk capacity distribution, thereby obtaining the hard disk capacity distribution data; The obfuscation encryption module is used to obtain the data to be written into the hard disk; divide the data to be written into blocks, and perform obfuscation encryption processing on the data to be written into the hard disk, so as to construct an obfuscation encryption data sequence; The channel decomposition module is used to obtain a pre-stored random image; perform pixel-by-pixel channel decomposition on the pre-stored random image, and perform maximum data steganographic distribution density calculation to obtain the maximum data steganographic distribution density; A distributed steganography module is used to perform data distribution encryption steganography on a pre-stored random image by using an obfuscated encrypted data sequence based on a maximum data steganography distribution density, and to perform visual deviation fine-tuning to generate a visually fine-tuned steganographic image; The pixel obfuscation module is used to randomly map and arrange the visual fine-tuning steganographic image and perform global pixel obfuscation to obtain a global pixel obfuscated steganographic image. The multi-layer encryption steganography module is used to perform multi-layer image steganography on the global pixel obfuscation steganography picture based on the hard disk capacity distribution data to obtain a multi-layer data encryption steganography picture to complete the solid state hard disk data encryption operation.
Citation Information
Patent Citations
Data writing method and data recording equipment of solid state disk
CN118466834A
Short message encryption processing method and system based on information security
CN118574116A