Encryption algorithm upgrading method for panoramic VR resources

By introducing dynamic algorithm upgrade module and resource re-encryption mechanism in panoramic VR resource protection, the problems of untimely update of encryption and decryption algorithms in the existing technology are solved, efficient and reliable resource protection is achieved, and the encryption and decryption efficiency and system adaptability are improved.

CN119848901AActive Publication Date: 2025-04-18ULEARNING
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510015930.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-06
Publication Date
2025-04-18
Estimated Expiration
2045-01-06

AI Technical Summary

Technical Problem

The prior art has problems such as untimely algorithm updates, poor flexibility and insufficient security in protecting the security of panoramic VR resources, especially in scenarios where file sizes vary greatly, the encryption and decryption efficiency is low, and it relies on manual intervention, which has low automation and reliability.

Method used

By introducing dynamic algorithm upgrade modules and resource re-encryption mechanisms, dynamic upgrades and automated re-encryption of encryption algorithms are realized, independent updates and diversified selection of algorithm modules are supported, optimal encryption and decryption algorithms are dynamically selected, and the latest encryption and decryption algorithm modules are updated regularly through server push or client requests.

Benefits of technology

It significantly improves the protection and security of panoramic VR resources and the encryption and decryption efficiency, reduces the dependence on manual intervention, improves the system's adaptability and resource processing capabilities, and ensures the long-term security and efficiency of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119848901A_ABST
    Figure CN119848901A_ABST
Patent Text Reader

Abstract

The invention discloses an encryption and decryption method for a panoramic VR resource file, electronic equipment and a storage medium, and aims to improve the security, flexibility and efficiency of resource protection. The method comprises the following steps: realizing dynamic upgrading and automatic re-encryption of an encryption algorithm through cooperative operation of a client and a server; before loading the encrypted VR resource file, the client dynamically selects an adaptive encryption and decryption algorithm unit for decryption by analyzing encryption meta-information in the file, and requests the server to update if the algorithm unit is missing; and the server pushes the latest algorithm unit regularly or according to a client request, and triggers automatic re-encryption of the encrypted resource file. The method has the characteristics of high efficiency, safety and automation, and is widely applicable to encryption protection of panoramic VR resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to the field of network security technology. Background Art

[0002] With the rapid development of computer technology, virtual reality (VR) technology has attracted much attention in recent years because of the unique sense of reality and immersion it brings to users. The creation of content that matches VR technology is also booming, especially panoramic VR resources. Such resources have a wide range of application scenarios in the fields of culture, tourism, and teaching, including panoramas, panoramic videos, and related pictures, audio, and video content.

[0003] Panoramic VR resources have various file types and significant differences in size, ranging from a few KB to hundreds of MB. This causes panoramic VR resources to occupy a large amount of PC storage space as a whole. To this end, users usually use offline caching to store resources on the client to improve access performance. However, since panoramic VR resources have multimedia creation attributes, most of them are original resources, with high data value, fast iteration and update of resource packages, and diverse user needs. The rich exclusive data has extremely high security requirements, and resource theft prevention has become a problem that needs to be solved urgently.

[0004] In order to protect the security of panoramic VR resources, encryption is currently widely used. Common encryption methods include symmetric encryption and asymmetric encryption, but any encryption scheme has the possibility of being cracked or leaked. Once the encryption algorithm or key is leaked, the resources will face a serious risk of theft. In addition, the risk of leakage will increase further over time. Therefore, the security and reliability of the encryption scheme urgently need to be upgraded.

[0005] Currently, the mainstream solution to this problem is to update the encryption key and re-encrypt the resource file to avoid resource leakage or take remedial measures after leakage. This upgrade method usually relies on mature symmetric / asymmetric encryption algorithms. However, the existing solutions have obvious shortcomings in the following aspects.

[0006] Algorithm upgrade restrictions: Only encryption keys can be updated, and encryption algorithms cannot be upgraded directly. If the algorithm needs to be upgraded, the terminal program usually needs to be updated synchronously, which is more complicated to implement.

[0007] Single algorithm support: Currently, most solutions only support one encryption algorithm, and lack support for scenarios that require multiple encryption algorithms.

[0008] Efficiency issue: In resource scenarios where file sizes vary greatly, encryption and decryption efficiency is low.

[0009] Manual dependency: The encryption upgrade process relies on manual intervention, with low automation and reliability.

[0010] In response to the above problems, this application proposes an encryption and decryption process and encryption and decryption algorithm upgrade process dedicated to panoramic VR resources. By introducing a dynamic algorithm upgrade module and a resource re-encryption mechanism, the security of resource protection and the efficiency of encryption and decryption can be effectively improved, while reducing dependence on manual intervention, providing an efficient and reliable solution for the protection of panoramic VR resources. Summary of the invention

[0011] This application aims to provide an encryption and decryption method, electronic device and storage medium for panoramic VR resource files, which can solve the problems of untimely algorithm updates, poor flexibility and insufficient security in the prior art by realizing dynamic upgrades and automatic re-encryption of encryption and decryption algorithms. This application can dynamically select the optimal encryption and decryption algorithm according to the size characteristics and usage requirements of VR resource files, and support independent updates and diversified selection of algorithm modules, thereby significantly improving the efficiency, reliability and adaptability of resource protection.

[0012] According to a first aspect of the present application, a method for encrypting and decrypting a panoramic VR resource file is provided, comprising: S101: The local client has stored at least one encrypted VR resource file and / or the local client downloads at least one encrypted VR resource file from the server; S102: before loading at least one of the encrypted VR resource files, the local client determines whether the encrypted VR resource file to be loaded can be decrypted by using at least one algorithm unit in the local encryption and decryption algorithm module; S103: According to the judgment result of step S102, the local client decrypts the encrypted VR resource file to be loaded and then loads it, or the client suspends the loading process of the encrypted VR resource file that cannot be decrypted, and requests the server to update the local encryption and decryption algorithm module; S104: The server performs security verification on the client identity. If the verification is successful, the server sends the latest algorithm unit related to the VR encrypted file to be loaded to the client for updating the local encryption and decryption algorithm module. If the verification security policy fails, the client is remotely locked. S105: The local client uses at least one of the latest algorithm units in the updated local encryption and decryption algorithm module to decrypt the encrypted VR resource file to be loaded.

[0013] A method for encrypting and decrypting a panoramic VR resource file, further comprising: S107: At every first interval, the server actively sends a re-encryption instruction to the client and pushes at least one re-encryption algorithm unit, or at every first interval, the local client sends a re-encryption request to the server to obtain at least one re-encryption algorithm unit; S108: The local client uses the algorithm unit of the local encryption and decryption module or obtains the algorithm unit from the server to first decrypt at least one encrypted VR resource file, and then uses one of at least one re-encryption algorithm unit to re-encrypt the decrypted VR resource file; S109: The local client replaces and / or adds an algorithm unit of the local encryption and decryption module according to the re-encryption algorithm unit.

[0014] A method for encrypting and decrypting a panoramic VR resource file, further comprising: S110: At every second interval, the local client recycles the algorithm unit in the local encryption and decryption module based on all currently stored encrypted VR resource files.

[0015] According to a second aspect of the present application, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the encryption algorithm upgrade method for panoramic VR resources of the first aspect mentioned above.

[0016] According to a third aspect of the present application, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the encryption algorithm upgrade method for panoramic VR resources of the first aspect.

[0017] According to a fourth aspect of the present application, a computer program product is provided, comprising computer instructions, wherein the computer instructions are stored in a computer-readable storage medium, and when the computer instructions are executed by a processor, the encryption algorithm upgrade method for panoramic VR resources according to the first aspect described above is implemented.

[0018] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description.

[0019] By adopting the above solution, the encryption and decryption algorithm of the client can be updated in time, thereby improving the security of VR resource files stored in the local client.

[0020] The beneficial technical effects of this application are as follows.

[0021] Improve decryption efficiency and flexibility: Through dynamic analysis of VR resource files, the optimal encryption and decryption algorithm module is selected according to the file size characteristics and usage requirements. When the client cannot decrypt the local VR resource file, it can actively request the server to update the algorithm module to achieve dynamic decryption of the file. This mechanism ensures the efficiency and resource availability of encryption and decryption operations, especially in scenarios where the file size difference is large, it can still maintain a smooth decryption experience.

[0022] Enhanced resource security: VR resource files are usually large in size, and users need to download them locally first to improve access and loading speed. However, locally saved resource files are prone to the risk of encryption algorithm failure or key leakage during long-term storage. This application implements dynamic re-encryption of local resource files by regularly pushing the latest encryption algorithm module to the client through the server, or the client regularly requests algorithm updates from the server. This dynamic update mechanism effectively reduces the risk of encryption algorithm failure and key leakage, and significantly improves the long-term security of VR resources. In addition, the appropriate encryption algorithm is selected according to the file characteristics to further optimize the security protection strategy.

[0023] Reduce manual dependence: The upgrade of encryption and decryption algorithms and the resource re-encryption process are fully automated. Whether it is the update of algorithm modules or the re-encryption of resource files, it is automatically completed by the system without manual intervention by users. This high degree of automation not only improves the convenience and reliability of the system, but also reduces potential security risks caused by human operations.

[0024] Improve algorithm flexibility and compatibility: The algorithm module is designed as multiple independent algorithm units, which can support independent upgrades and diversified selection at the unit level. Through the dynamic algorithm switching mechanism, the system can quickly adapt the optimal algorithm for different scenario requirements and file characteristics, significantly improving the system's adaptability and resource processing capabilities. At the same time, this modular design is easy to expand and maintain, and can easily cope with future technological evolution and demand changes.

[0025] Optimize file encryption structure: Detailed encryption metadata is embedded in the encrypted file, including key information such as the algorithm unit serial number, metadata length, and initialization parameters required for decryption. By analyzing the file size characteristics and application scenarios, the system can dynamically select and switch algorithms to maximize encryption and decryption efficiency. This file structure design significantly enhances the system's adaptability and processing efficiency, providing efficient encryption protection for a variety of panoramic VR resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application. Figure 1It is a flowchart of an encryption and decryption method for a panoramic VR resource file according to an embodiment of the first aspect of the present application; Figure 2 is a schematic diagram of the algorithm module structure according to the embodiment of the first aspect of the present application; Figure 3 is a schematic diagram of the expanded structure of an encrypted resource file according to an embodiment of the first aspect of the present application; Figure 4 It is a schematic diagram of the VR resource file encryption and decryption process according to the embodiment of the first aspect of the present application; DETAILED DESCRIPTION

[0027] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0028] In the first aspect of the present application, a method for encrypting and decrypting panoramic VR resource files is provided, such as Figure 1 As shown, including: S101: The local client has stored at least one encrypted VR resource file and / or the local client downloads at least one encrypted VR resource file from the server.

[0029] Specifically, the server of this embodiment can be a local server, a cloud server, a server cluster, etc., which is used to store and manage panoramic VR resource files and their corresponding encryption and decryption algorithm units, and support concurrent access and dynamic update requests from multiple clients. The server can be designed based on a distributed architecture to improve the stability and efficiency of resource management and algorithm push. The local client can be a computer, a smart phone, a tablet device, a virtual reality terminal, or other device that supports the playback and storage of panoramic VR resources and can communicate with the server through the network. This embodiment does not limit the specific implementation form of the server and the client, and is applicable to centralized and distributed network environments to ensure that the system has good scalability and compatibility to meet the needs of different application scenarios and devices.

[0030] S102: Before loading at least one of the encrypted VR resource files, the local client determines whether the encrypted VR resource file to be loaded can be decrypted by using at least one algorithm unit in the local encryption and decryption algorithm module.

[0031] Step S102 may further include: The local client determines whether the encrypted VR resource file to be loaded can be decrypted through at least one algorithm unit in the local algorithm module, including: the local client parses the encrypted VR resource file to obtain encryption meta-information, and searches for the corresponding algorithm unit in the local algorithm module according to the algorithm unit serial number in the parsed encryption meta-information; if there is a corresponding algorithm unit, a judgment result is obtained that the encrypted VR resource file can be decrypted, and if there is no corresponding algorithm unit, a judgment result is obtained that the encrypted VR resource file cannot be decrypted.

[0032] Specifically, the algorithm module can be regarded as an algorithm group that contains a full range of encryption and decryption algorithms. Its design purpose is to be compatible with the decryption of historical encryption resources and to support the flexible upgrade of future algorithms. The module is organized in an array structure, and each array element is an independent and complete encryption and decryption algorithm unit. Each algorithm unit contains four key information: serial number, name, encryption and decryption library, and extended information.

[0033] Serial number: Generally, the algorithm unit is identified by increasing the value. The latest algorithm has a larger serial number, which is used to dynamically select the optimal algorithm or update the algorithm module. The serial number of the latest algorithm can also be represented by a combination of letters and numbers. In this case, the one with the largest numerical digit in the serial number is not necessarily the latest algorithm.

[0034] Name: A descriptive information of the algorithm, used to help users or system administrators identify the characteristics of a specific algorithm unit, such as the algorithm type or purpose.

[0035] Encryption and decryption library: It is an executable code module compiled for a specific hardware or software platform, responsible for performing specific encryption and decryption operations. This module interacts with the system through an interface-oriented reverse proxy mechanism to ensure the flexibility and scalability of the algorithm.

[0036] Extended information: As an open design, it can store the dependent data of the encryption and decryption library, such as initialization parameters, multi-language or multi-platform support information. In addition, the extended information can also include the applicable scope of the algorithm (such as file size, etc.) so as to dynamically match the optimal algorithm during the resource encryption and decryption process.

[0037] The design of the entire algorithm module supports updates at the independent unit level, which can dynamically adapt to different encryption requirements and minimize the impact of upgrades on clients and servers. At the same time, this modular structure provides a convenient way to add new algorithms to the system without large-scale changes to existing modules or architectures, thereby effectively improving the flexibility, scalability and long-term maintainability of the system. In addition, this structure also enhances the compatibility of encryption and decryption algorithms in multiple platforms and scenarios, and can meet the encryption and decryption requirements of different devices and resource scenarios.

[0038] In addition, the encrypted VR resource files are uniformly stored in binary format. This format is designed to balance storage efficiency and compatibility. In this embodiment, for the convenience of explanation, the logical hierarchical structure of the file is shown in the figure, and the actual storage form is a continuous binary stream. The encrypted VR resource file consists of two parts: encrypted meta information and encrypted master data.

[0039] Encryption meta information is stored at the beginning of the file and is used to describe the encryption-related properties of the file. It contains the following four key fields.

[0040] Special tag: A fixed-length byte data, which can be set to a specific number or character sequence, is used to identify the file as an encrypted file to avoid conflicts with special tags of other file types. The design of special tags enhances the identifiability of files and the reliability of system parsing.

[0041] Algorithm serial number: identifies the encryption algorithm unit used by the current file, corresponding to the serial number in the algorithm module. The system uses the serial number to quickly locate the matching encryption and decryption algorithm unit to ensure that the decryption and re-encryption process of the file can be accurately executed.

[0042] Algorithm metadata length: records the byte length of the algorithm metadata. Some encryption and decryption algorithms require additional parameter support. The length information is used to identify the boundary of the metadata. If the value is zero, it means that the current algorithm does not need additional metadata support.

[0043] Algorithm metadata: stores parameters related to the encryption and decryption algorithms, such as initialization vectors, random number seeds, or platform-specific parameters. This field contains valid data only when the length of the algorithm metadata is not zero, providing necessary information for the correct execution of the algorithm.

[0044] Encrypted master data means that the master data part stores the actual VR resource content in the form of a binary stream. This part of the data is encrypted using the encryption algorithm specified in the algorithm meta-information. The design of encrypted master data ensures that the file content cannot be directly parsed in the encrypted state, thereby effectively protecting the security of VR resources.

[0045] Through this file structure design, the encrypted meta information is first parsed when the file is loaded, which is used to quickly determine the file encryption status and the corresponding algorithm unit, and dynamically select the adaptive decryption algorithm. At the same time, this design provides convenience for the expansion and upgrade of subsequent algorithm modules without modifying the main data structure of the file, which significantly improves the flexibility and compatibility of the system.

[0046] In this embodiment, between step S101 and step S102, the following may also be included: the server actively pushes an algorithm unit to the client, and the algorithm unit is used by the client to decrypt at least one encrypted VR resource file.

[0047] S103: According to the judgment result of step S102, the local client decrypts the encrypted VR resource file to be loaded and then loads it, or the client suspends the loading process of the encrypted VR resource file that cannot be decrypted, and requests the server to update the local encryption and decryption algorithm module; S104: The server performs security verification on the client identity. If the verification is successful, the server sends the latest algorithm unit related to the VR encrypted file to be loaded to the client for updating the local encryption and decryption algorithm module; if the verification security policy fails, the client is remotely locked.

[0048] In this embodiment, in step S104, the server performs multi-level security verification on the client identity to ensure that the update operation of the encryption and decryption algorithm module is only performed on legitimate clients. Specifically, the security verification includes the following aspects.

[0049] Identity authentication: The server verifies the legitimacy of the client through its unique identifier (such as device ID, user account or digital certificate). The client needs to provide encrypted identity credentials, and the server authenticates by matching the information in the database.

[0050] Communication encryption: During the verification process, the communication between the server and the client is encrypted using a security protocol (such as TLS / SSL) to prevent man-in-the-middle attacks or data theft, ensuring the secure transmission of verification information.

[0051] Behavior analysis: The server analyzes the client's access records and behavior patterns (such as request frequency, geographic location, device characteristics, etc.) to identify potential abnormal behaviors. If an abnormal request is found, the server can require additional verification steps (such as multi-factor authentication) or directly reject the request.

[0052] Dynamic token verification: The server sends a one-time dynamic token to the client, and the client needs to return the token encryption result to verify its possession of the legal key. The use of dynamic tokens can effectively prevent replay attacks.

[0053] Policy review: The server checks the time, location, and current risk level of the client request based on the set security policy. If the request is found to be inconsistent with the policy requirements, such as coming from a high-risk area or an abnormal time period, the server will refuse verification and may trigger an alarm.

[0054] Failure handling: If the verification fails, the server will immediately take defensive measures, including restricting the client's further access, triggering a remote lock mechanism, or even notifying the relevant security team to intervene to prevent potential threats from causing greater damage to the system.

[0055] Through the above-mentioned multi-level security verification mechanism, the server can effectively filter illegal requests and ensure that the operation of updating the encryption and decryption algorithm module is carried out in a safe and reliable environment, further ensuring the security of VR resources.

[0056] S105: The local client uses at least one of the latest algorithm units in the updated local encryption and decryption algorithm module to decrypt the encrypted VR resource file to be loaded.

[0057] S106: When at least one decrypted VR resource file is no longer in a loading state, the decrypted VR resource file is encrypted using the original algorithm unit so that the VR resource file is restored to an encrypted state.

[0058] S107: At every first interval, the server actively sends a re-encryption instruction to the client and pushes at least one re-encryption algorithm unit, or at every first interval, the local client sends a re-encryption request to the server to obtain at least one re-encryption algorithm unit.

[0059] Specifically, the first interval can be 30 days, 60 days, 90 days, 180 days or other periods set according to security policies. The main purpose of regular updates is to prevent the algorithm unit from being leaked, cracked or there is a risk of cracking, so that a new algorithm unit can be replaced in time to re-encrypt the VR resources. Especially after the algorithm unit has been used for a period of time, or the VR device has not loaded and used resource files for a long time, and the old resource files of the client are still encrypted and protected with the old algorithm unit, there is a high possibility of the above risks. Through this mechanism, the system can ensure that encryption and decryption operations always use the safest and most verified algorithms, thereby enhancing the security of the overall system.

[0060] S108: The local client uses the algorithm unit of the local encryption and decryption module or obtains the algorithm unit from the server to first decrypt at least one encrypted VR resource file, and then uses one of the at least one re-encryption algorithm unit to re-encrypt the decrypted VR resource file. S109: The local client replaces and / or adds the algorithm unit of the local encryption and decryption module according to the re-encryption algorithm unit.

[0061] In this embodiment, in step S109, the re-encryption algorithm unit replaces and / or adds an algorithm unit of the local encryption and decryption module, further including: the re-encryption algorithm unit replaces the existing algorithm unit and / or does not delete the existing algorithm unit, and directly adds it to the local encryption and decryption module. Specifically, the re-encryption algorithm unit is added to the local encryption and decryption algorithm module as a newly added algorithm unit, and the original algorithm unit remains unchanged and is not deleted; or directly replaces an old algorithm unit, the original algorithm unit is deleted, and the re-encryption algorithm unit has the same serial number or an overlapping serial number part with the original algorithm unit, so as to be included in the position of the original algorithm unit.

[0062] In step S108 described in this embodiment, one of the at least one re-encryption algorithm units re-encrypts the decrypted VR resource file, including: according to the volume size of the VR resource file, selecting one of the at least one re-encryption algorithm units to re-encrypt the decrypted VR resource file.

[0063] The size of the resource file is an important basis for choosing an appropriate encryption algorithm. Generally, larger files (such as more than 100MB) may require more efficient encryption and decryption algorithms to ensure the performance and speed of the encryption and decryption process. The size of VR resource files is usually between 5MB and 50GB or more, depending on the file type, resolution, duration, and content complexity.

[0064] For example, a low-resolution 360° video file may only be around 100MB, while a high-resolution 4K video or VR game resource file may reach 10GB or more. In addition to video files, VR images (such as 360-degree panoramic images) are also an important part of VR resources. Generally speaking, the size of VR images is usually between 5MB and 500MB, depending on the resolution, color depth, and level of detail of the image. High-resolution VR images may reach more than 100MB, while extremely high-resolution panoramas may exceed 500MB. Therefore, for VR resource files of different sizes (including images and videos), the server will select an appropriate encryption algorithm based on the size of the resource file.

[0065] For example, for larger files (e.g., over 1GB), a more efficient encryption algorithm or block encryption may be selected to increase encryption and decryption speed and reduce processing burden. In particular, for VR resource files larger than 10GB, a more powerful encryption and decryption algorithm may be required to ensure the efficiency of the encryption process and avoid slow encryption operations due to insufficient resources.

[0066] The server is relatively less sensitive to the encryption process, while the client needs to select a suitable encryption algorithm based on the file size, processing power, and performance characteristics of the selected algorithm to ensure that the encryption operation meets security requirements and does not have a significant impact on the user experience. In particular, during the re-encryption process, the client can select an appropriate re-encryption algorithm based on the file size to ensure that the data security is not reduced while the encryption and decryption efficiency is improved.

[0067] In this embodiment, the encryption and decryption process of the VR resource file is as follows.

[0068] 1. Initially, the unencrypted VR resource file is encrypted by the encryption and decryption module. The encryption process uses the latest algorithm unit and selects the appropriate encryption algorithm based on the latest serial number to generate an encrypted VR resource file. This encrypted file will be saved on the server and wait for the client request.

[0069] 2. When the user plays VR resources on the client, he first needs to download the corresponding VR resource file from the server. At this time, the client downloads the encrypted VR resource file instead of the original unencrypted file.

[0070] 3. After receiving the encrypted VR resource file, the client decrypts it through the local encryption and decryption algorithm module. The decryption process is as follows.

[0071] (1) Parse the encrypted VR resource file and extract the encryption meta-information. The encryption meta-information includes important parameters such as algorithm serial number, algorithm type, key length, etc. This information is used to determine the specific algorithm and decryption method in the decryption process.

[0072] (2) Based on the algorithm serial number in the parsed encryption meta-information, the client queries the locally stored algorithm unit and selects the appropriate decryption algorithm unit. If the client does not have the corresponding algorithm unit locally, the system will automatically update and load the latest algorithm.

[0073] (3) Use the algorithm metadata in the encryption metadata and the client's local encryption and decryption library to decrypt according to the selected decryption algorithm. After decryption is completed, the client obtains the decrypted VR resource file.

[0074] 4. The client then plays the decrypted VR resource file to ensure that the user can experience the VR content smoothly.

[0075] 5. When the client no longer plays the VR resource file, if the VR resource file is no longer in a loading state, the original algorithm unit is used to encrypt the VR resource file to restore the encryption state.

[0076] S110: At every second interval, the local client recycles the algorithm unit in the local encryption and decryption module based on all currently stored encrypted VR resource files.

[0077] In the step S110, the second interval is 7 days to 30 days. After a period of use, VR encrypted resource files will be deleted by users due to storage space and other reasons. When the same type of VR encrypted resource files are not stored in the user's electronic device, the algorithm unit in the local encryption and decryption module will face the risk of being stolen for research (such as algorithm logic) due to long-term non-use. Therefore, through the recycling operation, when there is no corresponding encrypted VR resource file stored, the algorithm unit in the client's local encryption and decryption module is deleted and recycled.

[0078] The method of the present application improves the timeliness and accuracy of the encryption and decryption process of panoramic VR resource files by realizing dynamic upgrades and automated re-encryption of encryption and decryption algorithms. The system can dynamically select the optimal encryption and decryption algorithm according to different VR resource file characteristics and usage requirements to ensure the decryption efficiency and security of the file. In addition, by automatically updating the algorithm module, the risks of encryption algorithm failure and key leakage are avoided, human intervention is reduced, and resource protection is optimized. This method significantly improves the flexibility and adaptability of the system, ensures the security of VR resources, and effectively reduces the consumption of computing resources.

[0079] According to an embodiment of the present application, the present application also provides an electronic device, a readable storage medium and a computer program product.

[0080] The electronic device may be a digital computer in various forms, such as a laptop computer, a desktop computer, a server, a mainframe computer, etc., or a mobile device, such as a smart phone, a wearable device, etc. The connections and functions of the components shown are only examples and do not limit the implementation of the present application.

[0081] The device includes a computing unit that can perform specified processing operations by reading a program in a read-only memory or loading a program from a storage unit into a random access memory. The random access memory stores both data and programs required for the operation of the device. The computing unit, the read-only memory, and the random access memory are connected by a bus. The input / output interface is also connected to the bus to provide the device with the function of interacting with the outside world.

[0082] The input / output interface connects multiple components, including input units (such as keyboards and mice), output units (such as monitors and speakers), storage units (such as disks and CDs), and communication units. The communication unit enables the device to exchange data with other devices through a network (such as the Internet or telecommunications network).

[0083] The computing unit may be a general or dedicated processing component, such as a central processing unit, a graphics processing unit, an artificial intelligence chip, a digital signal processor, etc. These components are capable of performing functions related to the present application, such as encryption and decryption operations of VR resource files. The encryption and decryption functions can be implemented as a computer program stored in a storage unit, which, when loaded into a random access memory and executed by a computing unit, can implement encryption and decryption methods for resource files. In response to special needs of VR resources, such as real-time loading and content decoding, the device will dynamically allocate computing resources to ensure that the user's immersive experience is not disturbed by the operation of the file protection mechanism. In addition, the system will automatically adjust the computing unit's resource processing strategy based on the priority or characteristics of file use to maximize efficiency.

[0084] The methods of the present application can also be implemented through a variety of hardware and software combinations, such as integrated circuits, field programmable gate arrays, application specific integrated circuits, chip systems, etc. A programmable processor can interpret and execute these methods through program codes to complete specified functions and operations.

[0085] The program code can be written in a variety of programming languages ​​and stored in a machine-readable medium for use by the processor. The code can be executed entirely on the local device or partially on a remote device, depending on the implementation.

[0086] Machine-readable media include various forms for storing the program, such as read-only memory, random access memory, optical storage devices (such as CD-ROMs), magnetic storage devices (such as hard disks), and other forms of electronic, optical or electromagnetic media.

[0087] Users can interact with the device through interactive devices, input information or receive feedback. For example, display devices are used to display information, input devices (such as keyboards and touch screens) receive user operations, and feedback may be provided in visual, auditory or tactile forms.

[0088] The system and technology of the present application can be implemented in a computing system including a client, a server and middleware. The client interacts with the system through a user interface or a browser, the server provides resources or services, and the components are connected through a communication network (such as a local area network, a wide area network or the Internet).

[0089] Clients and servers usually interact through a communication network to form a system with a client-server relationship. The server can be centralized, distributed, or implemented in combination with blockchain technology.

[0090] It should be understood that the various forms of steps shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel or sequentially, as long as the desired results of the technical solution of this application can be achieved, and this document is not limited here.

[0091] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A method for encrypting and decrypting panoramic VR resource files, comprising: S101: The local client has stored at least one encrypted VR resource file and / or the local client downloads at least one encrypted VR resource file from the server; S102: before loading at least one of the encrypted VR resource files, the local client determines whether the encrypted VR resource file to be loaded can be decrypted by using at least one algorithm unit in the local encryption and decryption algorithm module; S103: According to the judgment result of step S102, the local client decrypts the encrypted VR resource file to be loaded and then loads it, or the client suspends the loading process of the encrypted VR resource file that cannot be decrypted, and requests the server to update the local encryption and decryption algorithm module; S104: The server performs security verification on the client identity. If the verification is successful, the server sends the latest algorithm unit related to the VR encrypted file to be loaded to the client for updating the local encryption and decryption algorithm module. If the verification security policy fails, the client is remotely locked. S105: The local client uses at least one of the latest algorithm units in the updated local encryption and decryption algorithm module to decrypt the encrypted VR resource file to be loaded and then loads it; S106: When at least one decrypted VR resource file is no longer in a loading state, the decrypted VR resource file is encrypted using the original algorithm unit so that the VR resource file is restored to an encrypted state.

2. The method according to claim 1, wherein: In the step S102, the local client determines whether the encrypted VR resource file to be loaded can be decrypted through at least one algorithm unit in the local algorithm module, including: the local client parses the encrypted VR resource file to obtain encryption meta-information, and searches for the corresponding algorithm unit in the local encryption and decryption algorithm module according to the algorithm unit serial number in the parsed encryption meta-information; if there is a corresponding algorithm unit, a judgment result is obtained that the encrypted VR resource file can be decrypted, and if there is no corresponding algorithm unit, a judgment result is obtained that the encrypted VR resource file cannot be decrypted.

3. The method according to claim 1, further comprising between step S101 and step S102: The server actively pushes an algorithm unit to the client, where the algorithm unit is used by the client to decrypt at least one encrypted VR resource file.

4. The method according to claim 1, further comprising: S107: At every first interval, the server actively sends a re-encryption instruction to the client and pushes at least one re-encryption algorithm unit, or at every first interval, the local client sends a re-encryption request to the server to obtain at least one re-encryption algorithm unit; S108: The local client uses the algorithm unit of the local encryption and decryption module or obtains the algorithm unit from the server to first decrypt at least one encrypted VR resource file, and then uses one of at least one re-encryption algorithm unit to re-encrypt the decrypted VR resource file; S109: The local client replaces and / or adds an algorithm unit of the local encryption and decryption module according to the re-encryption algorithm unit.

5. The method according to claim 4, wherein: In the step S107, the first interval duration is 30 days to 180 days.

6. The method according to claim 4, wherein: In the step S108, one of the at least one re-encryption algorithm units re-encrypts the decrypted VR resource file, including: according to the volume size of the VR resource file, selecting one of the at least one re-encryption algorithm units to re-encrypt the decrypted VR resource file.

7. The method according to claim 4, wherein: In the step S109, the local client replaces and / or adds the algorithm unit of the local encryption and decryption module according to the re-encryption algorithm unit, including: replacing the existing algorithm unit with the re-encryption algorithm unit and / or not deleting the existing algorithm unit and directly adding it to the local encryption and decryption module.

8. The method according to claim 1, further comprising: S110: At every second interval, the local client recycles the algorithm unit in the local encryption and decryption module based on all currently stored encrypted VR resource files.

9. The method according to claim 8, wherein: In the step S110, the second interval duration is 7 days to 30 days.

10. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Video file encryption and decryption method and system

    CN102970580A

  • Data encryption method and system based on issued encryption algorithm

    CN105471902A

  • Method and system for search pattern oblivious dynamic symmetric searchable encryption

    CN110337649A

  • Encryption and decryption algorithm implementation method and device, equipment and medium

    CN115062354A