Authentication system and authentication method
By using the controller and processor in the electronic device to perform digest file operations, the verification of the universal second factor protocol is achieved, solving the problem of purchasing additional special key devices, reducing costs and increasing security and willingness to use.
Patent Information
- Application Number
- CN202010488875.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-05-20
- Filing Date
- 2020-06-02
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-09-03
AI Technical Summary
Users need to purchase an additional special physical key device to support the verification of the universal second factor protocol, which increases the cost and reduces the willingness to use it.
Provide an authentication system and method that uses the controller, processor and key module in the electronic device to verify the universal second factor protocol through summary file operations in the binding and verification stages, avoiding the need to purchase additional special keys. device requirements.
It reduces the cost of universal second-factor protocol verification, increases users' willingness to use it, and improves the security of server device services.
Smart Images

Figure CN112069493B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an authentication system and an authentication method, and in particular to an authentication system and an authentication method developed based on the Universal 2nd Factor (U2F) protocol formulated by the FIDO (Fast Identity Online Alliance). Background Art
[0002] With the rapid development of network technology, many important information transmissions, business transactions or financial transactions rely on the network to provide services. In order to improve the security of network use, many websites have begun to support the verification method of the Universal 2nd Factor (U2F) protocol. However, users must purchase an additional physical key device specially designed and manufactured for the Universal 2nd Factor protocol in order to use the verification service of the Universal 2nd Factor protocol supported by the server website through a computer. This will increase the cost of users and reduce their willingness to use. Summary of the invention
[0003] In view of this, the present invention provides an authentication system and an authentication method, which not only allow users to use the verification service of the universal second factor protocol supported by the website, but also reduce the user's usage cost, thereby increasing the user's willingness to use.
[0004] The authentication system of the present invention includes an electronic device. The electronic device includes a controller, a processor and a key module. The controller has a summary table. The processor is coupled to the controller and is used to execute an application. The key module is coupled to the controller and is controlled by the controller. In the binding stage, the application generates a summary file based on the key factor information and stores the summary file in the summary table of the electronic device. In the verification stage, the application determines whether the controller corresponds to the binding device based on the summary file and the key factor information. If the controller corresponds to the binding device, then in the authentication stage, the controller reacts to the pressing of the key module and performs an authentication operation of the universal second factor service with the server device according to the summary file corresponding to the binding device.
[0005] The authentication method of the present invention includes the following steps. In the binding stage, an application executed by a processor of an electronic device generates a summary file according to key factor information and a selection strategy, and stores the summary file in a summary table of a controller of the electronic device. In the inspection stage, an application of the electronic device determines whether the controller corresponds to a binding device according to the summary file and key factor information. If the controller corresponds to a binding device, in the authentication stage, the controller reacts to the pressing of a key module of the electronic device and performs authentication operation of a universal second factor service with a server device according to the summary file corresponding to the binding device.
[0006] Based on the above, the authentication system and authentication method proposed by the present invention can allow users to use the authentication of the universal second factor protocol supported by the server device to improve the security of using the server device service. In addition, the mobile storage device / mobile communication device in the authentication system proposed by the present invention can be any type of existing portable storage device / portable communication device, and the authentication method can be executed by an electronic device, so the user does not need to purchase an additional physical key device specially designed and manufactured for the universal second factor protocol. In this way, the cost of using the universal second factor protocol for authentication can be effectively reduced, thereby increasing the user's willingness to use it.
[0007] In order to make the above features and advantages of the present invention more clearly understood, embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The accompanying drawings, which are part of the specification of the present invention, illustrate exemplary embodiments of the present invention and, together with the description of the specification, serve to explain the principles of the present invention.
[0009] Figure 1 is a block diagram and application diagram of an authentication system according to an embodiment of the present invention;
[0010] Figure 2 is a flowchart of the steps of an authentication method shown in accordance with an embodiment of the present invention;
[0011] Figure 3 is a block diagram of an electronic device according to an embodiment of the present invention;
[0012] Figure 4 According to an embodiment of the present invention, Figure 2 Detailed step flow chart of step S210;
[0013] Figure 5 According to an embodiment of the present invention, Figure 2 Detailed step flow chart of step S220;
[0014] Figure 6 According to another embodiment of the present invention, Figure 2 Detailed step flow chart of step S210;
[0015] Figure 7 According to another embodiment of the present invention, Figure 2 Detailed step flow chart of step S220;
[0016] Figure 8 is a flowchart of detailed steps of applying authentication to a mobile communication device according to an embodiment of the present invention;
[0017] Fig. 9 is a flowchart of detailed steps of a controller authentication application according to an embodiment of the present invention;
[0018] Fig.10 According to an embodiment of the present invention, Figure 2 Detailed step flow chart of step S240;
[0019] Fig.11 According to an embodiment of the present invention, Figure 2 Detailed step flow chart of step S250. DETAILED DESCRIPTION
[0020] Reference will now be made in detail to exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Whenever possible, the same reference numerals are used in the drawings and the description to refer to the same or like parts.
[0021] In order to make the content of the present invention more understandable, the following embodiments are specifically cited as examples on which the present invention can be implemented. In addition, wherever possible, components / members with the same reference numerals in the drawings and embodiments represent the same or similar components.
[0022] Figure 1 is a block diagram and application diagram of an authentication system according to an embodiment of the present invention. Figure 1 The authentication system 100 at least includes an electronic device 140 , but in other embodiments, the authentication system 100 may also include one of a mobile storage device 120 and a mobile communication device 130 .
[0023] The mobile storage device 120 is used to store the key identification file KDF as a physical key device. The electronic device 140 can be plugged into the mobile storage device 120. The electronic device 140 can perform related operations of the universal second factor according to the key identification file KDF stored in the mobile storage device 120, and can respond to the pressing of the key module of the electronic device 140 to activate the verification service of the universal second factor protocol supported by the server device 900, so that the user of the electronic device 140 can use the verification service of the universal second factor protocol supported by the server device 900.
[0024] The mobile communication device 130 is used to transmit a biometric identification confirmation result BIR, wherein the biometric identification confirmation result BIR is, for example, a facial recognition result or a fingerprint recognition result, but the embodiment of the present invention is not limited thereto. The electronic device 140 is used to connect to the mobile communication device 130 in a wired or wireless manner. The electronic device 140 can perform related operations of the universal second factor according to the biometric identification confirmation result BIR provided by the mobile communication device 130, and can respond to the pressing of the key module of the electronic device 140 to enable the verification service of the universal second factor protocol supported by the server device 900, so that the user of the electronic device 140 can use the verification service of the universal second factor protocol supported by the server device 900.
[0025] Furthermore, when the electronic device 140 is not connected to an external electronic device (such as the mobile storage device 120 and the mobile communication device 130), the electronic device 140 can perform relevant operations of the universal second factor based on its own information, and can respond to the pressing of the key module of the electronic device 140 to enable the authentication service of the universal second factor protocol supported by the server device 900, so that the user of the electronic device 140 can use the authentication service of the universal second factor protocol supported by the server device 900.
[0026] Therefore, even if the user's login account and password on the server device 900 are obtained by others, as long as the bound interface entity device (such as the electronic device 140) is not obtained by others, or the corresponding authentication entity device (such as the mobile storage device 120 and the mobile communication device 130) is not obtained by others, the login account and password entered by others will not be able to pass the verification of the universal second factor protocol of the server device 900, and therefore cannot log in to the user's account.
[0027] In one embodiment of the present invention, the mobile storage device 120 may be, for example, a universal serial bus (USB) flash drive or a combination of a USB card reader and a memory card, and the mobile communication device 130 may be, for example, a mobile phone or a tablet computer, but the present invention is not limited thereto. In fact, the mobile storage device 120 may be any type of existing portable storage device, and the mobile communication device 130 may be any type of existing portable communication device, thereby reducing the user's usage cost.
[0028] In an embodiment of the present invention, the electronic device 140 may be, for example, a notebook computer, but the present invention is not limited thereto.
[0029] In one embodiment of the present invention, the electronic device 140 may communicate with the server device 900 via wired communication or wireless communication.
[0030] In one embodiment of the present invention, the authentication process of the authentication system 100 may include a binding phase, a verification phase, and an authentication phase, but is not limited thereto. In the binding phase, the electronic device 140 used to perform the verification of the universal second factor protocol may be bound, and one of the mobile storage device 120 and the mobile communication device 130 may be bound to the electronic device 140. When the electronic device 140 is plugged into the mobile storage device 120, in the binding phase, the electronic device 140 may generate a key identification file KDF according to the key factor information KFI0 of the electronic device 140, and transmit the key identification file KDF to the mobile storage device 120. In addition, in the binding phase, the electronic device 140 may generate a digest file DGF according to the file status of the key identification file KDF and the key factor information KFI0 of the mobile storage device 120, and store the digest file DGF in a controller (described later) of the electronic device 140, wherein the controller stores a digest table. In this way, the mobile storage device 120 and the electronic device 140 are bound to each other through the key identification file KDF and the digest file DGF.
[0031] When the electronic device 140 is connected to the mobile communication device 130, during the binding phase, the mobile communication device 130 will provide the first public key UK1 and key factor information KFI2 to the electronic device 140. The key factor information KFI2 includes, for example, the account currently logged in by the mobile communication device 130 (e.g., an e-mail address), the International Mobile Equipment Identity (IMEI) code of the mobile communication device 130, the current telephone number of the user identity module (SIM) card, and the random information code in the mobile communication device 130 used for binding. In addition, during the binding phase, the electronic device 140 can generate a summary file DGF based on the key factor information KFI2 of the mobile communication device 130 and the key factor information KFI0 of the mobile storage device 120, and store the summary file DGF in the summary table of the electronic device 140. In this way, the mobile communication device 130 and the electronic device 140 are bound to each other through the first public key UK1 and the summary file DGF.
[0032] When the electronic device 140 is not connected to an external electronic device, during the binding phase, the electronic device 140 may generate a summary file DGF according to its key factor information KFI0 and store the summary file DGF in a summary table of the electronic device 140 to pretend to be bound to a virtual device.
[0033] In addition, when the electronic device 140 is plugged into the mobile storage device 120, the electronic device 140 can check whether the mobile storage device 120 and the electronic device 140 are bound to each other during the verification phase. Specifically, the electronic device 140 can read the key identification file KDF from the mobile storage device 120, and check whether the key identification file KDF in the mobile storage device 120 is valid based on the summary file DGF and the key factor information KFI0 of the electronic device 140. If the electronic device 140 verifies that the key identification file KDF is valid, it means that the mobile storage device 120 and the electronic device 140 are bound to each other, that is, it is determined that the electronic device 140 corresponds to the binding device (that is, the mobile storage device 120). Then, during the authentication phase, the electronic device 140 can perform the authentication operation of the universal second factor service with the server device 900 based on the summary file DGF corresponding to the key identification file KDF.
[0034] When the electronic device 140 is connected to the mobile communication device 130, during the verification phase, the electronic device 140 can verify whether the mobile communication device 130 and the electronic device 140 are bound to each other. In detail, the mobile communication device 130 can receive the first authentication query CHS1 from the electronic device 140, and return the first signature SIG1 to the electronic device 140 according to the first authentication query CHS1. The electronic device 140 confirms whether the first signature SIG1 corresponds to the first public key UK1 to confirm whether the mobile communication device 130 is a bound device. If the mobile communication device 130 is a bound device, the electronic device 140 can perform an authentication operation of the universal second factor service with the server device 900 according to the digest file DGF corresponding to the mobile communication device 130.
[0035] When the electronic device 140 is not connected to an external electronic device, during the verification phase, the electronic device 140 can confirm whether the electronic device 140 corresponds to a bound device (here, a virtual device) based on the key factor information KFI0. Generally speaking, the electronic device 140 will be confirmed to correspond to the bound device, and then the electronic device 140 can perform a universal second factor service authentication operation with the server device 900 based on the summary file DGF.
[0036] In one embodiment of the present invention, the authentication process of the authentication system 100 may further include a registration phase. Specifically, if the electronic device 140 is confirmed to correspond to the binding device, then in the registration phase, the electronic device 140 may register the universal second factor service with the server device 900 according to the corresponding summary file DGF. As long as the electronic device 140 completes the registration of the universal second factor service with the server device 900 according to the summary file DGF, then in the authentication phase, the electronic device 140 may pass the authentication of the universal second factor service with the server device 900 according to the corresponding summary file DGF.
[0037] Figure 2 is a flowchart of the steps of the authentication method shown in accordance with an embodiment of the present invention. Figure 1 and Figure 2 , the authentication method of this exemplary embodiment includes the following steps. First, regardless of whether the mobile storage device 120 is plugged into the electronic device 140 or whether the mobile communication device 130 is connected to the electronic device 140, the user can decide whether to bind the electronic device 140 to an external device (such as the mobile storage device 120 or the mobile communication device 130) or a virtual device, as shown in step S200. If the decision result of step S200 is yes, step S210 is executed, otherwise step S220 is executed. In the binding stage shown in step S210, a summary file DGF is generated by the application of the electronic device 140 according to the key factor information KFI0 (or more preferably one of the key factor information KFI1 and KFI2) and the selection strategy SEP, and the summary file DGF and the selection strategy SEP are stored in the summary table in the controller of the electronic device 140.
[0038] In addition, in the inspection phase shown in step S220, the application of the electronic device 140 determines whether the controller of the electronic device 140 corresponds to the binding device according to the summary file DGF and one of the key factor information KFI0, KFI1 and KFI2. If the controller of the electronic device 140 corresponds to the binding device, it is determined whether to register for the universal second factor service with the server device 900, as shown in step S230. If the determination result of step S230 is yes, then in the registration phase shown in step S240, the universal second factor service is registered with the server device 900 according to the summary file DGF through the electronic device 140. If the determination result of step S230 is no, then in the authentication phase shown in step S250, the controller of the electronic device 140 responds to the pressing of the key module of the electronic device 140 and performs the authentication operation of the universal second factor service with the server device 900 according to the summary file DGF of the binding device.
[0039] Figure 3 is a block diagram of an electronic device according to an embodiment of the present invention. Figure 3 , the electronic device 140 may include a controller 141, a processor 142, and a key module 144, but the present invention is not limited thereto. The controller 141 may include a storage element 143 and have an identifier SN. The key module 144 is coupled to the controller 141 and is controlled by the controller 141. The processor 142 is coupled to the controller 141. The processor 142 may execute an application AP, and execute the application AP through the application AP. Figure 2 Steps S210 and S220, and the controller 141 can execute the steps S210 and S220 through its firmware. Figure 2 Steps S240 and S250.
[0040] In an embodiment of the present invention, the processor 142 may be, for example, a central processing unit (CPU), but the present invention is not limited thereto.
[0041] In one embodiment of the present invention, the controller 141 may be, for example, a microcontroller, but the present invention is not limited thereto.
[0042] In an embodiment of the present invention, the storage element 143 may be, for example, a serial peripheral interface (SPI) flash memory, but the present invention is not limited thereto.
[0043] In an embodiment of the present invention, the electronic device 140 may further include a communication module. The communication module is coupled to the controller 141. The controller 141 may communicate with the server device 900 via the communication module.
[0044] Figure 4 According to an embodiment of the present invention, Figure 2 Please refer to the detailed step flow chart of step S210 (i.e. binding stage). Figure 1 , Figure 3 and Figure 4 , wherein the key factor information KFI0 of the electronic device 140 may include the identifier SN of the controller 141, the identifier AP of the above application, and the login account LID of the electronic device 140, but the present invention is not limited thereto. Figure 4 As shown, step S210 may include detailed steps S2100, S2102, S2104, S2106, and S2108. First, in step S2100, the application AP of the processor 142 may perform a hash operation according to the identifier SN of the controller 141, the identifier SAP of the application AP, and the login account LID of the electronic device 140 to generate a key identification file KDF. Then, in step S2102, the application AP of the processor 142 may transmit the key identification file KDF to the mobile storage device 120.
[0045] In one embodiment of the present invention, the identifier SN of the controller 141 may be, for example, the manufacturing number of the controller 141, which is read-only and unique, and is used to identify the controller 141, but the present invention is not limited thereto. In one embodiment of the present invention, the identifier SAP of the application AP may be, for example, a globally unique identifier (GUID), but the present invention is not limited thereto. In one embodiment of the present invention, the login account LID of the electronic device 140 may be, for example, the login account of the operating system of the electronic device 140, but the present invention is not limited thereto.
[0046] Since the key identification file KDF in the mobile storage device 120 is related to the identifier SN of the controller 141, the identifier SAP of the application AP, and the login account LID of the electronic device 140, even if the mobile storage device 120 is stolen, the key identification file KDF in the mobile storage device 120 cannot be used in other electronic devices. This is because the controller identifier and application identifier of other electronic devices are not the same as the controller identifier SN and the identifier SAP of the application AP of the original electronic device 140, and the login account of other electronic devices may also be different from the login account LID of the original electronic device 140, so the key identification file KDF in the mobile storage device 120 will be deemed invalid in other electronic devices. In this way, the security of the authentication system 100 can be improved.
[0047] In addition, in step S2104, the application AP of the processor 142 may randomly generate a selection strategy SEP. Then, in step S2106, the application AP of the processor 142 may select at least one of the file status of the key identification file KDF and the key factor information KFI1 of the mobile storage device 120 according to the selection strategy SEP to perform a hash operation to generate a summary file DGF. Thereafter, in step S2108, the processor 142 may store the summary file DGF and the corresponding selection strategy SEP in a summary table in the encrypted storage area 1432 of the storage element 143.
[0048] Furthermore, the file status of the key identification file KDF may include at least one of the creation date, modification date, access date, the start position of the file cluster, and the number of the file cluster of the key identification file KDF. In addition, the key factor information KFI1 of the mobile storage device 120 may include at least one of the supplier identifier of the mobile storage device 120, the product identifier of the mobile storage device 120, and the remaining storage space size of the mobile storage device 120.
[0049] For example, if the selection strategy SEP randomly generated by the application AP of the processor 142 is the creation date of the key identification file KDF, the remaining storage space size of the mobile storage device 120, and the number of file clusters of the key identification file KDF, then the application AP of the processor 142 will select the creation date of the key identification file KDF, the remaining storage space size of the mobile storage device 120, and the number of file clusters of the key identification file KDF for hash operation to generate a summary file DGF, and store the summary file DGF and the corresponding selection strategy SEP in the encrypted storage area 1432 of the storage device 143.
[0050] It can be understood that, since the selection strategy SEP for generating the summary file DGF is randomly generated by the application AP of the processor 142, and the summary file DGF generated by the processor 142 and the selection strategy SEP of the summary file DGF are stored in the encrypted storage area 1432, others cannot know the content of the summary file DGF corresponding to the key identification file KDF, nor can they know how the summary file DGF is generated (because the selection strategy SEP of the summary file DGF cannot be known), so the summary file DGF can be prevented from being copied by others. In addition, even if the key identification file KDF is stolen and copied to another mobile storage device, the creation date, modification date, access date and the starting position of the file cluster of the copied key identification file are different from those of the original key identification file, and the supplier identifier, product identifier and remaining storage space size of the other mobile storage device and the original mobile storage device cannot be exactly the same. Therefore, in the inspection stage, the application AP of the processor 142 can check that the copied key identification file is invalid according to the summary file DGF and the selection strategy SEP. In this way, the security of the authentication system 100 can be improved.
[0051] Incidentally, the mobile storage device 120 can be bound to a plurality of different electronic devices, and therefore, one or more key identification files can be stored in the mobile storage device 120, wherein these key identification files correspond to different electronic devices, or different login accounts, or different electronic devices and different login accounts. Similarly, the electronic device 140 can be bound to a plurality of different mobile storage devices, and therefore, the number of combinations of summary files and selection strategies stored in the encryption storage area 1432 can be one or more, wherein these summary files correspond to different key identification files.
[0052] Figure 5 According to an embodiment of the present invention, Figure 2 Please refer to the detailed step flow chart of step S220 (i.e. the inspection stage). Figure 1 , Figure 3 and Figure 5 .like Figure 5 As shown, when the electronic device 140 is plugged into the mobile storage device 120, step S220 includes detailed steps S2201 to S2205. First, in step S2201, the application AP of the processor 142 checks whether the mobile storage device 120 stores a key identification file KDF. In one embodiment of the present invention, the application AP of the processor 142 can determine whether it is a key identification file KDF based on the file name or extension of the file stored in the mobile storage device 120, but the present invention is not limited to this. If the check result of step S2201 is no, indicating that the key identification file KDF is not stored in the mobile storage device 120, the application AP of the processor 142 determines that the inspection has failed, as shown in step S2205, and ends the inspection. If the check result of step S2201 is yes, indicating that the key identification file KDF is stored in the mobile storage device 120, step S2202 is executed.
[0053] In step S2202, the application AP of the processor 142 can check whether the key identification file KDF corresponds to the digest file DGF according to the selection strategy SEP of the digest file DGF in the encrypted storage area 1432. If the check result of step S2202 is no, it means that the key identification file KDF in the mobile storage device 120 does not correspond to the digest file DGF in the encrypted storage area 1432, then the processor 142 determines that the check fails, that is, the controller 141 does not correspond to the binding device, as shown in step S2205, and ends the check. If the check result of step S2302 is yes, it means that the key identification file KDF in the mobile storage device 120 corresponds to the digest file DGF in the encrypted storage area 1432, that is, the controller 141 corresponds to the binding device, then step S2203 is executed.
[0054] For example, it is assumed that a key identification file KDF is stored in the mobile storage device 120, and a first digest file and its first selection strategy and a second digest file and its second selection strategy are stored in the encrypted storage area 1432. First, the application AP of the processor 142 can select at least one of the file status of the key identification file KDF and the key factor information KFI1 of the mobile storage device 120 according to the first selection strategy in the encrypted storage area 1432 to perform a hash operation to generate a first comparison file, and determine whether the first comparison file is the same as the first digest file. If the first comparison file is the same as the first digest file, it means that the key identification file KDF in the mobile storage device 120 corresponds to the first digest file in the encrypted storage area 1432, and then step S2203 is executed.
[0055] If the first comparison file is different from the first summary file, it means that the key identification file KDF in the mobile storage device 120 does not correspond to the first summary file in the encrypted storage area 1432. The processor 142 can then select the file status of the key identification file KDF and at least one of the key factor information KFI1 of the mobile storage device 120 according to the second selection strategy in the encrypted storage area 1432 for hash operation to generate a second comparison file, and determine whether the second comparison file is the same as the second summary file.
[0056] If the second comparison file is the same as the second digest file, it means that the key identification file KDF in the mobile storage device 120 corresponds to the second digest file in the encryption storage area 1432, and step S2203 is executed. If the second comparison file is different from the second digest file, it means that the key identification file KDF in the mobile storage device 120 does not correspond to the first digest file and the second digest file in the encryption storage area 1432, then the application AP of the processor 142 determines that the verification fails (that is, the key identification file KDF is invalid), as shown in step S2205, and ends the verification.
[0057] In step S2203, the application AP of the processor 142 can perform a hash operation based on the identifier SN of the controller 141, the identifier SAP of the application AP, and the login account LID of the electronic device 140 to verify whether the key identification file KDF is correct. If the verification result of step S2203 is no, the application AP of the processor 142 determines that the verification fails (i.e., the key identification file KDF is invalid), as shown in step S2205, and ends the verification. If the verification result of step S2203 is yes, the processor 142 determines that the key identification file KDF is valid, as shown in step S2204, and enters step S230.
[0058] Figure 6 According to another embodiment of the present invention, Figure 2 Please refer to the detailed step flow chart of step S210. Figure 1 , Figure 3 and Figure 6 .like Figure 6As shown, when the electronic device is connected to the mobile communication device 130, step S210 includes detailed steps S2100a and S2102a, at which time the electronic device 140 and the mobile communication device 130 perform asymmetric authentication and asymmetric encryption transmission. First, in step S2100a, in the binding stage, the application AP of the processor 142 waits for the first biometric confirmation result BIR1 of the mobile communication device 130. In step S2102a, when the first biometric confirmation result BIR1 is passed, the application AP of the processor 142 receives the key factor information KFI2 from the mobile communication device 130, and transmits the key factor information KFI2 to the controller 141 to generate a summary file DFG.
[0059] Figure 7 According to another embodiment of the present invention, Figure 2 Please refer to the detailed step flow chart of step S220. Figure 1 , Figure 3 and Figure 7 .like Figure 7 As shown, when the electronic device 140 is connected to the mobile communication device 130, step S220 includes detailed steps S2200a and S2202a, at which the electronic device 140 and the mobile communication device 130 perform asymmetric authentication and symmetric encryption transmission. First, in step S2200a, during the inspection phase, the application AP of the processor 142 waits for the second biometric confirmation result BIR2 of the mobile communication device 130. In step S2202a, when the second biometric confirmation result BIR2 is passed, the application AP of the processor 142 receives the key factor information KFI2 from the mobile communication device 130, and transmits the key factor information KFI2 to the controller 141 to confirm whether the controller 141 corresponds to the binding device.
[0060] In the embodiment of the present invention, while the application AP of the processor 142 is waiting for the first biometric confirmation result BIR1 or the second biometric confirmation result BIR2 of the mobile communication device 130, the mobile communication device 130 generates a first public key UK1 and a first private key IK1, and the application AP of the processor 142 requests the first public key UK1, the biometric status BIS and the key factor information KFI2 from the mobile communication device 130, wherein the application stores the first public key UK1. Before the application AP of the processor 142 transmits the key factor information KFI2 to the controller 141, the application of the processor 142 generates a second public key UK2 and a second private key IK2, and transmits the second public key UK2 to the controller 141 so that the controller 141 stores the second public key UK2.
[0061] Figure 8This is a detailed flowchart of the steps of applying authentication to a mobile communication device according to an embodiment of the present invention. Figure 1 , Figure 3 and Figure 8 .like Figure 8 As shown, when the application AP of the processor 142 authenticates the mobile communication device 130, the mobile communication device 130 obtains the first authentication query CHS1 from the application AP of the processor 142, and the mobile communication device 130 generates a first signature SIG1 according to the first private key IK1 in response to the first authentication query CHS1, and the mobile communication device 130 returns the first signature SIG1 to the application AP of the processor 142. The application AP of the processor 142 verifies whether the first signature SIG1 is correct through the first public key UK1 transmitted by the mobile communication device 130, thereby authenticating the mobile communication device 130.
[0062] Fig. 9 This is a detailed flowchart of the controller authentication application according to an embodiment of the present invention. Please refer to Figure 1 , Figure 3 and Fig. 9 .like Fig. 9 As shown, when the controller 141 authenticates the application AP of the processor 142, the application AP of the processor 142 obtains the second authentication query CHS2 from the controller 141, the application AP of the processor 142 responds to the second authentication query CHS2 and generates a second signature SIG2 according to the second private key IK2, and the application AP of the processor 142 returns the second signature SIG2 to the controller 141. The controller 141 verifies whether the second signature SIG2 is correct through the second public key UK2 transmitted by the application AP of the processor 142, thereby authenticating the application AP of the processor 142.
[0063] In an embodiment of the present invention, the electronic device 140 may not be connected to an external electronic device and enable universal second factor authentication. When the electronic device 140 may not be connected to an external electronic device, in the binding phase, i.e., step S210, the application AP of the processor 142 generates a summary file DGF based on the key factor information KFI0 of the electronic device 140 and the fetching policy SEP. In the verification phase, i.e., step S220, the application AP of the processor 142 determines whether the controller 141 corresponds to the binding device based on the summary file DGF and the key factor information KFI0 of the electronic device 140.
[0064] Fig.10 According to an embodiment of the present invention, Figure 2 Please refer to the detailed step flow chart of step S240 (i.e. registration stage) of Figure 1 , Figure 3 and Fig.10 .like Fig.10 As shown, step S240 includes detailed steps S2400, S2402, S2404, and S2406. First, in step S2400, the controller 141 may transmit the account and password entered by the user for logging into the server device 900 to the server device 900. Then, in step S2402, the controller 141 may obtain the corresponding server identifier SVID from the server device 900, and the controller 141 may obtain the digest file DGF corresponding to the binding device from the processor 142. Next, in step S2404, the controller 141 performs a hash operation according to the random number RNB, the server identifier SVID, and the digest file DGF to generate the information identifier MAC and the public key UK.
[0065] Specifically, step S2404 may include detailed steps S642 and S644. First, in step S642, the controller 141 may perform a hash operation based on the random number RNB, the server identifier SVID, and the digest file DGF to generate a private key IK and a public key UK. Next, in step S644, the controller 141 may perform a hash operation based on the private key IK, the server identifier SVID, and the digest file DGF to generate a message identifier MAC.
[0066] Then, in step S2406, the controller 141 may transmit the random number RNB, the information identifier MAC, and the public key UK to the server device 900 to register the universal second factor service with the server device 900. In this way, the server device 900 may correspond the account and password used to log in to the server device 900 to the public key UK and complete the registration.
[0067] In one embodiment of the present invention, the above-mentioned hash operation can be performed using an existing hash algorithm, such as a secure hash algorithm (SHA), etc., but the present invention is not limited thereto and depends on actual applications or design requirements.
[0068] Fig.11 According to an embodiment of the present invention, Figure 2 Please refer to the detailed step flow chart of step S250 (i.e. the authentication stage). Figure 1 , Figure 3 and Fig.11 .like Fig.11As shown, step S250 includes detailed steps S2500, S2502, S2504, and S2506. First, in step S2500, the controller 141 can transmit the account and password entered by the user for logging into the server device 900 to the server device 900, so that the server device 900 can search for the corresponding public key UK and send out the authentication query CHS according to the account and password. Then, in step S2502, the controller 141 can obtain the authentication query CHS from the server device 900. Next, in step S2504, the controller 141 can generate a signature SIG according to the private key IK in response to the authentication query CHS.
[0069] In one embodiment of the present invention, step S2504 may include detailed steps S752, S754, and S756. First, in step S752, the controller 141 may determine whether a specific button of the button module 144 of the electronic device 140 is pressed. If the judgment result of step S752 is no, it means that the user may not be located outside the electronic device 140 or the user is not using the electronic device 140, then in step S756, the controller 141 will not generate a signature SIG. If the judgment result of step S752 is yes, it means that the user is indeed outside the electronic device 140 and is using the electronic device 140, then the controller 141 responds to the authentication query CHS and generates a signature SIG based on the private key IK, as shown in step S754. In one embodiment of the present invention, if the controller 141 does not return the signature SIG to the server device 900 within a specific time interval, the account and password used to log in to the server device 900 will fail to pass the authentication of the universal second factor protocol of the server device 900, and the server device 900 will send a universal second factor authentication failure message to the electronic device 140.
[0070] Afterwards, in step S2506, the controller 141 returns the signature SIG to the server device 900, so that the server device 900 performs authentication of the universal second factor service according to the signature SIG and the public key UK (i.e., the public key corresponding to the account and password used to log in to the server device 900). Specifically, the server device 900 can verify whether the signature SIG is valid according to the public key UK. If the server device 900 verifies that the signature SIG is valid, the account and password used to log in to the server device 900 have passed the authentication of the universal second factor protocol of the server device 900, so the user can start to use the online service provided by the server device 900.
[0071] According to the above, when the electronic device 140 is plugged into the mobile storage device 120, the controller 141 will confirm the application AP of the processor 142. After the application AP passes the confirmation, the controller 141 will then confirm the mobile storage device 120. Only after the mobile storage device 120 passes the confirmation will the controller 141 enable the authentication operation of the universal second factor service. When the electronic device 140 is connected to the mobile communication device 130, the application AP of the processor 142 will confirm the mobile communication device 130. After the mobile communication device 130 passes the confirmation, the controller 141 will then confirm the application AP of the processor 142. After the application AP passes the confirmation, the controller 141 will confirm the mobile communication device 130 again. Only after the mobile communication device 130 passes the confirmation will the controller 141 enable the authentication operation of the universal second factor service.
[0072] In summary, the authentication system and authentication method proposed in the embodiment of the present invention can allow users to use the authentication of the universal second factor protocol supported by the server device to improve the security of using the server device service. In addition, since the mobile storage device / mobile communication device in the authentication system proposed in the embodiment of the present invention can be any type of existing portable storage device / portable communication device, and the authentication method can be executed by the processor and controller in the electronic device through applications and firmware respectively, the user does not need to purchase an additional physical key device specially designed and manufactured for the universal second factor protocol. In this way, the cost of using the universal second factor protocol for authentication can be effectively reduced, thereby increasing the user's willingness to use it.
[0073] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. An authentication system, characterized in that: include: Electronic device, including: A controller with a summary form; a processor, coupled to the controller and configured to execute an application; and A button module is coupled to the controller and is controlled by the controller. In the binding stage, the application in the electronic device generates a summary file according to the key factor information and the selection strategy, and stores the summary file and the selection strategy in the summary table. In the verification stage, the application in the electronic device determines whether the controller corresponds to a bound device according to the summary file and the key factor information. When the controller corresponds to the binding device, the controller responds to the pressing of the key module and performs a universal second factor service authentication operation with the server device according to the digest file corresponding to the binding device. The electronic device is plugged into the mobile storage device. Wherein, during the binding stage, the application performs a hash operation based on the key factor information of the electronic device to generate a key identification file, and transmits the key identification file to the mobile storage device, and the application randomly generates the selection strategy, and selects the file status of the key identification file and at least one of the key factor information of the mobile storage device to perform a hash operation based on the selection strategy to generate the summary file, The key factor information of the electronic device includes the identifier of the controller, the identifier of the application and the login account of the electronic device, the file status includes at least one of the creation date, modification date, access date, starting position of the file cluster and the number of file clusters of the key identification file, and the key factor information of the mobile storage device includes at least one of the supplier identifier, product identifier and remaining storage space size of the mobile storage device.
2. The authentication system according to claim 1, characterized in that: If the controller corresponds to the binding device, then during the registration phase, the controller registers the universal second factor service with the server device according to the summary document.
3. The authentication system according to claim 1, characterized in that: During the inspection phase: The application checks whether the mobile storage device stores the key identification file to obtain a first result, If the first result is yes, the application checks whether the key identification file corresponds to the digest file according to the selection strategy to obtain a second result, If the second result is yes, the application performs a hash operation based on the identifier of the controller, the identifier of the application, and the login account of the electronic device to verify whether the key identification file is correct to obtain a third result, If the third result is yes, the application determines that the controller corresponds to the binding device.
4. The authentication system according to claim 1, characterized in that: The electronic device is connected to a mobile communication device, wherein during the binding phase, the application waits for a first biometric confirmation result of the mobile communication device, and When the first biometric confirmation result is passed, the application receives the key factor information from the mobile communication device and transmits the key factor information to the controller to generate the summary file. The key factor information of the mobile communication device includes the account currently logged into the mobile communication device, the international mobile device identification code of the mobile communication device, the telephone number of the current user identity module card, and the application in the mobile communication device to bind the currently randomly generated information code.
5. The authentication system according to claim 4, characterized in that: During the verification phase, the application waits for a second biometric confirmation result from the mobile communication device, and When the second biometric confirmation result is passed, the application receives the key factor information from the mobile communication device and then transmits the key factor information to the controller to confirm whether the controller corresponds to the binding device.
6. The authentication system according to claim 5, characterized in that: During the time when the application waits for the first biometric confirmation result or the second biometric confirmation result of the mobile communication device, the mobile communication device generates a first public key and a first private key, and the application requests the first public key, the biometric status, and the key factor information from the mobile communication device, wherein the application stores the first public key, Before the application transmits the key factor information to the controller, the application generates a second public key and a second private key, and the second public key is transmitted to the controller so that the controller stores the second public key.
7. The authentication system according to claim 6, characterized in that: When the application authenticates the mobile communication device, the mobile communication device obtains a first authentication challenge from the application, the mobile communication device generates a first signature according to the first private key in response to the first authentication challenge, and the mobile communication device returns the first signature to the application.
8. The authentication system according to claim 6, characterized in that: When the controller authenticates the application, the application obtains a second authentication challenge from the controller, the application generates a second signature according to the second private key in response to the second authentication challenge, and the application returns the second signature to the controller.
9. The authentication system according to claim 1, characterized in that: The electronic device is not connected to an external electronic device, wherein in the binding phase, the application generates the summary file according to the key factor information and the fetching strategy of the electronic device, In the verification phase, the application determines whether the controller corresponds to the binding device based on the summary file and the key factor information of the electronic device. The bound device is a virtual device.
10. The authentication system according to claim 9, characterized in that: The key factor information of the electronic device includes an identifier of the controller, an identifier of the application, and a login account of the electronic device.
11. The authentication system according to claim 2, characterized in that: During the registration phase: The controller transmits an account and a password for logging into the server device to the server device, the controller obtains a server identifier and the digest file from the server device and the processor respectively, the controller performs a hash operation according to a random number, the server identifier and the digest file to generate an information identifier and a public key, and the controller transmits the random number, the information identifier and the public key to the server device to register the universal second factor service with the server device.
12. The authentication system according to claim 11, characterized in that: During the registration phase, the controller performs a hash operation based on the random number, the server identifier and the digest file to generate a private key and the public key, and the controller performs a hash operation based on the private key, the server identifier and the digest file to generate the information identifier.
13. The authentication system according to claim 12, characterized in that: During the certification phase: The controller transmits the account and password used to log in to the server device to the server device, the controller obtains an authentication query from the server device, the controller generates a signature based on the private key in response to the authentication query, and the controller returns the signature to the server device, so that the server device performs authentication of the universal second factor service based on the signature and the public key.
14. The authentication system according to claim 12, characterized in that: During the authentication phase, the controller determines whether the button of the button module is pressed to obtain a determination result. If the determination result is yes, the controller generates a signature according to the private key in response to the authentication query.
15. The authentication system according to claim 1, characterized in that: The controller has a storage component for storing the summary table.
16. An authentication method, characterized in that: include: In the binding phase, an application executed by a processor of the electronic device generates a summary file according to the key factor information and the selection strategy, and stores the summary file in a summary table of a controller of the electronic device; In the checking stage, the application in the electronic device determines whether the controller corresponds to a binding device according to the summary file and the key factor information; as well as If the controller corresponds to the binding device, then during the authentication phase, the controller responds to the pressing of the key module of the electronic device and performs authentication operation of the universal second factor service with the server device according to the digest file corresponding to the binding device. The electronic device is plugged into a mobile storage device, and the step of generating the summary file according to the key factor information and the selection strategy includes: The application performs a hash operation based on the key factor information of the electronic device to generate a key identification file, Randomly generating the selection strategy through the application; as well as The application selects at least one of the file status of the key identification file and the key factor information of the mobile storage device according to the selection strategy to perform a hash operation to generate the summary file, The key factor information of the electronic device includes an identifier of the controller, an identifier of the application, and a login account of the electronic device; the file status includes at least one of a creation date, a modification date, an access date, a starting position of a file cluster, and the number of file clusters of the key identification file; and the key factor information of the mobile storage device includes at least one of a supplier identifier, a product identifier, and a remaining storage space size of the mobile storage device.
17. The authentication method according to claim 16, characterized in that: Also includes: If the controller corresponds to the binding device, then during the registration phase, the controller registers the universal second factor service to the server device according to the summary file.
18. The authentication method according to claim 16, characterized in that: The step of checking whether the controller corresponds to the binding device according to the summary file and the key factor information of the electronic device comprises: Checking, by the application, whether the mobile storage device stores the key identification file to obtain a first result; If the first result is yes, checking by the application according to the selection strategy whether the key identification file corresponds to the digest file to obtain a second result; If the second result is yes, performing a hash operation by the application according to the identifier of the controller, the identifier of the application, and the login account of the electronic device to verify whether the key identification file is correct to obtain a third result; and If the third result is yes, the application determines whether the controller corresponds to the binding device.
19. The authentication method according to claim 16, characterized in that: The electronic device is connected to a mobile communication device, and the authentication method further comprises: During the binding phase, the application waits for a first biometric confirmation result of the mobile communication device; and When the first biometric confirmation result is passed, the application receives the key factor information from the mobile communication device and transmits the key factor information to the controller to generate the summary file. The key factor information of the mobile communication device includes the account currently logged into the mobile communication device, the international mobile device identification code of the mobile communication device, the telephone number of the current user identity module card, and the application in the mobile communication device to bind the currently randomly generated information code.
20. The authentication method according to claim 19, characterized in that: Also includes: During the verification phase, the application waits for a second biometric confirmation result of the mobile communication device; as well as When the second biometric confirmation result is passed, the application receives the key factor information from the mobile communication device and then transmits the key factor information to the controller to confirm whether the controller corresponds to the binding device.
21. The authentication method according to claim 20, characterized in that: Also includes: During the time when the application waits for the first biometric confirmation result or the second biometric confirmation result of the mobile communication device, the mobile communication device generates a first public key and a first private key, and the application requests the first public key, the biometric status, and the key factor information from the mobile communication device, wherein the application stores the first public key; as well as Before the application transmits the key factor information to the controller, the application generates a second public key and a second private key, and the second public key is transmitted to the controller so that the controller stores the second public key.
22. The authentication method according to claim 21, characterized in that: Also includes: When the application authenticates the mobile communication device, the mobile communication device obtains a first authentication query from the application; as well as The mobile communication device generates a first signature according to the first private key in response to the first authentication challenge, and the mobile communication device returns the first signature to the application.
23. The authentication method according to claim 21, characterized in that: Also includes: When the controller authenticates the application, the application obtains a second authentication query from the controller; as well as The application generates a second signature according to the second private key in response to the second authentication challenge, and the application returns the second signature to the controller.
24. The authentication method according to claim 16, characterized in that: The electronic device is not connected to an external electronic device, and the authentication method further comprises: In the binding phase, the application generates the summary file according to the key factor information and the fetching policy of the electronic device; and In the checking stage, the application determines whether the controller corresponds to a bound device based on the summary file and the key factor information of the electronic device. The bound device is a virtual device.
25. The authentication method according to claim 24, characterized in that: The key factor information of the electronic device includes an identifier of the controller, an identifier of the application, and a login account of the electronic device.
26. The authentication method according to claim 17, characterized in that: The step of registering the universal second factor service with the server device according to the summary file comprises: transmitting the account number and password for logging into the server device to the server device through the controller; Obtaining, by the controller, a server identifier and the summary file from the server device and the processor, respectively; Performing a hash operation by the controller according to a random number, the server identifier and the digest file to generate a message identifier and a public key; and The random number, the information identifier, and the public key are transmitted to the server device by the controller to register the universal second factor service with the server device.
27. The authentication method according to claim 26, characterized in that: The step of performing a hash operation according to the random number, the server identifier and the digest file to generate the information identifier and the public key comprises: Performing a hash operation by the controller according to the random number, the server identifier, and the digest file to generate a private key and the public key; and The controller performs a hash operation according to the private key, the server identifier and the digest file to generate the information identifier.
28. The authentication method according to claim 27, characterized in that: The step of performing the authentication operation of the universal second factor service with the server device according to the digest file corresponding to the binding device comprises: The controller transmits the account and password used to log into the server device to the server device, obtaining, by the controller, an authentication query from the server device; generating, by the controller, a signature based on the private key in response to the authentication challenge; and The controller returns the signature to the server device, so that the server device performs authentication of the universal second factor service according to the signature and the public key.
29. The authentication method according to claim 28, characterized in that: The step of generating the signature according to the private key by the controller in response to the authentication query comprises: Determining by the controller whether a key of the key module is pressed to obtain a determination result; and If the determination result is yes, the controller generates the signature according to the private key in response to the authentication query.
