| With the continuous development of mobile internet technology and the popularization of smartphones,video and image technology has been widely applied in various fields,entering people’s daily life and adding many colors to their lives.Video and image data contain a large amount of information,many of which involve user privacy,trade secrets,and national defense security.However,at present,most smart phones store video and image data in clear text,and video and image data face the risk of illegal viewing and malicious tampering.Therefore,it is particularly necessary to solve the security problem of smart phone video and image data storage.Encrypting video and image data is an effective means to ensure data security,and it has also received increasing attention from researchers.Based on this,this article designs a video and image encryption system based on the national security algorithm and implements it on the Android platform.The main research content is as follows:(1)Design of video and image encryption storage systemIn response to the risks of secure storage of video and image data on mobile terminal devices and the serious leakage of personal privacy data,a video and image data encryption system is designed using a security chip as the carrier.The public and private key pairs are stored in the security chip and separated from the mobile terminal device.By encrypting video and picture files,storing them,and setting login identity verification,the security of mobile terminal video and image data is ensured,and the risk of personal sensitive data breach is avoided;At the same time,security performance tests were conducted on the ciphertext files generated by the system.The test results showed that the ciphertext videos and images were severely distorted,with good encryption effects and resistance to attacks such as differential attacks,statistical attacks,and exhaustive attacks,etc.(2)Design of real-time browsing system for ciphertext video and ciphertext imageTraditional viewing of encrypted videos and images usually needs to be decrypted first,and then viewed with public tools,there is also a risk of leakage,because the encrypted video files and high-definition images are too large,if decrypted before viewing,there are problems such as long waiting time and poor experience for users.Therefore,this paper independently implements the ciphertext file browsing algorithm,designs and implements a special ciphertext video player,which can realize the real-time playback effect of ciphertext video,and also develops a special ciphertext image browser to view the ciphertext image in real time and safely.When browsing ciphertext videos and images,users do not need to decrypt the ciphertext data to the local computer in advance,and the ciphertext data will not be decrypted and cached locally,which not only ensures data security,but also improves the user experience.(3)Design of ciphertext video and ciphertext image sharing systemIn view of the great risk of Data breach in user data plaintext sharing,this paper designs a data sharing system with PKI system as the core.Synchronize encryption and decryption keys between the sender and receiver using the National Secret SM2 Algorithm,redesign the ciphertext file format and customize the file display cover,and use the National Secret SM4 Algorithm to encrypt and transmit shared videos and images,ensuring the security of data transmission and sharing.Users can share ciphertext files through common social media,office software,email,and other methods.After receiving the shared ciphertext files,the recipient needs to browse and view them through the client designed in this article.The system test results show that the video and image data encrypted by this system have high security and can resist attack and cracking.At present,the system has been tried in enterprises and achieved good application results,which has broad application prospects. |