Device resource decryption method, device, electronic device and storage medium

By cache the password that successfully decrypts the device resources in the application and performs linkage decryption, the problem of cumbersome and inefficient decryption in the existing technology is solved, and fast and efficient browsing of device resources is achieved.

CN119312372BActive Publication Date: 2025-04-01HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411856973.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-04-01
Estimated Expiration
2044-12-17

AI Technical Summary

Technical Problem

The decryption method of existing device resources is cumbersome and the decryption efficiency is low, so users cannot quickly browse encrypted device resources.

Method used

By implementing the cache password mechanism in the application, after successfully decrypting a device resource, its password is stored in the cache, and linkage information is sent to the device resource to be decrypted, and linkage decryption is performed using the password in the cache.

Benefits of technology

Reduces the complexity of device resource decryption, improves decryption efficiency, and allows users to quickly browse encrypted device resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119312372B_ABST
    Figure CN119312372B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a device resource decryption method, apparatus, electronic device and storage medium, and relate to the field of resource decryption technology. When the first device resource is successfully decrypted, the application can store the password used to decrypt the first device resource in the cache, and send the first linkage information to the loaded first device resource to be decrypted, wherein the first linkage information is used to prompt the first device resource to be decrypted to perform linkage decryption. Then, the password in the cache is used to perform linkage decryption on the first device resource to be decrypted. It can be seen that when the password for successfully decrypting the first device resource is obtained, the password can be directly used to perform linkage decryption on the first device resource to be decrypted to obtain the decrypted device resource. In this way, when the user browses other device resources, he can browse directly without decrypting each device resource, thereby reducing the complexity of device resource decryption and improving the efficiency of device resource decryption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of resource decryption, and in particular to a device resource decryption method, apparatus, electronic device and storage medium. Background Art

[0002] Users can browse the device resources generated by the image acquisition device through the web (world wide web, global wide area network) page, such as video recordings, alarm pictures, etc. In order to ensure the security of device resources, the device resources are usually encrypted.

[0003] The current device resource decryption method is that the user uses a password to decrypt each device resource, that is, the user needs to perform decryption interaction for each device resource. Currently, multiple device resources generated by the same device share the same password, and even most users are accustomed to setting the device resources generated by multiple image acquisition devices to the same password. Obviously, the current resource decryption method is cumbersome, the decryption efficiency of device resources is low, and users cannot quickly browse encrypted device resources. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a device resource decryption method, apparatus, electronic device and storage medium to reduce the complexity of device resource decryption and improve the efficiency of device resource decryption. The specific technical solution is as follows:

[0005] In a first aspect, an embodiment of the present application provides a device resource decryption method, which is applied to an application program, and the method includes:

[0006] In the event that the first device resource is successfully decrypted, storing the password used to decrypt the first device resource in a cache;

[0007] Sending first linkage information to the loaded first device resource to be decrypted, wherein the first linkage information is used to prompt to perform linkage decryption on the first device resource to be decrypted;

[0008] The first device resource to be decrypted is linked and decrypted using the password in the cache.

[0009] Optionally, the step of storing the password for decrypting the first device resource in a cache includes:

[0010] When the current decryption mode is a device decryption mode, the password for decrypting the first device resource and the first device identifier corresponding to the first device resource are stored in the cache correspondingly, wherein the device decryption mode is a mode for performing linked decryption on device resources of the same device;

[0011] When the current decryption mode is a global decryption mode, the password used to decrypt the first device resource is stored in the cache as a global password, wherein the global decryption mode is a mode for performing linked decryption on device resources of all devices.

[0012] Optionally, the current decryption mode is a device decryption mode, and the first linkage information includes the first device identifier;

[0013] The step of using the password in the cache to perform linkage decryption on the first device resource to be decrypted includes:

[0014] For each first device resource to be decrypted, determining whether the first device identifier matches the second device identifier of the first device resource to be decrypted;

[0015] When the first device identifier and the second device identifier match, the password corresponding to the first device identifier is read from the cache, and the first device resource to be decrypted is decrypted using the password corresponding to the first device identifier.

[0016] Optionally, the current decryption mode is a global decryption mode;

[0017] The step of using the password in the cache to perform linkage decryption on the first device resource to be decrypted includes:

[0018] For each first device resource to be decrypted, reading the global password from the cache;

[0019] Each of the first device resources to be decrypted is decrypted using the global password.

[0020] Optionally, the method further includes:

[0021] storing the password used to decrypt the first device resource as the device password and the first device identifier in the cache in correspondence with each other, and / or,

[0022] After the step of decrypting each of the first device resources to be decrypted using the global password, the global password is used as the device password, and the third device identifier corresponding to the first device resource to be decrypted is stored in the cache;

[0023] For the currently loaded second device resource, determining whether the device identification corresponding to the device password in the cache has a target device identification that matches the device identification corresponding to the second device resource;

[0024] In the case where the target device identifier exists, decrypting the second device resource using the device password corresponding to the target device identifier;

[0025] In the absence of the target device identifier, decrypting the second device resource using the global password;

[0026] When the second device resource is successfully decrypted, the global password is used as the device password, and the fourth device identifier corresponding to the second device resource is correspondingly stored in the cache.

[0027] Optionally, the application is a web application or a resource loading control, and the method further includes:

[0028] The first program sends a second linkage information to the second program, wherein the second linkage information is used to prompt to perform linkage decryption on a second device resource to be decrypted in the second program, the second linkage information includes a cached password of the first program, when the first program is the web application, the second program is the resource loading control, and when the first program is the resource loading control, the second program is the web application;

[0029] The received password is stored in the cache of the second program, and the password in the cache of the second program is used to perform linkage decryption on the second device resource to be decrypted.

[0030] Optionally, the second linkage information includes a cached global password and / or device password information of the first program, and the device password information includes a device password and a fifth device identifier corresponding to the device password;

[0031] The step of using the password in the cache of the second program to perform linkage decryption on the second device resource to be decrypted includes:

[0032] When the current decryption mode is the device decryption mode, for each second device resource to be decrypted, determining whether the fifth device identifier matches the sixth device identifier of the second device resource to be decrypted;

[0033] In the case where the fifth device identification and the sixth device identification match, reading the device password corresponding to the fifth device identification in the cache of the second program, and decrypting the second device resource to be decrypted using the device password corresponding to the fifth device identification;

[0034] When the current decryption mode is the global decryption mode, for each second device resource to be decrypted, the global password is read from the cache of the second program, and each second device resource to be decrypted is decrypted using the global password.

[0035] Optionally, the method further includes:

[0036] The first program sends the password stored in the cache of the first program to the second program according to a preset period, and determines whether the password stored in the cache of the second program is consistent with the password stored in the cache of the first program;

[0037] When the password stored in the second program cache is inconsistent with the password stored in the first program cache, the password stored in the second program cache is updated using the password stored in the first program cache.

[0038] Optionally, the web application communicates with the resource loading control through an intermediate layer service;

[0039] The step of the first program sending the second linkage information to the second program includes:

[0040] The web application calls the control interface provided by the middle layer service to send the second linkage information to the resource loading control, or,

[0041] The resource loading control sends the second linkage information to the first listener pre-mounted by the middle layer service, so that the first listener sends the second linkage information to the web application.

[0042] Optionally, the first device resource to be decrypted is mounted with a second listener;

[0043] The step of sending the first linkage information to the loaded first device resource to be decrypted includes:

[0044] The first linkage information is sent to the second listener mounted on the loaded first device resource to be decrypted, so that the second listener triggers the step of using the password in the cache to perform linkage decryption on the first device resource to be decrypted when receiving the first linkage information.

[0045] In a second aspect, an embodiment of the present application provides a device resource decryption apparatus, which is applied to an application program, and the apparatus includes:

[0046] A first password cache module, configured to store a password for decrypting the first device resource in a cache if the first device resource is successfully decrypted;

[0047] A first information sending module, used for sending first linkage information to the loaded first device resource to be decrypted, wherein the first linkage information is used for prompting to perform linkage decryption on the first device resource to be decrypted;

[0048] The first resource decryption module is used to use the password in the cache to perform linkage decryption on the first device resource to be decrypted.

[0049] Optionally, the first password cache module includes:

[0050] a device password storage submodule, for storing the password for decrypting the first device resource and the first device identifier corresponding to the first device resource in a cache in correspondence with each other when the current decryption mode is a device decryption mode, wherein the device decryption mode is a mode for performing linked decryption on device resources of the same device;

[0051] The global password storage submodule is used to store the password used to decrypt the first device resource as a global password in the cache when the current decryption mode is the global decryption mode, wherein the global decryption mode is a mode for linked decryption of device resources of all devices.

[0052] Optionally, the current decryption mode is a device decryption mode, and the first linkage information includes the first device identifier;

[0053] The first resource decryption module includes:

[0054] A first identification matching submodule, used for determining, for each first device resource to be decrypted, whether the first device identification matches the second device identification of the first device resource to be decrypted;

[0055] The first device password decryption submodule is used to read the password corresponding to the first device identification from the cache when the first device identification and the second device identification match, and decrypt the first device resource to be decrypted using the password corresponding to the first device identification.

[0056] Optionally, the current decryption mode is a global decryption mode; and the first resource decryption module includes:

[0057] A first global password reading submodule, configured to read the global password in the cache for each first device resource to be decrypted;

[0058] The first global password decryption submodule is used to decrypt each first device resource to be decrypted using the global password.

[0059] Optionally, the device further comprises:

[0060] a second password cache module, configured to store the password used to decrypt the first device resource as a device password and the first device identifier in a cache in correspondence with each other, and / or

[0061] A third password cache module, configured to, after the step of decrypting each of the first device resources to be decrypted using the global password, use the global password as the device password, and store the third device identifier corresponding to the first device resource to be decrypted in a cache;

[0062] A target device identification determination module, for determining, for a currently loaded second device resource, whether a device identification corresponding to the device password in the cache has a target device identification that matches the device identification corresponding to the second device resource;

[0063] A second resource decryption module, configured to decrypt the second device resource using a device password corresponding to the target device identifier when the target device identifier exists;

[0064] A third resource decryption module, configured to decrypt the second device resource using the global password when the target device identifier does not exist;

[0065] The fourth password cache module is used to use the global password as the device password when the second device resource is successfully decrypted, and the fourth device identifier corresponding to the second device resource is correspondingly stored in the cache.

[0066] Optionally, the application is a web application or a resource loading control, and the device further includes:

[0067] A second information sending module, configured for the first program to send second linkage information to the second program, wherein the second linkage information is used to prompt the second program to perform linkage decryption on the second device resource to be decrypted in the second program, the second linkage information includes the cached password of the first program, when the first program is the web application, the second program is the resource loading control, and when the first program is the resource loading control, the second program is the web application;

[0068] The fourth resource decryption module is used to store the received password in the cache of the second program, and use the password in the cache of the second program to perform linkage decryption on the second device resource to be decrypted.

[0069] Optionally, the second linkage information includes a cached global password and / or device password information of the first program, and the device password information includes a device password and a fifth device identifier corresponding to the device password;

[0070] The fourth resource decryption module comprises:

[0071] A second identification matching submodule is used to determine, for each second device resource to be decrypted, whether the fifth device identification matches the sixth device identification of the second device resource to be decrypted when the current decryption mode is the device decryption mode;

[0072] a second device password decryption submodule, configured to read the device password corresponding to the fifth device identification in the cache of the second program when the fifth device identification matches the sixth device identification, and decrypt the second device resource to be decrypted using the device password corresponding to the fifth device identification;

[0073] The second global password decryption submodule is used to read the global password in the cache of the second program for each second device resource to be decrypted when the current decryption mode is the global decryption mode, and use the global password to decrypt each second device resource to be decrypted.

[0074] Optionally, the device further comprises:

[0075] a password verification module, configured for the first program to send the password stored in the cache of the first program to the second program according to a preset period, and to determine whether the password stored in the cache of the second program is consistent with the password stored in the cache of the first program;

[0076] The password updating module is used to update the password stored in the second program cache by using the password stored in the first program cache when the password stored in the second program cache is inconsistent with the password stored in the first program cache.

[0077] Optionally, the web application communicates with the resource loading control through an intermediate layer service; the second information sending module includes:

[0078] An application information sending submodule is used for the web application to call the control interface provided by the middle layer service to send the second linkage information to the resource loading control, or,

[0079] The control information sending submodule is used for the resource loading control to send the second linkage information to the first listener pre-mounted by the middle layer service, so that the first listener sends the second linkage information to the web application.

[0080] Optionally, the first device resource to be decrypted is mounted with a second listener; and the first information sending module includes:

[0081] The information monitoring submodule is used to send the first linkage information to the second listener mounted on the loaded first device resource to be decrypted, so that the second listener triggers the execution of the step of using the password in the cache to perform linkage decryption on the first device resource to be decrypted when receiving the first linkage information.

[0082] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0083] Memory, used to store computer programs;

[0084] The processor is used to implement any method described in the first aspect when executing a program stored in the memory.

[0085] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any method described in the first aspect is implemented.

[0086] Beneficial effects of the embodiments of the present application:

[0087] In the solution provided by the embodiment of the present application, the application can store the password used to decrypt the first device resource in the cache when the first device resource is successfully decrypted, and then send the first linkage information to the loaded first device resource to be decrypted, wherein the first linkage information is used to prompt the first device resource to be decrypted to be linked decrypted, and then the password in the cache is used to decrypt the first device resource to be decrypted. It can be seen that when the password for successfully decrypting the first device resource is obtained, the password can be directly used to perform linkage decryption on the first device resource to be decrypted in the application to obtain the decrypted device resource. In this way, when a device resource is successfully decrypted, the user can browse other device resources directly without having to decrypt each device resource with a password, thereby reducing the complexity of device resource decryption and improving the efficiency of device resource decryption, so that the user can quickly browse the encrypted device resources. Of course, it is not necessary to achieve all the advantages described above at the same time for any product or method implementing the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0088] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0089] Figure 1A flowchart of a device resource decryption method provided in an embodiment of the present application;

[0090] Figure 2 for Figure 1 A first specific flow chart of step S103 in the illustrated embodiment;

[0091] Figure 3 for Figure 2 A flow chart of performing linked decryption on a first device resource to be decrypted in the illustrated embodiment;

[0092] Figure 4 for Figure 1 A second specific flow chart of step S103 in the illustrated embodiment;

[0093] Figure 5 for Figure 4 A flow chart of performing linked decryption on a first device resource to be decrypted in the illustrated embodiment;

[0094] Figure 6 Based on Figure 1 A specific flow chart of decrypting the second device resource in the illustrated embodiment;

[0095] Figure 7(a) shows Figure 6 A first flow chart of performing linkage decryption on a second device resource in the illustrated embodiment;

[0096] Figure 7(b) shows Figure 6 A second flow chart of performing linkage decryption on a second device resource in the illustrated embodiment;

[0097] Figure 8 Based on Figure 1 The illustrated embodiment is a first flow chart for performing linkage decryption on a second device resource to be decrypted;

[0098] Fig. 9 Based on Figure 1 The illustrated embodiment is a second flow chart for performing linked decryption on a second device resource to be decrypted;

[0099] Fig.10 Based on Figure 1 The third flow chart of the embodiment shown in FIG. 1 for performing linkage decryption on the second device resource to be decrypted;

[0100] Fig.11 A schematic diagram of the structure of a device resource decryption apparatus provided in an embodiment of the present application;

[0101] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0102] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.

[0103] In order to reduce the complexity of device resource decryption and improve the efficiency of device resource decryption, the embodiments of the present application provide a device resource decryption method, apparatus, electronic device, computer readable storage medium and computer program product. The following first introduces a device resource decryption method provided by the embodiments of the present application.

[0104] The device resource decryption method provided in the embodiment of the present application can be applied to any application that needs to decrypt device resources, for example, a web application, a resource loading control, a video player, etc., which is not specifically limited here. For the sake of clarity, it is referred to as an application in the following text.

[0105] like Figure 1 As shown, a device resource decryption method is applied to an application program, and the method includes:

[0106] S101 , when a first device resource is successfully decrypted, storing a password used to decrypt the first device resource in a cache.

[0107] S102: Send first linkage information to the loaded first device resource to be decrypted.

[0108] The first linkage information is used to prompt to perform linkage decryption on the first device resource to be decrypted.

[0109] S103: Use the password in the cache to perform linkage decryption on the first device resource to be decrypted.

[0110] It can be seen that in the embodiment of the present application, the application can store the password used to decrypt the first device resource in the cache when the first device resource is successfully decrypted, and then send the first linkage information to the loaded first device resource to be decrypted, wherein the first linkage information is used to prompt the first device resource to be decrypted to be linked decrypted, and then the password in the cache is used to perform linkage decryption on the first device resource to be decrypted. It can be seen that when the password for successfully decrypting the first device resource is obtained, the password can be directly used to perform linkage decryption on the first device resource to be decrypted in the application to obtain the decrypted device resource. In this way, when a device resource is successfully decrypted, the user can browse other device resources directly without having to decrypt each device resource with a password, thereby reducing the complexity of device resource decryption and improving the efficiency of device resource decryption, so that the user can quickly browse the encrypted device resources.

[0111] After the current user uses the device to shoot a video, picture or other device resource, in order to ensure the security of the device resource, the device resource will be encrypted when it is uploaded to the cloud. Therefore, when the user wants to browse the device resource, he needs to enter the password in the application to decrypt the device resource. In the above step S101, if the first device resource is successfully decrypted, the application will store the password used to decrypt the first device resource in the cache.

[0112] If the user wants to browse encrypted device resources, such as recorded videos, alarm pictures, etc., he will enter the corresponding pre-set password to decrypt the device resources. In order to prevent forgetting passwords, users currently set multiple device resources generated by the same device to share a password, and even set the device resources generated by multiple devices to the same set of passwords. For example, the user can set the passwords of the device resources generated by device A to 123, the passwords of the device resources generated by device B to 456, and the passwords of the device resources generated by device C to 789; for another example, in order to facilitate password memorization, the user can also set the passwords of the device resources generated by devices A-Device C to 123. This is all reasonable and is not specifically limited here.

[0113] Based on this, when the user successfully decrypts the first device resource by entering the password through the application page, the application can store the password that successfully decrypted the first device resource in the cache, so that the application can directly use the password to decrypt other device resources that are encrypted with the same password and are still in an encrypted state.

[0114] In the case where the password for decrypting the first device resource is stored in the cache, in the above step S102 , the application may send the first linkage information to the loaded first device resource to be decrypted.

[0115] Since the first device resource to be decrypted that has been loaded in the application can receive the first linkage information sent by the application, and the device resource to be decrypted that has not been loaded in the application cannot receive the first linkage information sent by the application, the application can send the first linkage information for prompting the first device resource to be decrypted to be linked to the first device resource to be decrypted that has been loaded by the application. Among them, the above-mentioned first linkage information may include the device identifier corresponding to the first device resource, the decryption time of the first device resource, and the information sending time, etc., which are all reasonable and are not specifically limited here.

[0116] For example, after the user enters the password 123 in the application page and successfully decrypts the device resource a generated by device A, the application can store the password 123 in the cache, and at the same time send the first linkage information to the loaded device resources b generated by device A, device resource c generated by device A, device resource a generated by device B, device resource b generated by device C, etc., to perform linkage decryption on the first device resources to be decrypted.

[0117] As an implementation method, a listener is mounted on each first device resource to be decrypted, which can receive the first linkage information to trigger the execution of the linkage decryption of the first device resource to be decrypted using the password in the cache. The first linkage information can also be received in other ways, such as an information receiving module, etc., which is not specifically limited here.

[0118] In the above step S103, the application program may use the password in the cache to perform linkage decryption on the first device resource to be decrypted.

[0119] Since users may set multiple device resources generated by the same device to share a password, or even set the device resources generated by multiple devices to the same password, there is a first device resource to be decrypted whose encrypted password is the same as the password of the first device resource among the first device resources to be decrypted, and the application can use the password in the cache to successfully decrypt the first device resource to be decrypted with the same password.

[0120] It can be seen that in the embodiment of the present application, when the password for successfully decrypting the first device resource is obtained, the password can be directly used to link and decrypt the first device resource to be decrypted in the application to obtain the decrypted device resource. In this way, when a device resource is successfully decrypted, the user can browse other device resources directly without having to decrypt each device resource with a password, thereby reducing the complexity of device resource decryption and improving the efficiency of device resource decryption, so that the user can quickly browse the encrypted device resources.

[0121] As an implementation of the embodiment of the present application, the step of storing the password for decrypting the first device resource in the cache may include:

[0122] When the current decryption mode is the device decryption mode, the password used to decrypt the first device resources and the first device identifier corresponding to the first device resources are stored in the cache accordingly, wherein the device decryption mode is a mode for performing linked decryption on device resources of the same device; when the current decryption mode is the global decryption mode, the password used to decrypt the first device resources is stored in the cache as a global password, wherein the global decryption mode is a mode for performing linked decryption on device resources of all devices.

[0123] In different decryption modes, the application program performs linkage decryption on the first resource to be decrypted in different ways. As an implementation method, a device decryption mode switch and a global decryption mode switch can be set on the application program page. When the user enters the password for decrypting the first device resource on the application program page, the user can choose to turn on the device decryption mode switch or the global decryption mode switch as required. In this way, the application program can perform linkage decryption on the first resource to be decrypted according to the decryption mode selected by the user.

[0124] As an implementation method, the application can determine the current decryption mode based on the user's habit of browsing video resources. For example, in the case where the user is accustomed to preferentially browsing device resources generated by the same device, that is, the user preferentially browses the first device resource to be decrypted that is generated by the same device as the first device resource, the application can determine the current decryption mode as the device decryption mode to perform linkage decryption on the first device resource to be decrypted that is generated by the same device as the first device resource. For another example, in the case where the user is accustomed to randomly browsing device resources, the application can determine the current decryption mode as the global decryption mode to enable linkage decryption of more first devices to be decrypted, which is reasonable and is not specifically limited here.

[0125] When the current decryption mode is the device decryption mode, since the device decryption mode is to decrypt the device resources generated by the same device, the application can determine whether the first device resource is generated by the same device based on whether the device identifier corresponding to the first device resource is consistent with the device identifier corresponding to the device resource to be decrypted. Since the application needs to use the device identifier corresponding to the first device resource to be decrypted in the device decryption mode, the application can store the password for decrypting the first device resource and the first device identifier corresponding to the first device resource in the cache in correspondence.

[0126] When the current decryption mode is the global decryption mode, since the global decryption mode decrypts the device resources generated by all devices, the application can store the password used to decrypt the first device resources as a global password in the cache to achieve linked decryption of all loaded first device resources to be decrypted in the application.

[0127] It can be seen that in the embodiment of the present application, the device decryption mode is for the device resources of the same device. Therefore, when the current decryption mode is the device decryption mode, the application will store the password used to decrypt the first device resource and the first device identifier corresponding to the first device resource in the cache, so that the first device identifier and the device identifier corresponding to the first device resource to be decrypted can be used for identification matching later. The global decryption mode is for the device resources of all devices. Therefore, when the current decryption mode is the global decryption mode, the application will store the password used to decrypt the first device resource and the global password in the cache, so that the global password can be used to decrypt the device resources of all devices in a linked manner later. In this way, according to the current decryption mode, the password for decrypting the first program can be stored according to different password types, which can effectively improve the efficiency of the linked decryption of the first device resource to be decrypted.

[0128] As an implementation method of the present application, Figure 2 As shown, the current decryption mode is the device decryption mode, and the first linkage information includes the first device identifier; the step of using the password in the cache to perform linkage decryption on the first device resource to be decrypted may include:

[0129] S201: For each first device resource to be decrypted, determine whether a first device identifier matches a second device identifier of the first device resource to be decrypted.

[0130] Since the device decryption mode is a mode for linked decryption of device resources of the same device, that is, the first device resource to be decrypted can only be decrypted using the password for decrypting the first device resource when the device identifier corresponding to the first device resource to be decrypted and the first device identifier corresponding to the successfully decrypted first device resource match. Therefore, when the current decryption mode is the device decryption mode, for each first device resource to be decrypted, it is necessary to determine whether the first device identifier and the second device identifier corresponding to the first resource device to be decrypted match.

[0131] Among them, the first device identifier corresponding to the first device resource stored in the cache can be the serial number of the device that generates the first device resource, the name of the device, or a random string used to identify the device, etc., which are all reasonable and are not specifically limited here.

[0132] S202: When the first device identifier and the second device identifier match, read the password corresponding to the first device identifier from the cache, and decrypt the first device resource to be decrypted using the password corresponding to the first device identifier.

[0133] When the application determines that the first device identifier matches the second device identifier of the first device resource to be decrypted, it indicates that the first device resource to be decrypted and the first device resource are device resources generated by the same device. Since the user encrypts the device resources generated by the same device with the same password, the application can read the password for decrypting the first device resource in the cache to decrypt the first device resource. Among them, the password used by the user to encrypt the device resources generated by the same device can be a random string or a password that is the same as the device password. This is reasonable and is not specifically limited here.

[0134] For example, when the current decryption mode is the device decryption mode, the process of performing linkage decryption on the first device resource to be decrypted can be as follows: Figure 3 As shown, when the user wants to browse the device resource loaded in the application: device A-video 1, that is, video 1 generated by device A, the user enters the password to decrypt the video. The password of the device resource generated by device A preset by the user is 123, so the password 123 can be entered in the page of the application, and the application successfully decrypts the first device resource, device A-video 1, and stores the password of device A in the cache, specifically, the password 123 for decrypting device A-video 1 and its corresponding first device identifier are stored in the cache in correspondence.

[0135] At the same time, the application carries the password of device A and sends the first linkage information to the first device resource to be decrypted to prompt the first device resource to be decrypted to perform decryption. After each listener mounted on the first device resource to be decrypted receives the first linkage information, it triggers the application to perform linkage decryption on the first device resource to be decrypted.

[0136] The first device resources to be decrypted loaded in the current application include: device A-video 2, device A-picture 1 and device B-video 1. For each first device resource to be decrypted, the application determines whether its corresponding device identifier matches the first device identifier corresponding to the first device resource, namely, the device A identifier.

[0137] For the first device resource to be decrypted: device A-video 2 and device A-picture 1, the application can determine that the second device identifier corresponding to the first device resource to be decrypted is the device A identifier, which matches the first device identifier corresponding to the first device resource, indicating that device A-video 2 and device A-picture 1 are both device resources generated by device A, and their encrypted passwords are 123. Therefore, the application can read the device A password from the cache and perform joint decryption on the two first device resources to be decrypted, that is, use the password 123 to decrypt device A-video 2 and device A-picture 1. In this way, when users browse video 2 and picture 1 generated by device A, they do not need to decrypt them again and can browse them directly.

[0138] For the first device resource to be decrypted: device B-video 1, the application determines that the device A identifier does not match the second device identifier corresponding to device B. If the identifiers do not match, the first device resource to be decrypted will not be decrypted and will remain encrypted.

[0139] It can be seen that in the embodiment of the present application, when the current decryption mode is the device decryption mode, for each first device resource to be decrypted, the application can determine whether the first device identifier corresponding to the first device resource matches the second device identifier corresponding to the first device resource to be decrypted. If they match, the password corresponding to the first device identifier stored in the cache can be read to decrypt the first device resource to be decrypted. In this way, the user can decrypt a device resource, and all resources of the same device in the application can be decrypted at the same time. When the user browses the device resources generated by the device to which the first device identifier corresponding to the first device resource in the application belongs, the user can directly browse these device resources without decrypting them, which improves the efficiency of device resource decryption and allows the user to browse the device resources faster.

[0140] As an implementation method of the present application, Figure 4As shown, the current decryption mode is a global decryption mode; the step of using the password in the cache to perform linkage decryption on the first device resource to be decrypted may include:

[0141] S401 : For each first device resource to be decrypted, read a global password in a cache.

[0142] Since the global decryption mode performs linkage decryption on the loaded device resources of all devices in the application, that is, no matter whether the first device resource to be decrypted and the first device resource are device resources generated by the same device, as long as the password is correct, the first device resource to be decrypted will be linked and decrypted successfully. Therefore, for each first device resource to be decrypted, the application can read the global password to decrypt it.

[0143] S402: Decrypt each first device resource to be decrypted using a global password.

[0144] When the global password is read, the application can use the global password to decrypt each first device resource to be decrypted. When the global password is the same as the encryption password of the first device resource to be decrypted, the first device resource to be decrypted can be successfully decrypted. For example, the global password in the cache is 123, and the encryption passwords of the first device resources to be decrypted AC are 123, 456, and 123 respectively. Therefore, the application can use the global password 123 to decrypt the first device resource A to be decrypted and the first device resource C to be decrypted; the password corresponding to the first device resource B to be decrypted is 456, which is inconsistent with the global password 123. Therefore, the first device resource B to be decrypted cannot be decrypted.

[0145] As an implementation mode, when the first device resource to be decrypted is successfully decrypted using the global password, the global password and the device identification corresponding to the first device resource to be decrypted are stored in the cache in a corresponding manner. For example, when the application successfully decrypts the first device resource to be decrypted A and the first device resource to be decrypted C using the global password 123, the global password 123 and the device identification corresponding to the first device resource to be decrypted A: device A identification can be stored in the cache in a corresponding manner; and the global password 123 and the device identification corresponding to the first device resource to be decrypted C: device C identification can be stored in the cache in a corresponding manner.

[0146] For example, when the current decryption mode is the global decryption mode, the process of performing linkage decryption on the first device resource to be decrypted can be as follows: Figure 5As shown, when the user wants to browse the device resource loaded in the application: device A-video 1, that is, video 1 generated by device A, the user enters the password to decrypt the video. The password of the device resource pre-set by the user is 123, so the password 123 can be entered in the page of the application and applied globally. The application successfully decrypts the first device resource, device A-video 1, and stores the device A password as the global password in the cache.

[0147] At the same time, the application sends the first linkage information to the first device resource to be decrypted to prompt the first device resource to be decrypted to perform decryption. After receiving the first linkage information, the listener mounted on each first device resource to be decrypted triggers the application to perform linkage decryption on the first device resource to be decrypted.

[0148] The first device resources to be decrypted that have been loaded in the current application include: device A-video 2, device B-picture 1, and device C-video 1, and the corresponding encryption passwords are 123, 123, and 456, respectively. For each first device resource to be decrypted, the application reads the global password from the cache for decryption, and uses the global password to decrypt the first device resource to be decrypted. The password 123 of device A-video 2 and device B-picture 1 in the above-mentioned first device resource to be decrypted is consistent with the global password 123, so for device A-video 2 and device B-picture 1, the application can successfully decrypt them. After the application successfully decrypts, the global password is saved as the corresponding device password, that is, the global password 123 is stored as the device password corresponding to device A, and the device password corresponding to device B. In this way, when the user browses the video 2 generated by device A and the picture 1 generated by device B, there is no need to decrypt again, and can browse directly.

[0149] For the first device resource to be decrypted: device C-video 1, its password 456 is inconsistent with the global password 123, so the application fails to decrypt successfully and maintains the encrypted state.

[0150] It can be seen that in the embodiment of the present application, when the current decryption mode is the global decryption mode, for each first device resource to be decrypted, the application can read the global password stored in the cache to decrypt the first device resource to be decrypted. Regardless of whether the device resource is generated by the same device, as long as the password is correct, the linkage decryption will be successful. In this way, the user can decrypt a device resource, and all device resources with the same password in the application can be decrypted at the same time. When the user browses the device resources whose encryption password is consistent with the global password in the application, these device resources can be browsed directly without decrypting them again, which improves the efficiency of device resource decryption and allows users to browse device resources faster.

[0151] As an implementation method of the present application, Figure 6 As shown, the above method may also include:

[0152] S601, the password used to decrypt the first device resource is used as the device password and the first device identifier, and is stored in the cache accordingly, and / or, after the step of decrypting each first device resource to be decrypted using the global password, the global password is used as the device password and the third device identifier corresponding to the first device resource to be decrypted is stored in the cache accordingly.

[0153] When the decryption mode is the device decryption mode, when the first device resource is successfully decrypted, the password used to decrypt the first device resource will be used as the device password and the first device identification, and will be stored in the cache accordingly; when the decryption mode is the global decryption mode, when the first device resource to be decrypted is successfully decrypted using the global password, the global password will be used as the device password, and the third device identification corresponding to the first device resource to be decrypted will be stored in the cache accordingly.

[0154] For example, the global password in the cache is 123, and the encryption passwords of the first device resources AC to be decrypted are 123, 456, and 123 respectively. Therefore, the application can use the global password 123 to decrypt the first device resources A to be decrypted and the first device resources C to be decrypted; the password corresponding to the first device resource B to be decrypted is 456, which is inconsistent with the global password 123. Therefore, the first device resource B to be decrypted cannot be decrypted.

[0155] When the application successfully decrypts the first device resource A to be decrypted and the first device resource C to be decrypted, the global password 123 can be used as the device password, and the third device identifier corresponding to the first device resource A to be decrypted: the device A identifier can be stored in the cache; and the global password 123 can be used as the device password, and the third device identifier corresponding to the first device resource C to be decrypted: the device C identifier can be stored in the cache. In this way, the cache stores the device password 123 corresponding to the device A identifier and the device password 123 corresponding to the device C identifier.

[0156] S602: For the currently loaded second device resource, determine whether the device identification corresponding to the device password in the cache has a target device identification that matches the device identification corresponding to the second device resource.

[0157] Since only the first device resource to be decrypted that has been loaded in the application can receive the first linkage information, the second device resource that has not been loaded or is being loaded in the application cannot receive the first linkage information, so the second device resource cannot perform linkage decryption according to the first linkage information. In order to solve this problem, for the currently loaded second device resource, the password stored in the cache can be directly used to perform linkage decryption without receiving linkage information.

[0158] S603: When the target device identifier exists, the second device resource is decrypted using the device password corresponding to the target device identifier.

[0159] The second device resource is preferentially decrypted according to the device password. The device identifier corresponding to the device password in the cache determines whether there is a target device identifier that matches the device identifier corresponding to the second device resource. If the target identifier exists, it means that the second device resource and the device resource corresponding to the device password in the storage are generated by the same device, and the encryption passwords are the same. Therefore, the application uses the device password corresponding to the target device identifier to decrypt the second device resource.

[0160] For example, as shown in FIG7 (a), the password stored in the cache is the device A password 123 corresponding to the device A identifier. For the second device resource currently being loaded: device A-video 4, the application reads the cache and finds the device A identifier in the cache. The device A identifier matches the device identifier corresponding to the second device resource. Therefore, the device A identifier can be determined as the target device identifier. The target device identifier, i.e., the device A password 123 corresponding to the device A identifier, is used to decrypt the device A-video 4.

[0161] S604: In the absence of the target device identifier, decrypt the second device resource using the global password.

[0162] When the target device identifier corresponding to the second device resource does not exist in the cache, it means that the second device resource cannot be decrypted using the device password in the cache. In this case, the application can read the global password in the cache and use the global password to decrypt the second device resource.

[0163] S605: When the second device resource is successfully decrypted, the global password is used as the device password, and the fourth device identifier corresponding to the second device resource is stored in the cache.

[0164] When the second device resource is successfully decrypted using the global password, it means that the device resource can decrypt the device resources generated by the device to which the second device resource belongs. Therefore, the application can use the global password as the device password and store the fourth device identifier corresponding to the second device resource in the cache, so as to facilitate the subsequent direct use of the device password to decrypt the device resources generated by the device corresponding to the fourth device identifier.

[0165] For example, as shown in FIG7 (b), the passwords stored in the cache are the device password 123 and the global password 123 corresponding to the device A identifier. For the second device resource currently being loaded: device B-picture 1, the application reads the cache, but does not find the device B identifier in the cache, and cannot use the device password corresponding to the device B identifier to decrypt the second device resource. Therefore, the application reads the global password in the cache and uses the global password 123 to decrypt the device B-picture 1. Since the encryption password of the picture is 123, the application can successfully decrypt it using the global password 123. After the decryption is successful, the global password is saved as the corresponding device password, specifically, the device password 123 and the device B identifier are stored in the cache in correspondence.

[0166] It can be seen that in the embodiment of the present application, for the currently loaded second device resource that has not received the first linkage information, the application can use the device password in the cache to decrypt the second device resource. If the target device identifier corresponding to the second device resource does not exist in the cache, the global password in the cache is further read, and the second device resource is decrypted using the global password. In the case of successful decryption, the global password is used as the device password and the device identifier corresponding to the second device resource is stored in the cache. In this way, the application can not only decrypt the first device resource to be decrypted, but also decrypt the second device resource, expanding the scope of device resources that perform linkage decryption, and realizing that the device resources loaded later can also complete linkage decryption, so that users can browse more device resources directly without decryption. At the same time, the successfully decrypted global password is used as the device password, and the device identifier corresponding to the successfully decrypted device resource is stored in the cache, which is convenient for the subsequent direct decryption of the corresponding device password according to the device password, thereby improving the efficiency of device decryption.

[0167] As an implementation of the embodiment of the present application, the above application may be a web application or a resource loading control, and the above method may further include:

[0168] The first program sends the second linkage information to the second program, stores the received password in the cache of the second program, and uses the password in the cache of the second program to perform linkage decryption on the second device resource to be decrypted.

[0169] Since both the web application and the resource loading control can be used to load device resources, the web application or the resource loading control can be used to perform linkage decryption. When the web application uses the resource loading control to browse device resources, since the resource loading control and the web application are two independent processes, the resource loading control cannot read the cached data in the web application, such as the cached password. In this case, the web application can send a second linkage message to the resource loading control so that the resource loading control uses the received password to decrypt the second video resource to be decrypted. Similarly, the resource loading control can send a second linkage message to the web application so that the web application uses the received password to decrypt the second video resource to be decrypted.

[0170] Among them, the second linkage information is used to prompt to perform linked decryption on the second device resource to be decrypted in the second program. The second linkage information includes the cached password of the first program. When the first program is a web application, the second program is a resource loading control. When the first program is a resource loading control, the second program is a web application.

[0171] It can be seen that in the embodiment of the present application, the first program can send the second linkage information to the second program, the second program stores the received password in the cache, and uses the password in the cache of the second program to perform linkage decryption on the second device resource to be decrypted. In this way, a linkage decryption design for the operation control scenario is added, so that the device resources in the web application and the resource loading control can be decrypted, and the scope of the device resources that perform linkage decryption is expanded, so that users can directly browse more device resources without decryption.

[0172] As an implementation method of an embodiment of the present application, the second linkage information may include a global password and / or device password information cached by the first program, and the device password information may include a device password and a fifth device identifier corresponding to the device password; the step of performing linkage decryption on the second device resource to be decrypted using the password in the cache of the second program may include:

[0173] When the current decryption mode is the device decryption mode, for each second device resource to be decrypted, determine whether the fifth device identifier and the sixth device identifier of the second device resource to be decrypted match; when the fifth device identifier and the sixth device identifier match, read the device password corresponding to the fifth device identifier in the cache of the second program, and use the device password corresponding to the fifth device identifier to decrypt the second device resource to be decrypted.

[0174] When the current decryption mode is the global decryption mode, for each second device resource to be decrypted, the global password is read from the cache of the second program, and each second device resource to be decrypted is decrypted using the global password.

[0175] Since the device decryption mode is a mode for linked decryption of device resources of the same device, that is, the second device resource to be decrypted can only be decrypted by using the password corresponding to the fifth device identifier when the sixth device identifier corresponding to the second device resource to be decrypted matches the fifth device identifier corresponding to the device password in the device password information sent by the first program. Therefore, when the current decryption mode is the device decryption mode, for each second device resource to be decrypted, it is necessary to determine whether the fifth device identifier in the second program cache and the sixth device identifier corresponding to the second resource device to be decrypted match.

[0176] When the second program determines that the fifth device identifier matches the sixth device identifier of the second device resource to be decrypted, it indicates that the second device resource to be decrypted and the device resource corresponding to the fifth device identifier are generated by the same device. Since the user encrypts the device resource generated by the same device with the same password, the second program can read the device password corresponding to the fifth device identifier in the cache to decrypt the second device resource to be decrypted. The password used by the user to encrypt the device resource generated by the same device can be a random string or a password that is the same as the device password, which is reasonable and is not specifically limited here.

[0177] For example, the first program is a web application, and the second program is a resource loading control. When the current decryption mode is the device decryption mode, the process of performing linkage decryption on the second device resource to be decrypted using the password in the cache of the second program can be as follows: Figure 8 As shown:

[0178] The current decryption mode is the device decryption mode. After the user enters the password, the web application uses the password 123 entered by the user to decrypt device A-video 1, and at the same time sends the first linkage information to the first device resources to be decrypted in the web application: device A-picture 1 and device A-picture 2, performs linkage decryption inside the web application, determines that the device identifiers corresponding to pictures 1 and 2 match the device A identifier stored in the browser cache of the web application, and uses the password 123 corresponding to the device A identifier to perform linkage decryption on device A-picture 1 and device A-picture 2. The web application can also send the second linkage information to the resource loading control through the control protocol based on the middle layer used for communication connection between the web application and the resource loading control, so as to prompt the second device resource to be decrypted in the resource loading control to be decrypted.

[0179] The second linkage information may include device password information, which includes device A identification and corresponding device A password 123; after receiving the second linkage information, the listener mounted on each second device resource to be decrypted triggers the application to perform linkage decryption on the second device resource to be decrypted.

[0180] After receiving the second linkage information, the resource loading control stores the device A identifier and the device password for decrypting the device resources generated by device A in the control cache. The second device resources to be decrypted that have been loaded in the current resource loading control include: device A-video 2, device A-picture 3, and device B-video 3. For each second device resource to be decrypted, the resource loading control determines whether its corresponding device identifier matches the device A identifier in the control cache.

[0181] For the second device resources to be decrypted: device A-video 2 and device A-picture 3, the resource loading control can determine that the sixth device identifier corresponding to the second device resource to be decrypted is the device A identifier, which matches the fifth device identifier in the device password information: device A identifier, indicating that device A-video 2 and device A-picture 3 are both device resources generated by device A, and are encrypted by password 123. Therefore, the resource loading control can read the device A password from the control cache, and perform linkage decryption on the two second device resources to be decrypted, that is, use password 123 to decrypt device A-video 2 and device A-picture 3. In this way, when the user browses the video 2 and picture 3 generated by device A in the resource loading control, there is no need to decrypt them again, and they can browse directly.

[0182] For the second device resource to be decrypted: device B-video 3, the resource loading control determines that the device A identifier does not match the sixth device identifier corresponding to device B. If the identifiers do not match, the second device resource to be decrypted will not be decrypted and will remain encrypted.

[0183] Since the global decryption mode performs linkage decryption on the loaded device resources of all devices in the application, that is, no matter whether the second device resource to be decrypted and the device resource successfully decrypted by the first application are generated by the same device, as long as the password is correct, the second device resource to be decrypted will be successfully decrypted. Therefore, for each second device resource to be decrypted, the application can read the global password to decrypt it.

[0184] When the global password is read, the application can use the global password to decrypt each second device resource to be decrypted. When the global password is the same as the encryption password of the second device resource to be decrypted, the second device resource to be decrypted can be successfully decrypted.

[0185] For example, the first program is a web application, and the second program is a resource loading control. When the current decryption mode is the global decryption mode, the process of performing linkage decryption on the second device resource to be decrypted using the password in the cache of the second program can be as follows: Fig. 9 As shown:

[0186] The current decryption mode is the global decryption mode. After the user enters the password, the web application uses the password 123 entered by the user to decrypt device A-video 1, and at the same time sends the first linkage information to the first device resource to be decrypted in the web application: device A-picture 1 and device A-picture 2, and performs linkage decryption inside the web application. For device A-picture 1 and device A-picture 2, the web application reads the global password from the cache for decryption, and uses the global password to decrypt pictures 1 and 2. The encryption password 123 of the above pictures 1 and 2 is consistent with the global password 123, so for device A-picture 1 and device A-picture 2, the web application can successfully decrypt them.

[0187] After the web application successfully decrypts, the global password is stored as the corresponding device password, that is, the global password 123 is stored as the device A password corresponding to device A. The web application can also send the second linkage information to the resource loading control through the control protocol based on the middle layer used for communication connection between the web application and the resource loading control, so as to prompt the second device resource to be decrypted in the resource loading control to be decrypted.

[0188] Among them, the second linkage information may include a global password and device password information, and the device password information includes a device A identifier and a corresponding device A password 123; after the listener mounted on each second device resource to be decrypted receives the second linkage information, it triggers the resource loading control to perform linkage decryption on the second device resource to be decrypted.

[0189] After receiving the second linkage information, the resource loading control stores the device A identifier and the device password and global password used to decrypt the device resources generated by device A in the control cache. The second device resources to be decrypted that have been loaded in the current resource loading control include: device A-video 2, device B-picture 1, and device C-video 1, and the corresponding encryption passwords are 123, 123, and 456, respectively. For each second device resource to be decrypted, the resource loading control reads the global password from the control cache for decryption.

[0190] The password 123 of the device A-video 2 and the device B-picture 1 in the second device resource to be decrypted is consistent with the global password 123. Therefore, the resource loading control can successfully decrypt the device A-video 2 and the device B-picture 1. After the resource loading control successfully decrypts, the global password is saved as the corresponding device password, that is, the global password 123 is stored as the device password corresponding to the device A and the device password corresponding to the device B. In this way, when the user browses the video 2 generated by the device A and the picture 1 generated by the device B, there is no need to decrypt them again, and they can browse directly.

[0191] For the second device resource to be decrypted: device C-video 1, its password 456 is inconsistent with the global password 123, so the resource loading control fails to decrypt successfully and maintains the encrypted state.

[0192] Similarly, if the user completes the device resource decryption in the resource loading control, the device resource in the web application will also be linked to complete the decryption. Compared with the web application sending the second linkage information to the resource loading control, this process is a process of reverse information transmission. For example, the first program is the resource loading control, and the second program is the web application. In the case that the current decryption mode is the global decryption mode, the process of performing linkage decryption on the second device resource to be decrypted using the password in the cache of the second program can be as follows: Fig.10 As shown:

[0193] The current decryption mode is the global decryption mode. After the user enters the password, the resource loading control uses the password 123 entered by the user to decrypt device A-video 1, and at the same time sends the first linkage information to the first device resource to be decrypted in the resource loading control: device A-video 2 and device B-picture 1, and performs linkage decryption inside the resource loading control. For device A-video 2 and device B-picture 1, the resource loading control reads the global password from the control cache for decryption, and uses the global password to decrypt video 2 and picture 1. The encryption password 123 of the above video 2 and picture 1 is consistent with the global password 123, so for device A-video 2 and device B-picture 1, the resource loading control can successfully decrypt them.

[0194] After the resource loading control successfully decrypts, the global password is saved as the corresponding device password, that is, the global password 123 is respectively stored as the device password corresponding to device A and the device password corresponding to device B. The resource loading control can also send the second linkage information to the web application through the control interface based on the resource loading control and the middle layer used for communication connection in the resource loading control to prompt the second device resource to be decrypted in the resource loading control to be decrypted.

[0195] Among them, the second linkage information may include a global password and device password information, and the device password information includes a device A identifier, a device B identifier and a corresponding device password 123; after the listener mounted on each second device resource to be decrypted receives the second linkage information, it triggers the web application to perform linkage decryption on the second device resource to be decrypted.

[0196] After receiving the second linkage information, the web application stores the device A identifier and the device password for decrypting the device resources generated by device A, the device password for decrypting the device resources generated by device B, and the global password in the browser cache. The second device resources to be decrypted that have been loaded in the current web application include: device A-video 2 and device C-picture 1, and the corresponding encryption passwords are 123 and 456, respectively. For each second device resource to be decrypted, the web application reads the global password from the browser cache for decryption.

[0197] The encryption password 123 of the device A-video 2 in the second device resource to be decrypted is consistent with the global password 123, so the web application can successfully decrypt the device A-video 2. After the web application successfully decrypts, the global password is stored as the corresponding device password, that is, the global password 123 is stored as the device password corresponding to device A. In this way, when the user browses the video 2 generated by device A, there is no need to decrypt it again, and it can be browsed directly.

[0198] For the second device resource to be decrypted: device C-picture 1, its password 456 is inconsistent with the global password 123, so the web application fails to decrypt successfully and maintains the encrypted state.

[0199] It can be seen that in the embodiment of the present application, when the decryption mode of the first program is the device decryption mode, the second program also performs device decryption on the second device resource to be decrypted according to the device decryption mode using the received device password; when the decryption mode of the first program is the global decryption mode, the second program also performs device decryption on the second device resource to be decrypted according to the global decryption mode using the received global password. In this way, the linkage decryption design for the operation control scenario is added, ensuring that the linkage decryption can be performed synchronously between the first program and the second program, so that the device resources in the first program and the second program can be decrypted, expanding the scope of the device resources that perform linkage decryption, so that users can browse more device resources directly without decryption.

[0200] As an implementation of the embodiment of the present application, the above method may also include:

[0201] The first program sends the password stored in the cache of the first program to the second program according to a preset period, and determines whether the password stored in the cache of the second program is consistent with the password stored in the cache of the first program; when the password stored in the cache of the second program is inconsistent with the password stored in the cache of the first program, the password stored in the cache of the first program is used to update the password stored in the cache of the second program.

[0202] Since the server where the second program is located may experience power outages, operational failures, and other problems, resulting in the loss or storage error of the password stored in the second program, and thus the device resources in the second program may fail to decrypt the linkage due to the error of the password stored in the second program during the linkage decryption process. In order to avoid this situation, the first program can send the password stored in the cache of the first program to the second program according to a preset period, and determine whether the password stored in the cache of the second program is consistent with the password stored in the cache of the first program.

[0203] If the passwords are consistent, it means that the password stored in the cache of the second program is accurate; if the passwords are inconsistent, it is necessary to use the password stored in the cache of the first program to update the password stored in the cache of the second program so that the password in the cache of the second program is consistent with the password in the cache of the first program.

[0204] Among them, the preset period can be set according to the frequency of the application executing the linkage decryption or the actual demand, and can be set to 3 days, 7 days or 15 days, etc., and is not specifically limited here.

[0205] For example, the first program is a web application, and the second program is a resource loading control. The password stored in the browser cache of the web application is the global password 123 and the device password 123 corresponding to the device A identifier, and the password stored in the control cache of the resource loading control is the global password 456 and the device password 123 corresponding to the device A identifier. When the preset period is reached, the web application sends the password stored in the browser cache to the resource loading control, and after comparing it with the password stored in the control cache, it is determined that the global password in the control cache is inconsistent with the global password in the browser cache. The resource loading control can then use the global password 123 stored in the browser cache sent by the web application to update the global password 456 stored in the control cache, so that the global password stored in the control cache after the update is consistent with the global password stored in the browser cache, both of which are 123.

[0206] As an implementation method, the first program sends the password stored in the cache of the first program to the second program according to a preset period. When the second program determines that the password stored in its cache is inconsistent with the password stored in the cache of the first program, the password stored in the cache of the first program is used to update all the passwords stored in the cache of the second program.

[0207] As an implementation method, the first program sends the password stored in the cache of the first program to the second program according to a preset period, and the second program compares all the passwords stored in its cache with the passwords stored in the cache of the first program one by one. When the second program cache determines that the password stored therein is inconsistent with the password stored in the cache of the first program, the password stored in the cache of the first program is used to update the password in the cache of the second program that is inconsistent with the cache of the first program.

[0208] It can be seen that in the embodiment of the present application, the first program can send the password stored in the cache of the first program to the second program according to a preset period, so that when it is determined that the password stored in the cache of the second program is inconsistent with the password stored in the cache of the first program, the password stored in the cache of the first program is used to update the password stored in the cache of the second program. In this way, the password stored in the cache of the second program can be kept consistent with the password stored in the first program after successfully decrypting the device resources, thereby improving the success rate of performing linked decryption using the password stored in the cache of the second program.

[0209] As an implementation method of the embodiment of the present application, the web application communicates with the resource loading control through the middle layer service; the step of the first program sending the second linkage information to the second program may include:

[0210] The web application calls the control interface provided by the middle layer service to send the second linkage information to the resource loading control, or the resource loading control sends the second linkage information to the first listener pre-mounted by the middle layer service, so that the first listener sends the second linkage information to the web application.

[0211] The web application and the resource loading control establish a communication connection through the middle layer service, and the web application or the resource loading control can use the middle layer service to send the second linkage information and other information to the resource loading control or the web application.

[0212] When the web application sends the second linkage information to the resource loading control, the web application calls the control interface provided by the middle-layer service, and sends the second linkage information to the resource loading control through the control interface; when the resource loading control sends the second linkage information to the web application, the resource loading control sends the second linkage information to the first listener pre-mounted by the middle-layer service, and the first listener mounted by the middle-layer service is used to receive the information sent by the resource loading control to the web application. After receiving the second linkage information sent by the resource loading control, the first listener forwards the second linkage information to the web application.

[0213] It can be seen that in the embodiment of the present application, the web application can call the control interface provided by the middle-layer service to send the second linkage information to the resource loading control, or the resource loading control can send the second linkage information to the first listener pre-mounted by the middle-layer service, so that the first listener sends the second linkage information to the web application. In this way, it can be ensured that the web application or the resource loading control sends the second linkage information to the resource loading control or the web application, so that the resource loading control or the web application that receives the second linkage information decrypts the device resources therein.

[0214] As an implementation method of the embodiment of the present application, the first device resource to be decrypted is mounted with a second listener; the step of sending the first linkage information to the loaded first device resource to be decrypted may include:

[0215] The first linkage information is sent to the second listener mounted on the loaded first device resource to be decrypted, so that the second listener triggers the step of performing linkage decryption on the first device resource to be decrypted using the password in the cache when receiving the first linkage information.

[0216] The first device resource to be decrypted is mounted with a second listener, and the second listener is used to receive the first linkage information sent to the first device resource to be decrypted. After the second listener receives the first linkage information sent by the application, it triggers the execution of linkage decryption, and the application uses the password in the cache to perform linkage decryption on the first device resource to be decrypted. Among them, the above-mentioned first device resource to be decrypted can be a device resource loaded in the web, or a device resource loaded in the resource loading control, which is reasonable and is not specifically limited here.

[0217] It can be seen that in the embodiment of the present application, the first device resource to be decrypted is mounted with a second listener, and the application can send the first linkage information to the second listener mounted by the loaded first device resource to be decrypted, so that after the second listener receives the first linkage information, it triggers the application to execute the linkage decryption of the first device resource to be decrypted using the password in the cache. In this way, by mounting the second listener on the first device resource to be decrypted, it can be ensured that the loaded first device resource to be decrypted can receive the first linkage information, so that the first device resource to be decrypted that receives the first linkage information can be executed linkage decryption.

[0218] Corresponding to the above-mentioned device resource decryption method, the embodiment of the present application further provides a device resource decryption apparatus. The device resource decryption apparatus provided by the embodiment of the present application is introduced below.

[0219] like Fig.11 As shown, a device resource decryption device is applied to an application program, and the device includes:

[0220] A first password cache module 1101, configured to store the password used to decrypt the first device resource in a cache when the first device resource is successfully decrypted;

[0221] A first information sending module 1102 is used to send first linkage information to the loaded first device resource to be decrypted, wherein the first linkage information is used to prompt to perform linkage decryption on the first device resource to be decrypted;

[0222] The first resource decryption module 1103 is used to use the password in the cache to perform linkage decryption on the first device resource to be decrypted.

[0223] It can be seen that in the embodiment of the present application, the application can store the password used to decrypt the first device resource in the cache when the first device resource is successfully decrypted, and then send the first linkage information to the loaded first device resource to be decrypted, wherein the first linkage information is used to prompt the first device resource to be decrypted to be linked decrypted, and then the password in the cache is used to perform linkage decryption on the first device resource to be decrypted. It can be seen that when the password for successfully decrypting the first device resource is obtained, the password can be directly used to perform linkage decryption on the first device resource to be decrypted in the application to obtain the decrypted device resource. In this way, when a device resource is successfully decrypted, the user can browse other device resources directly without having to decrypt each device resource with a password, thereby reducing the complexity of device resource decryption and improving the efficiency of device resource decryption, so that the user can quickly browse the encrypted device resources.

[0224] As an implementation of the embodiment of the present application, the first password cache module 1101 may include:

[0225] A device password storage submodule, used to store the password for decrypting the first device resource and the first device identifier corresponding to the first device resource in the cache in correspondence when the current decryption mode is the device decryption mode, wherein the device decryption mode is a mode for performing linked decryption on device resources of the same device;

[0226] The global password storage submodule is used to store the password used to decrypt the first device resource as a global password in the cache when the current decryption mode is the global decryption mode, wherein the global decryption mode is a mode for joint decryption of device resources of all devices.

[0227] As an implementation method of an embodiment of the present application, the current decryption mode is a device decryption mode, and the first linkage information includes a first device identifier; the first resource decryption module 1103 may include:

[0228] A first identification matching submodule, used for determining, for each first device resource to be decrypted, whether a first device identification matches a second device identification of the first device resource to be decrypted;

[0229] The first device password decryption submodule is used to read the password corresponding to the first device identification from the cache when the first device identification and the second device identification match, and decrypt the first device resource to be decrypted using the password corresponding to the first device identification.

[0230] As an implementation method of the embodiment of the present application, the current decryption mode is a global decryption mode; the first resource decryption module 1103 may include:

[0231] A first global password reading submodule, used for reading a global password in a cache for each first device resource to be decrypted;

[0232] The first global password decryption submodule is used to decrypt each first device resource to be decrypted using the global password.

[0233] As an implementation of the embodiment of the present application, the above device may further include:

[0234] a second password cache module, configured to store the password for decrypting the first device resource as the device password and the first device identifier in the cache in correspondence with each other, and / or,

[0235] A third password cache module is used to store the third device identifier corresponding to the first device resource to be decrypted in the cache using the global password as the device password after decrypting each first device resource to be decrypted using the global password;

[0236] A target device identification determination module, for determining, for the currently loaded second device resource, whether there is a target device identification matching the device identification corresponding to the second device resource among the device identification corresponding to the device password in the cache;

[0237] A second resource decryption module, used to decrypt the second device resource using the device password corresponding to the target device identifier when there is a target device identifier;

[0238] A third resource decryption module, used to decrypt the second device resource using a global password when there is no target device identifier;

[0239] The fourth password cache module is used to use the global password as the device password when the second device resource is successfully decrypted, and the fourth device identifier corresponding to the second device resource is correspondingly stored in the cache.

[0240] As an implementation manner of the embodiment of the present application, the above-mentioned application is a web application or a resource loading control, and the above-mentioned device may also include:

[0241] A second information sending module, used for the first program to send second linkage information to the second program, wherein the second linkage information is used to prompt to perform linkage decryption on the second device resource to be decrypted in the second program, the second linkage information includes the cached password of the first program, when the first program is a web application, the second program is a resource loading control, when the first program is a resource loading control, the second program is a web application;

[0242] The fourth resource decryption module is used to store the received password in the cache of the second program, and use the password in the cache of the second program to perform linkage decryption on the second device resource to be decrypted.

[0243] As an implementation method of an embodiment of the present application, the second linkage information includes a cached global password and / or device password information of the first program, the device password information includes a device password and a fifth device identifier corresponding to the device password; the fourth resource decryption module may include:

[0244] A second identification matching submodule is used to determine, for each second device resource to be decrypted, whether the fifth device identification matches the sixth device identification of the second device resource to be decrypted when the current decryption mode is the device decryption mode;

[0245] A second device password decryption submodule, configured to read the device password corresponding to the fifth device identification in the cache of the second program when the fifth device identification and the sixth device identification match, and decrypt the second device resource to be decrypted using the device password corresponding to the fifth device identification;

[0246] The second global password decryption submodule is used to read the global password from the cache of the second program for each second device resource to be decrypted when the current decryption mode is the global decryption mode, and decrypt each second device resource to be decrypted using the global password.

[0247] As an implementation of the embodiment of the present application, the above device may further include:

[0248] A password verification module, used for the first program to send the password stored in the cache of the first program to the second program according to a preset period, and to determine whether the password stored in the cache of the second program is consistent with the password stored in the cache of the first program;

[0249] The password updating module is used to update the password stored in the second program cache using the password stored in the first program cache when the password stored in the second program cache is inconsistent with the password stored in the first program cache.

[0250] As an implementation method of the embodiment of the present application, the web application communicates with the resource loading control through the middle layer service; the second information sending module may include:

[0251] The application information sending submodule is used for the web application to call the control interface provided by the middle layer service to send the second linkage information to the resource loading control, or,

[0252] The control information sending submodule is used for the resource loading control to send the second linkage information to the first listener pre-mounted by the middle layer service, so that the first listener sends the second linkage information to the web application.

[0253] As an implementation of the embodiment of the present application, the first device resource to be decrypted is mounted with a second listener; the first information sending module 1102 may include:

[0254] The information monitoring submodule is used to send the first linkage information to the second listener mounted on the loaded first device resource to be decrypted, so that the second listener triggers the execution of the step of linkage decryption of the first device resource to be decrypted using the password in the cache when receiving the first linkage information.

[0255] In the technical solution of the present application, the operations involved in obtaining, storing, using, processing, transmitting, providing and disclosing passwords are all carried out with the user's authorization.

[0256] The present application also provides an electronic device, such as Fig.12 As shown, including:

[0257] Memory 1201, used for storing computer programs;

[0258] The processor 1202 is used to implement the device resource decryption method described in any of the above embodiments when executing the program stored in the memory 1201.

[0259] It can be seen that in the embodiment of the present application, the application can store the password used to decrypt the first device resource in the cache when the first device resource is successfully decrypted, and then send the first linkage information to the loaded first device resource to be decrypted, wherein the first linkage information is used to prompt the first device resource to be decrypted to be linked decrypted, and then the password in the cache is used to perform linkage decryption on the first device resource to be decrypted. It can be seen that when the password for successfully decrypting the first device resource is obtained, the password can be directly used to perform linkage decryption on the first device resource to be decrypted in the application to obtain the decrypted device resource. In this way, when a device resource is successfully decrypted, the user can browse other device resources directly without having to decrypt each device resource with a password, thereby reducing the complexity of device resource decryption and improving the efficiency of device resource decryption, so that the user can quickly browse the encrypted device resources.

[0260] Furthermore, the electronic device may further include a communication bus and / or a communication interface, and the processor 1202, the communication interface, and the memory 1201 communicate with each other via the communication bus.

[0261] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0262] The communication interface is used for communication between the above electronic device and other devices.

[0263] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0264] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0265] In another embodiment provided by the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned device resource decryption methods are implemented.

[0266] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any device resource decryption method in the above embodiments.

[0267] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a solid-state hard disk (SSD), etc.

[0268] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0269] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0270] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A device resource decryption method, characterized in that: Applied to an application program, the method comprises: In the case where the first device resource is successfully decrypted, and the current decryption mode is a device decryption mode, the password used to decrypt the first device resource and the first device identifier corresponding to the first device resource are stored in the cache in correspondence, wherein the device decryption mode is a mode for performing linked decryption on device resources of the same device; When the current decryption mode is a global decryption mode, storing the password used to decrypt the first device resource as a global password in the cache, wherein the global decryption mode is a mode for performing linked decryption on device resources of all devices; Sending first linkage information to the loaded first device resource to be decrypted, wherein the first linkage information is used to prompt to perform linkage decryption on the first device resource to be decrypted; The first device resource to be decrypted is linked and decrypted using the password in the cache.

2. The method according to claim 1, characterized in that The current decryption mode is a device decryption mode, and the first linkage information includes the first device identifier; The step of using the password in the cache to perform linkage decryption on the first device resource to be decrypted includes: For each first device resource to be decrypted, determining whether the first device identifier matches the second device identifier of the first device resource to be decrypted; When the first device identifier and the second device identifier match, the password corresponding to the first device identifier is read from the cache, and the first device resource to be decrypted is decrypted using the password corresponding to the first device identifier.

3. The method according to claim 1, characterized in that: The current decryption mode is a global decryption mode; The step of using the password in the cache to perform linkage decryption on the first device resource to be decrypted includes: For each first device resource to be decrypted, reading the global password in the cache; Decrypt each of the first device resources to be decrypted using the global password.

4. The method according to claim 3, characterized in that The method further comprises: storing the password used to decrypt the first device resource as the device password and the first device identifier in the cache in correspondence with each other, and / or, After the step of decrypting each of the first device resources to be decrypted using the global password, the global password is used as the device password, and the third device identifier corresponding to the first device resource to be decrypted is stored in the cache; For the currently loaded second device resource, determining whether the device identification corresponding to the device password in the cache has a target device identification that matches the device identification corresponding to the second device resource; In the case where the target device identifier exists, decrypting the second device resource using the device password corresponding to the target device identifier; In the absence of the target device identifier, decrypting the second device resource using the global password; When the second device resource is successfully decrypted, the global password is used as the device password, and the fourth device identifier corresponding to the second device resource is correspondingly stored in the cache.

5. The method according to any one of claims 1 to 4, characterized in that: The application is a web application or a resource loading control, and the method further includes: The first program sends a second linkage information to the second program, wherein the second linkage information is used to prompt to perform linkage decryption on a second device resource to be decrypted in the second program, the second linkage information includes a cached password of the first program, when the first program is the web application, the second program is the resource loading control, and when the first program is the resource loading control, the second program is the web application; The received password is stored in the cache of the second program, and the password in the cache of the second program is used to perform linkage decryption on the second device resource to be decrypted.

6. The method according to claim 5, characterized in that The second linkage information includes the cached global password and / or device password information of the first program, and the device password information includes a device password and a fifth device identifier corresponding to the device password; The step of using the password in the cache of the second program to perform linkage decryption on the second device resource to be decrypted includes: When the current decryption mode is the device decryption mode, for each second device resource to be decrypted, determining whether the fifth device identifier matches the sixth device identifier of the second device resource to be decrypted; In the case where the fifth device identification and the sixth device identification match, reading the device password corresponding to the fifth device identification in the cache of the second program, and decrypting the second device resource to be decrypted using the device password corresponding to the fifth device identification; When the current decryption mode is the global decryption mode, for each second device resource to be decrypted, the global password is read from the cache of the second program, and each second device resource to be decrypted is decrypted using the global password.

7. The method according to claim 5, characterized in that The method further comprises: The first program sends the password stored in the cache of the first program to the second program according to a preset period, and determines whether the password stored in the cache of the second program is consistent with the password stored in the cache of the first program; When the password stored in the second program cache is inconsistent with the password stored in the first program cache, the password stored in the second program cache is updated using the password stored in the first program cache.

8. The method according to claim 5, characterized in that The web application communicates with the resource loading control through the middle layer service; The step of the first program sending the second linkage information to the second program includes: The web application calls the control interface provided by the middle layer service to send the second linkage information to the resource loading control, or, The resource loading control sends the second linkage information to the first listener pre-mounted by the middle layer service, so that the first listener sends the second linkage information to the web application.

9. The method according to any one of claims 1 to 4, characterized in that: The first device resource to be decrypted is mounted with a second listener; The step of sending the first linkage information to the loaded first device resource to be decrypted includes: The first linkage information is sent to the second listener mounted on the loaded first device resource to be decrypted, so that the second listener triggers the step of using the password in the cache to perform linkage decryption on the first device resource to be decrypted when receiving the first linkage information.

10. A device resource decryption device, characterized in that: Applied to an application program, the device comprises: A first password cache module, configured to store a password for decrypting the first device resource in a cache if the first device resource is successfully decrypted; A first information sending module, used for sending first linkage information to the loaded first device resource to be decrypted, wherein the first linkage information is used for prompting to perform linkage decryption on the first device resource to be decrypted; A first resource decryption module, configured to use the password in the cache to perform linkage decryption on the first device resource to be decrypted; The first password cache module includes: a device password storage submodule, for storing the password for decrypting the first device resource and the first device identifier corresponding to the first device resource in a cache in correspondence with each other when the current decryption mode is a device decryption mode, wherein the device decryption mode is a mode for performing linked decryption on device resources of the same device; The global password storage submodule is used to store the password used to decrypt the first device resource as a global password in the cache when the current decryption mode is the global decryption mode, wherein the global decryption mode is a mode for linked decryption of device resources of all devices.

11. The device according to claim 10, characterized in that The current decryption mode is a device decryption mode, and the first linkage information includes the first device identifier; The first resource decryption module includes: A first identification matching submodule, used for determining, for each first device resource to be decrypted, whether the first device identification matches the second device identification of the first device resource to be decrypted; The first device password decryption submodule is used to read the password corresponding to the first device identification from the cache when the first device identification and the second device identification match, and decrypt the first device resource to be decrypted using the password corresponding to the first device identification.

12. The device according to claim 10, characterized in that The current decryption mode is a global decryption mode; The first resource decryption module includes: A first global password reading submodule, configured to read the global password in the cache for each first device resource to be decrypted; The first global password decryption submodule is used to decrypt each first device resource to be decrypted using the global password.

13. The device according to claim 12, characterized in that The device also includes: a second password cache module, configured to store the password used to decrypt the first device resource as a device password and the first device identifier in a cache in correspondence with each other, and / or A third password cache module, configured to, after the step of decrypting each of the first device resources to be decrypted using the global password, use the global password as the device password, and store the third device identifier corresponding to the first device resource to be decrypted in a cache; A target device identification determination module, for determining, for a currently loaded second device resource, whether a device identification corresponding to the device password in the cache has a target device identification that matches the device identification corresponding to the second device resource; A second resource decryption module, configured to decrypt the second device resource using a device password corresponding to the target device identifier when the target device identifier exists; A third resource decryption module, configured to decrypt the second device resource using the global password when the target device identifier does not exist; The fourth password cache module is used to use the global password as the device password when the second device resource is successfully decrypted, and the fourth device identifier corresponding to the second device resource is correspondingly stored in the cache.

14. The device according to any one of claims 10 to 13, characterized in that: The application is a web application or a resource loading control, and the device further includes: A second information sending module, configured for the first program to send second linkage information to the second program, wherein the second linkage information is used to prompt the second program to perform linkage decryption on the second device resource to be decrypted in the second program, the second linkage information includes the cached password of the first program, when the first program is the web application, the second program is the resource loading control, and when the first program is the resource loading control, the second program is the web application; The fourth resource decryption module is used to store the received password in the cache of the second program, and use the password in the cache of the second program to perform linkage decryption on the second device resource to be decrypted.

15. The device according to claim 14, characterized in that The second linkage information includes the cached global password and / or device password information of the first program, and the device password information includes a device password and a fifth device identifier corresponding to the device password; The fourth resource decryption module comprises: A second identification matching submodule is used to determine, for each second device resource to be decrypted, whether the fifth device identification matches the sixth device identification of the second device resource to be decrypted when the current decryption mode is the device decryption mode; a second device password decryption submodule, configured to read a device password corresponding to the fifth device identification in the cache of the second program when the fifth device identification matches the sixth device identification, and decrypt the second device resource to be decrypted using the device password corresponding to the fifth device identification; The second global password decryption submodule is used to read the global password in the cache of the second program for each second device resource to be decrypted when the current decryption mode is the global decryption mode, and use the global password to decrypt each second device resource to be decrypted.

16. The device according to claim 14, characterized in that The device also includes: a password verification module, configured for the first program to send the password stored in the cache of the first program to the second program according to a preset period, and to determine whether the password stored in the cache of the second program is consistent with the password stored in the cache of the first program; The password updating module is used to update the password stored in the second program cache using the password stored in the first program cache when the password stored in the second program cache is inconsistent with the password stored in the first program cache.

17. The device according to claim 14, characterized in that The web application communicates with the resource loading control through the middle layer service; The second information sending module includes: An application information sending submodule is used for the web application to call the control interface provided by the middle layer service to send the second linkage information to the resource loading control, or, The control information sending submodule is used for the resource loading control to send the second linkage information to the first listener pre-mounted by the middle layer service, so that the first listener sends the second linkage information to the web application.

18. The device according to any one of claims 10 to 13, characterized in that: The first device resource to be decrypted is mounted with a second listener; the first information sending module includes: The information monitoring submodule is used to send the first linkage information to the second listener mounted on the loaded first device resource to be decrypted, so that the second listener triggers the execution of the step of using the password in the cache to perform linkage decryption on the first device resource to be decrypted when receiving the first linkage information.

19. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-9 when executing a program stored in a memory.

20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Data processing method, system and equipment and storage medium

    CN118041525A

  • Security system operatable on the portable storagedevice by USB interface

    KR1020070015853A

  • Data transfer and management system

    US20030177422A1