Methods for adding U-shield functions and U-shield

By connecting to external devices and performing target operations, the functions of the USB shield are expanded, solving the problem of limited functions of the USB shield, achieving the effect of being applicable to more scenarios and improving usage.

CN112306569BActive Publication Date: 2024-09-03SHENZHOU RONGAN TECH (BEIJING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010790975.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-07
Publication Date
2024-09-03
Estimated Expiration
2040-08-07

AI Technical Summary

Technical Problem

The existing USB shield has limited functions and is applicable to narrow application scenarios, resulting in low usage. It is necessary to increase the functions of the USB shield to be suitable for more scenarios.

Method used

Connect with external devices through multiplexing interfaces, start target applications, obtain and process target data, perform target operations, including data storage, encryption, decryption, signature and authentication, etc., to expand the functions of U-shield.

Benefits of technology

This enables U-Shield to have other functions besides online transactions and is suitable for more application scenarios, thus increasing the usage rate of U-Shield.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112306569B
    Figure CN112306569B
Patent Text Reader

Abstract

The present invention discloses a method for increasing the functions of a U-shield and a U-shield, and relates to the technical field of U-shield, and aims to increase the functions of the U-shield, so that the U-shield is applicable to more application scenarios, thereby improving the utilization rate of the U-shield. The method of the present invention comprises: after connecting to an external device through a multiplexing interface, starting a target application; obtaining target data at the external device through the target application; and performing a target operation in the target application based on the target data. The present invention is applicable to the process of increasing the functions of a U-shield.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of U shields, and in particular to a method for increasing the function of a U shield and a U shield. Background Art

[0002] With the continuous development of Internet technology and e-commerce, online banking technology has also developed rapidly. Due to the convenience and security of online banking, more and more users are starting to use online banking. Among them, U-Shield is an identity authentication device used to protect the security of users' online banking accounts. It can encrypt, decrypt and digitally sign online transaction data to ensure the confidentiality, authenticity, integrity and non-repudiation of online transactions, thereby ensuring the security of users' online banking account funds.

[0003] However, the existing U-shield only has the function of online transaction, which makes the application scenarios of U-shield narrow and the utilization rate of U-shield low. Therefore, how to make U-shield have more functions so that U-shield can be used in more application scenarios is crucial. Summary of the invention

[0004] In view of this, the present invention provides a method for increasing the functions of a U-shield and a U-shield, the main purpose of which is to increase the functions of the U-shield, so that the U-shield is suitable for more application scenarios, thereby improving the utilization rate of the U-shield.

[0005] In order to achieve the above object, the present invention mainly provides the following technical solutions:

[0006] In a first aspect, the present invention provides a method for adding a U-shield function, the method being applied to a U-shield, comprising:

[0007] After connecting to the external device through the multiplexing interface, start the target application;

[0008] Acquiring target data from the external device through the target application;

[0009] A target operation is performed in the target application based on the target data.

[0010] Optionally, the external device is a hardware device including a preset sensor, the target application is an extended application corresponding to the preset sensor, and the target data is target detection data; and performing a target operation in the target application based on the target data includes:

[0011] The target detection data is output and displayed in the extended application.

[0012] Optionally, the external device is a hardware device with a pre-installed application installed, and the target application is an original financial application; and performing a target operation in the target application based on the target data includes:

[0013] When the target data is data to be stored, storing the data to be stored in a secure storage space through the original financial application;

[0014] When the target data is data to be encrypted, encrypting the data to be encrypted using a preset key in the original financial application to obtain encrypted data, and sending the encrypted data to the external device;

[0015] When the target data is data to be decrypted, the preset key is used in the original financial application to decrypt the data to be decrypted to obtain decrypted data, and the decrypted data is sent to the external device;

[0016] When the target data is data to be signed, the preset key is used in the original financial application to sign the data to be signed to obtain a digital signature, and the digital signature is sent to the external device.

[0017] Optionally, the external device is a hardware device with a function of inputting identity authentication data, the target application is an original financial application, and the target data is identity authentication data; and performing a target operation in the target application based on the target data includes:

[0018] The authentication data is used in the original financial application for authentication.

[0019] Optionally, the starting the target application includes:

[0020] Receiving an application startup instruction, wherein the application startup instruction includes a unique identifier corresponding to the target application;

[0021] Determine whether there is an application that has been started;

[0022] If it exists, wait until the started application is closed and then start the target application;

[0023] If it does not exist, the target application is started.

[0024] Optionally, the method further includes:

[0025] Obtain the upgrade file corresponding to the target extended application through the original financial application;

[0026] The target extended application is upgraded in the original financial application using the upgrade file.

[0027] In a second aspect, the present invention further provides a U-shield, the U-shield comprising:

[0028] A startup unit, used to start a target application after connecting to an external device through a multiplexing interface;

[0029] A first acquisition unit, configured to acquire target data from the external device through the target application;

[0030] An execution unit is used to execute a target operation in the target application based on the target data.

[0031] Optionally, the external device is a hardware device including a preset sensor, the target application is an extended application corresponding to the preset sensor, and the target data is target detection data; and the execution unit includes:

[0032] An output module is used to output and display the target detection data in the extended application.

[0033] Optionally, the external device is a hardware device with a pre-installed application installed, and the target application is an original financial application; and the execution unit further includes:

[0034] A storage module, configured to store the data to be stored in a secure storage space through the original financial application when the target data is data to be stored;

[0035] An encryption module, used for, when the target data is data to be encrypted, using a preset key in the original financial application to encrypt the data to be encrypted to obtain encrypted data, and sending the encrypted data to the external device;

[0036] A decryption module, used for, when the target data is data to be decrypted, using the preset key in the original financial application to decrypt the data to be decrypted, so as to obtain decrypted data, and sending the decrypted data to the external device;

[0037] The signature module is used for, when the target data is data to be signed, using the preset key in the original financial application to sign the data to be signed, so as to obtain a digital signature, and sending the digital signature to the external device.

[0038] Optionally, the external device is a hardware device with a function of inputting identity authentication data, the target application is an original financial application, and the target data is identity authentication data; and the execution unit further includes:

[0039] A verification module is used to perform identity authentication in the original financial application using the identity authentication data.

[0040] Optionally, the starting unit includes:

[0041] A receiving module, configured to receive an application startup instruction, wherein the application startup instruction includes a unique identifier corresponding to the target application;

[0042] A judgment module, used to judge whether there is an application that has been started;

[0043] A first startup module, used for, when there is the started application, waiting for the started application to be closed and then starting the target application;

[0044] The second starting module is used to start the target application when the started application does not exist.

[0045] Optionally, the U-Shield further includes:

[0046] A second acquisition unit is used to acquire an upgrade file corresponding to the target extended application through the original financial application;

[0047] An upgrading unit is used to upgrade the target extended application using the upgrading file in the original financial application.

[0048] In a third aspect, the present invention further provides a U shield, which includes: a security micro control unit, a multiplexing interface, a plurality of buttons, a display screen, and a storage medium;

[0049] The multiplexing interface is connected to the safety micro control unit and is used to connect to an external device;

[0050] A plurality of the buttons are connected to the security microcontroller unit and are used to select a target application;

[0051] The display screen is connected to the security micro control unit and is used to output and display the target application;

[0052] The storage medium is connected to the security micro control unit and is used to store the target application;

[0053] The safety micro control unit is used to perform data interaction with the external device through the multiplexing interface, and the interaction steps are as follows:

[0054] After connecting to the external device through the multiplexing interface, starting the target application;

[0055] Acquiring target data from the external device through the target application;

[0056] A target operation is performed in the target application based on the target data.

[0057] In a fourth aspect, an embodiment of the present invention provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the method of adding a U-shield function described in the first aspect.

[0058] In a fifth aspect, an embodiment of the present invention provides a U-shield, which includes a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the method of adding U-shield functions described in the first aspect is executed.

[0059] By means of the above technical solution, the technical solution provided by the present invention has at least the following advantages:

[0060] The present invention provides a method for adding U-shield functions and a U-shield. The present invention can enable a user to connect the U-shield to an external device through a multiplexing interface and select a target application through multiple buttons on the U-shield or a smart phone, and then a security MCU starts the target application and performs data interaction with the external device through the target application, thereby obtaining target data at the external device, and finally executing a target operation in the target application based on the target data, so that the U-shield has other functions in addition to online transactions, thereby making the U-shield suitable for more application scenarios, and effectively improving the utilization rate of the U-shield.

[0061] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0063] Figure 1 A flow chart of a method for adding a USB shield function provided by an embodiment of the present invention is shown;

[0064] Figure 2 Another method flow chart for adding USB shield function provided by an embodiment of the present invention is shown;

[0065] Figure 3 A block diagram showing a composition of a USB shield provided by an embodiment of the present invention is shown;

[0066] Figure 4 A block diagram showing another type of USB shield provided by an embodiment of the present invention is shown;

[0067] Figure 5 A schematic diagram of the structure of a U-shield provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0068] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0069] The embodiment of the present invention provides a method for adding a USB shield function, such as Figure 1 As shown, the method is applied to the USB shield, including:

[0070] 101. After connecting to the external device through the multiplexing interface, start the target application.

[0071] The U shield may include, but is not limited to: a secure microcontroller unit (MCU), a multiplexing interface, multiple buttons, a display screen, and a storage medium; wherein the multiplexing interface is connected to the secure MCU for connecting to an external device; multiple buttons are connected to the secure MCU for selecting a target application; the display screen is connected to the secure MCU for outputting and displaying the target application; the storage medium is connected to the secure MCU for storing the target application. The multiplexing interface may include, but is not limited to: a USB-Uart multiplexing interface, a USB-I2C multiplexing interface, and the like.

[0072] The target application is specifically: the original financial application or the extended application. The original financial application is the application that comes with the U-Shield and is used to realize online transactions, and the extended application is the application that is subsequently installed in the U-Shield. It should be noted that in order to ensure the security of the U-Shield in online transactions, the original financial application and the extended application need to be stored in different storage spaces in the storage medium; the storage space corresponding to the original financial application and the storage space corresponding to the extended application are independent of each other; and the original financial application can access the storage space corresponding to the extended application, but the extended application cannot access the storage space corresponding to the original financial application.

[0073] In the embodiment of the present invention, the execution subject in each step is the security MCU in the U shield. After the user connects the U shield to the external device through the multiplexing interface, the user can select the target application through multiple buttons on the U shield or a smart phone. After the user selects the target application, the security MCU can receive the application startup instruction containing the unique identifier corresponding to the target application. At this time, the security MCU can start the target application according to the unique identifier contained in the application startup instruction and display the target application on the display screen.

[0074] 102. Obtain target data from the external device through the target application.

[0075] The external device may be, but is not limited to, a hardware device including a pre-installed sensor, a hardware device with a pre-installed application, a hardware device with a function of inputting identity authentication data, etc. When the external device is a hardware device including a pre-installed sensor, the target data is specifically: target detection data; when the external device is a hardware device with a pre-installed application, the target data is specifically: any one of data to be stored, data to be encrypted, data to be decrypted, or data to be signed; when the external device is a hardware device with a function of inputting identity authentication data, the target data is specifically: identity authentication data.

[0076] In the embodiment of the present invention, after the secure MCU starts the target application, the secure MCU can perform data exchange with the external device through the target application, thereby obtaining target data from the external device.

[0077] 103. Perform a target operation in a target application based on the target data.

[0078] In an embodiment of the present invention, after the security MCU obtains the target data from the external device through the target application, it can perform the target operation in the target application based on the target data, so that the U shield has other functions besides online transactions. For example, when the external device is a hardware device including an infrared temperature sensor (pre-installed sensor), the target data is the target detection data: user body temperature. After the security MCU obtains the target detection data: user body temperature, it can output and display the target detection data: user body temperature in the target application, so that the U shield has the function of detecting the user's body temperature, but is not limited to this.

[0079] The embodiment of the present invention provides a method for adding U-shield functions. The embodiment of the present invention can enable the security MCU to start the target application after the user connects the U-shield to an external device through a multiplexing interface and selects a target application through multiple buttons on the U-shield or a smart phone, and interacts with the external device through the target application, thereby obtaining target data at the external device, and finally executing the target operation in the target application based on the target data, so that the U-shield has other functions in addition to online transactions, thereby making the U-shield suitable for more application scenarios, and effectively improving the usage rate of the U-shield.

[0080] To explain in more detail below, the present invention provides another method for adding a USB shield function, as follows: Figure 2 As shown, the method includes:

[0081] 201. After connecting to the external device through the multiplexing interface, start the target application.

[0082] In the embodiment of the present invention, after the user connects the U shield to the external device through the multiplexing interface, the user can select the target application through multiple buttons on the U shield or the smart phone. After the user selects the target application, the security MCU can receive the application startup instruction containing the unique identifier corresponding to the target application. At this time, the security MCU can start the target application according to the unique identifier contained in the application startup instruction and display the target application on the display screen. The following will explain in detail how the security MCU starts the target application.

[0083] (1) Receive application startup instructions.

[0084] The application startup instruction includes a unique identifier corresponding to the target application.

[0085] In an embodiment of the present invention, after the user selects a target application through multiple buttons on the USB shield or a smart phone, the secure MCU can receive an application startup instruction containing a unique identifier corresponding to the target application.

[0086] (2) Determine whether there is an application that has been started.

[0087] In the embodiment of the present invention, after receiving the application startup instruction, the secure MCU needs to determine whether there is an application that has been started (ie, the application has been started).

[0088] (3) If it exists, wait for the launched application to close and then launch the target application.

[0089] In the embodiment of the present invention, when there is an already started application, the security MCU needs to wait for the already started application to be closed before starting the target application, so as to ensure the normal operation of the already started application.

[0090] (4) If it does not exist, start the target application.

[0091] In the embodiment of the present invention, when there is no launched application, the secure MCU can directly launch the target application.

[0092] 202. Obtain target data from the external device through the target application.

[0093] Regarding step 202, obtaining target data from an external device through a target application, please refer to Figure 1 The description of the corresponding parts of the embodiments of the present invention will not be repeated here.

[0094] 203. Execute a target operation in a target application based on the target data.

[0095] In the embodiment of the present invention, after the secure MCU obtains the target data from the external device through the target application, it can perform the target operation in the target application based on the target data, so that the U shield has other functions besides online transactions. The following will explain in detail how the secure MCU performs the target operation in the target application based on the target data.

[0096] (1) When the external device is a hardware device including a preset sensor, the target application is an extended application corresponding to the preset sensor, and the target data is the target detection data corresponding to the preset sensor. The specific process of the security MCU performing the target operation in the target application based on the target data is: outputting and displaying the target detection data in the extended application, wherein the preset sensor can be but is not limited to: infrared temperature sensor, temperature and humidity sensor, PM2.5 detection sensor, formaldehyde detection sensor, gas detection sensor, etc.

[0097] For example, when the external device is a hardware device that includes a temperature and humidity sensor, the target application is an extended application: a temperature and humidity detection application, and the target data is the target detection data: the current ambient temperature value and the current ambient humidity value. The specific process of the secure MCU performing the target operation in the target application based on the target data is: outputting and displaying the current ambient temperature value and the current ambient humidity value in the temperature and humidity detection application, thereby enabling the U-shield to have the function of detecting the current ambient temperature and the current ambient humidity, but is not limited to this.

[0098] Furthermore, in an embodiment of the present invention, after the security MCU obtains the target detection data from an external device including a preset sensor, it can also send the target detection data to a smart phone, a tablet computer or other terminal device for output display, or send the target detection data to a smart phone, a tablet computer or other terminal device for backup storage, and the embodiment of the present invention does not specifically limit this.

[0099] (2) When the external device is a hardware device with a pre-installed application, and the target application is an original financial application, if the target data is data to be stored, the specific process of the security MCU performing the target operation in the target application based on the target data is: storing the data to be stored in the secure storage space through the original financial application; if the target data is data to be encrypted, the specific process of the security MCU performing the target operation in the target application based on the target data is: using the pre-installed key in the original financial application to encrypt the data to be encrypted to obtain the encrypted data, and sending the encrypted data to the external device; if the target data is data to be decrypted, the specific process of the security MCU performing the target operation in the target application based on the target data is: using the pre-installed key in the original financial application to decrypt the data to obtain the decrypted data, and sending the decrypted data to the external device; if the target data is data to be signed, the specific process of the security MCU performing the target operation in the target application based on the target data is: using the pre-installed key in the original financial application to sign the data to be signed to obtain the digital signature, and sending the digital signature to the external device. This enables the U-Shield to provide data security storage, data encryption, data decryption and data signing for pre-installed applications in external devices.

[0100] It should be noted that in actual application, the secure MCU needs to first perform identity authentication on the external device. When the authentication is successful, it will execute the target operation (data security storage, data encryption, data decryption or data signing) in the original financial application based on the target data (data to be stored, data to be encrypted, data to be decrypted or data to be signed).

[0101] (3) When the external device is a hardware device with the function of inputting identity authentication data, the target application is the original financial application, and the target data is the identity authentication data. The specific process of the secure MCU performing the target operation in the target application based on the target data is: using the identity authentication data to perform identity authentication in the original financial application, wherein the external device may be, but is not limited to: a hardware device including a password keyboard, a hardware device including a fingerprint recognition module, a hardware device including a face recognition module, etc., and the identity authentication data may be, but is not limited to: an account password, fingerprint data, a face image, etc. Thus, the U-Shield has the function of inputting identity authentication data, and the user does not need to send the identity authentication data to the U-Shield through a computer or a smart phone, thereby further improving the security of the U-Shield in online transactions.

[0102] 204. Upgrade the target extended application program through the original financial application program.

[0103] The target extension application is any extension application installed in the USB shield.

[0104] In an embodiment of the present invention, the secure MCU can also provide a secure environment for upgrading the extended application (i.e., the target extended application) installed in the U-Shield through the original financial application. The specific process is: first, the upgrade file corresponding to the target extended application is obtained through the original financial application; then, the upgrade file corresponding to the target extended application is used in the original financial application to upgrade the target extended application.

[0105] It should be noted that, in actual application, after the security MCU obtains the upgrade file corresponding to the target extension application through the original financial application, it is also necessary to verify the integrity of the upgrade file corresponding to the target extension application, and verify the source signature of the upgrade file corresponding to the target extension application, so as to ensure the security and integrity of the upgrade file corresponding to the target extension application, but not limited to this.

[0106] In order to achieve the above-mentioned purpose, according to another aspect of the present invention, an embodiment of the present invention further provides a storage medium, wherein the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above-mentioned method of adding the U-shield function.

[0107] In order to achieve the above-mentioned purpose, according to another aspect of the present invention, an embodiment of the present invention further provides a U-shield, which includes a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the method of adding the U-shield function described above is executed.

[0108] Furthermore, as a response to the above Figure 1 and Figure 2 In order to realize the method shown in the figure, another embodiment of the present invention further provides a U shield. This device embodiment corresponds to the aforementioned method embodiment. For the sake of ease of reading, this device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the U shield in this embodiment can correspond to all the contents of the aforementioned method embodiment. Figure 3 As shown, the U shield includes:

[0109] A startup unit 31, used to start the target application after connecting to the external device through the multiplexing interface;

[0110] A first acquisition unit 32, configured to acquire target data from the external device through the target application;

[0111] The execution unit 33 is configured to execute a target operation in the target application based on the target data.

[0112] Further, such as Figure 4 As shown, the external device is a hardware device including a preset sensor, the target application is an extended application corresponding to the preset sensor, and the target data is target detection data; the execution unit 33 includes:

[0113] The output module 331 is used to output and display the target detection data in the extended application.

[0114] Further, such as Figure 4 As shown, the external device is a hardware device with a pre-installed application installed, and the target application is an original financial application; the execution unit 33 also includes:

[0115] A storage module 332, configured to store the data to be stored in a secure storage space through the original financial application when the target data is data to be stored;

[0116] An encryption module 333 is used for, when the target data is data to be encrypted, using a preset key in the original financial application to encrypt the data to be encrypted to obtain encrypted data, and sending the encrypted data to the external device;

[0117] A decryption module 334, configured to, when the target data is data to be decrypted, use the preset key in the original financial application to decrypt the data to be decrypted, so as to obtain decrypted data, and send the decrypted data to the external device;

[0118] The signature module 335 is used for, when the target data is data to be signed, using the preset key in the original financial application to sign the data to be signed, so as to obtain a digital signature, and sending the digital signature to the external device.

[0119] Further, such as Figure 4 As shown, the external device is a hardware device with a function of inputting identity authentication data, the target application is an original financial application, and the target data is identity authentication data; the execution unit 33 also includes:

[0120] The verification module 336 is used to perform identity verification in the original financial application using the identity verification data.

[0121] Further, such as Figure 4 As shown, the starting unit 31 includes:

[0122] The receiving module 311 is used to receive an application startup instruction, wherein the application startup instruction includes a unique identifier corresponding to the target application;

[0123] A determination module 312 is used to determine whether there is an application that has been started;

[0124] The first starting module 313 is used for starting the target application after the started application is closed when the started application exists;

[0125] The second starting module 314 is used to start the target application when the started application does not exist.

[0126] Further, such as Figure 4 As shown, the U shield also includes:

[0127] A second acquisition unit 34 is used to acquire an upgrade file corresponding to the target extended application through the original financial application;

[0128] The upgrading unit 35 is used to upgrade the target extended application using the upgrading file in the original financial application.

[0129] The present invention provides a U shield, such as Figure 5 As shown, it includes: a security micro control unit 1, a multiplexing interface 2, a plurality of buttons 3, a display screen 4, and a storage medium 5;

[0130] The multiplexing interface 2 is connected to the safety micro control unit 1 and is used to connect to an external device;

[0131] A plurality of buttons 3 are connected to the security micro control unit 1 and are used to select a target application;

[0132] The display screen 4 is connected to the security micro control unit 1 and is used to output and display the target application;

[0133] The storage medium 5 is connected to the security micro control unit 1 and is used to store the target application program;

[0134] The security micro control unit 1 is used to perform data interaction with the external device through the multiplexing interface 2. The interaction steps are as follows:

[0135] After connecting to the external device via the multiplexing interface 2, starting the target application;

[0136] Acquiring target data from the external device through the target application;

[0137] A target operation is performed in the target application based on the target data.

[0138] Furthermore, in the embodiment of the present invention, the multiple buttons 3 not only have the function of controlling the security microcontroller unit 1 to select the target application, but also have the function of controlling the security microcontroller unit 1 to perform other corresponding operations, which is not specifically limited in the embodiment of the present invention.

[0139] The embodiment of the present invention provides a method for adding U-shield functions and a U-shield. The embodiment of the present invention can enable a user to connect the U-shield to an external device through a multiplexing interface and select a target application through multiple buttons on the U-shield or a smart phone. The security MCU starts the target application and interacts with the external device through the target application, thereby obtaining target data at the external device, and finally executing a target operation in the target application based on the target data, so that the U-shield has other functions in addition to online transactions, thereby making the U-shield suitable for more application scenarios, and effectively improving the usage rate of the U-shield.

[0140] The U shield includes a processor and a memory. The above-mentioned startup unit, first acquisition unit and execution unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0141] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the functions of the USB shield can be increased by adjusting the kernel parameters, so that the USB shield can be applied to more application scenarios, thereby improving the utilization rate of the USB shield.

[0142] An embodiment of the present invention provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above-mentioned method of adding a U-shield function.

[0143] The storage medium may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.

[0144] An embodiment of the present invention also provides a U-shield, which includes a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the method of adding the U-shield function described above is executed.

[0145] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, the following steps are implemented:

[0146] After connecting to the external device through the multiplexing interface, start the target application;

[0147] Acquiring target data from the external device through the target application;

[0148] A target operation is performed in the target application based on the target data.

[0149] Further, the external device is a hardware device including a preset sensor, the target application is an extended application corresponding to the preset sensor, and the target data is target detection data; and performing a target operation in the target application based on the target data includes:

[0150] The target detection data is output and displayed in the extended application.

[0151] Further, the external device is a hardware device with a pre-installed application installed, and the target application is an original financial application; and performing a target operation in the target application based on the target data includes:

[0152] When the target data is data to be stored, storing the data to be stored in a secure storage space through the original financial application;

[0153] When the target data is data to be encrypted, encrypting the data to be encrypted using a preset key in the original financial application to obtain encrypted data, and sending the encrypted data to the external device;

[0154] When the target data is data to be decrypted, the preset key is used in the original financial application to decrypt the data to be decrypted to obtain decrypted data, and the decrypted data is sent to the external device;

[0155] When the target data is data to be signed, the preset key is used in the original financial application to sign the data to be signed to obtain a digital signature, and the digital signature is sent to the external device.

[0156] Further, the external device is a hardware device with a function of inputting identity authentication data, the target application is an original financial application, and the target data is identity authentication data; and performing a target operation in the target application based on the target data includes:

[0157] The authentication data is used in the original financial application for authentication.

[0158] Furthermore, the starting of the target application includes:

[0159] Receiving an application startup instruction, wherein the application startup instruction includes a unique identifier corresponding to the target application;

[0160] Determine whether there is an application that has been started;

[0161] If it exists, wait until the started application is closed and then start the target application;

[0162] If it does not exist, the target application is started.

[0163] Furthermore, the method further comprises:

[0164] Obtain the upgrade file corresponding to the target extended application through the original financial application;

[0165] The target extended application is upgraded in the original financial application using the upgrade file.

[0166] The present application also provides a computer program product which, when executed on a data processing device, is suitable for executing program code that initializes the following method steps: starting a target application after connecting to an external device through a multiplexing interface; obtaining target data at the external device through the target application; and performing a target operation in the target application based on the target data.

[0167] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0168] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0169] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0170] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0171] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0172] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0173] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0174] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0175] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0176] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for adding a USB shield function, characterized in that: The method is applied to a USB shield, including: After connecting to the external device through the multiplexing interface, start the target application; Acquiring target data from the external device through the target application; performing a target operation in the target application based on the target data; Obtaining an upgrade file corresponding to the target extension application through the original financial application, verifying the integrity of the upgrade file corresponding to the target extension application, and verifying the source signature of the upgrade file corresponding to the target extension application, wherein the original financial application can access the storage space corresponding to the target extension application, and the target extension application cannot access the storage space corresponding to the original financial application; Using the upgrade file in the original financial application to upgrade the target extended application; The external device is a hardware device with a function of inputting identity authentication data, the target application is an original financial application, and the target data is identity authentication data; and performing a target operation in the target application based on the target data includes: The authentication data is used in the original financial application for authentication.

2. The method according to claim 1, characterized in that The external device is a hardware device including a preset sensor, the target application is an extended application corresponding to the preset sensor, and the target data is target detection data; The performing a target operation in the target application based on the target data comprises: The target detection data is output and displayed in the extended application.

3. The method according to claim 1, characterized in that The external device is a hardware device with a pre-installed application installed, and the target application is an original financial application; and performing a target operation in the target application based on the target data includes: When the target data is data to be stored, storing the data to be stored in a secure storage space through the original financial application; When the target data is data to be encrypted, encrypting the data to be encrypted using a preset key in the original financial application to obtain encrypted data, and sending the encrypted data to the external device; When the target data is data to be decrypted, the preset key is used in the original financial application to decrypt the data to be decrypted to obtain decrypted data, and the decrypted data is sent to the external device; When the target data is data to be signed, the preset key is used in the original financial application to sign the data to be signed to obtain a digital signature, and the digital signature is sent to the external device.

4. The method according to claim 1, characterized in that: The launching of the target application comprises: Receiving an application startup instruction, wherein the application startup instruction includes a unique identifier corresponding to the target application; Determine whether there is an application that has been started; If it exists, wait until the started application is closed and then start the target application; If it does not exist, the target application is started.

5. A U-shield, characterized in that: include: A startup unit, used to start a target application after connecting to an external device through a multiplexing interface; A first acquisition unit, configured to acquire target data from the external device through the target application; An execution unit, configured to execute a target operation in the target application based on the target data; a second acquisition unit, configured to acquire an upgrade file corresponding to a target extension application through an original financial application, verify the integrity of the upgrade file corresponding to the target extension application, and verify the source signature of the upgrade file corresponding to the target extension application, wherein the original financial application can access a storage space corresponding to the target extension application, and the target extension application cannot access the storage space corresponding to the original financial application; An upgrading unit, configured to upgrade the target extended application using the upgrading file in the original financial application; An execution unit, wherein the external device is a hardware device having a function of inputting identity authentication data, the target application is an original financial application, and the target data is identity authentication data; The performing a target operation in the target application based on the target data comprises: The authentication data is used in the original financial application for authentication.

6. A U-shield, characterized in that: The U shield includes: a secure micro control unit, a multiplexing interface, multiple buttons, a display screen, and a storage medium; The multiplexing interface is connected to the safety micro control unit and is used to connect to an external device; A plurality of the buttons are connected to the security microcontroller unit and are used to select a target application; The display screen is connected to the security micro control unit and is used to output and display the target application; The storage medium is connected to the security micro control unit and is used to store the target application; The safety micro control unit is used to perform data interaction with the external device through the multiplexing interface, and the interaction steps are as follows: After connecting to the external device through the multiplexing interface, starting the target application; Acquiring target data from the external device through the target application; performing a target operation in the target application based on the target data; Obtaining an upgrade file corresponding to the target extension application through the original financial application, verifying the integrity of the upgrade file corresponding to the target extension application, and verifying the source signature of the upgrade file corresponding to the target extension application, wherein the original financial application can access the storage space corresponding to the target extension application, and the target extension application cannot access the storage space corresponding to the original financial application; Using the upgrade file in the original financial application to upgrade the target extended application; The external device is a hardware device with a function of inputting identity authentication data, the target application is an original financial application, and the target data is identity authentication data; and performing a target operation in the target application based on the target data includes: The authentication data is used in the original financial application for authentication.

7. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the method for adding a U-shield function as described in any one of claims 1 to 4.

8. A U-shield, characterized in that: The U shield includes a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the method for adding U shield function described in any one of claims 1 to 4 is executed.