A data formatting verification method, device, and system

By pre-binding between the device and the terminal application and using the verification code matching mechanism, the problem of low data formatting security in an external network environment is solved, and higher data security and operation protection are achieved.

CN115021916BActive Publication Date: 2025-06-10ZHEJIANG DAHUA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210710870.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-22
Publication Date
2025-06-10
Estimated Expiration
2042-06-22

AI Technical Summary

Technical Problem

When the device is not connected to the external network, the user needs to enter the account password to verify the legality before formatting the data. However, due to the low frequency of password updates and the low password complexity, the security of the device operation is low, and malicious data formatting operations are prone to occur.

Method used

By pre-binding between the device and the terminal application, the user is requested to enter the verification code generated by the terminal application, and another verification code is generated using the same rules and information on the device side. When the two match, the user is allowed to perform hard disk data formatting operations.

Benefits of technology

Improve the security of data formatting operations, prevent malicious formatting operations, and enhance the protection of device data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115021916B_ABST
    Figure CN115021916B_ABST
Patent Text Reader

Abstract

The present application discloses a data formatting verification method, device and system, which are used to improve the security of data formatting operations, thereby better protecting the security of device data and avoiding malicious formatting operations. A data formatting verification method provided by the present application includes: when a user needs to perform a data formatting operation on the hard disk of a local device, and the device is pre-bound with the user's terminal application, requesting the user to input a first verification code generated by the terminal application; wherein, rules and information for generating the first verification code are pre-set in the terminal application; receiving the first verification code input by the user, and generating a second verification code on the local device side using the rules and information; when the first verification code is the same as the second verification code, instructing the user to perform a data formatting operation on the hard disk.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of data processing, and particularly to a data formatting verification method, apparatus, and system. Background Art

[0002] Currently, when the device is not connected to the external network and before formatting the hard disk of the device, generally the device will require the user to enter the account password again for legality verification. If the verification passes, the data formatting operation can be performed. However, because the password update frequency is generally relatively low and the password complexity set by most users is not high, the security of device operation is low, which easily leads to malicious data formatting operations. Summary of the Invention

[0003] Embodiments of this application provide a data formatting verification method, apparatus, and system to improve the security of data formatting operations, thereby better protecting the security of device data and avoiding malicious formatting operations.

[0004] On the device side where hard disk data formatting operation needs to be performed, a data formatting verification method provided by an embodiment of this application includes:

[0005] When the user needs to perform a data formatting operation on the hard disk of the local device and the device is pre-bound with the user's terminal application, request the user to input a first verification code generated by the terminal application; wherein, rules and information for generating the first verification code are pre-set in the terminal application;

[0006] Receive the first verification code input by the user, and generate a second verification code on the local device side using the rules and information;

[0007] When the first verification code is the same as the second verification code, instruct the user to perform a data formatting operation on the hard disk.

[0008] Through this method, when the user needs to perform a data formatting operation on the hard disk of the device, if the device and the terminal application are pre-bound, the device requests the user to input a first verification code generated by the terminal application; wherein, rules and information for generating the first verification code are pre-set in the terminal application; and, the device receives the first verification code input by the user and generates a second verification code using the rules and information; when the first verification code is the same as the second verification code, the device can instruct the user to perform a data formatting operation on the hard disk, thereby improving the security of data formatting operations, better protecting the security of device data, and avoiding malicious formatting operations on the device.

[0009] In some embodiments, the first verification code is generated using the following information:

[0010] Information of the device, information of the hard disk, random password, current time of the terminal;

[0011] The second verification code is generated using the following information:

[0012] Information of the device, information of the hard disk, the random password, current time of the device.

[0013] In some embodiments, the information of the device, the information of the hard disk, and the random password are sent and saved in the terminal application during the process of binding the terminal application to the device.

[0014] In some embodiments, the random password includes a binary code with a preset number of digits randomly generated by the device.

[0015] In some embodiments, the first verification code is generated through the following steps:

[0016] Using the information of the device, the information of the hard disk, the random password, and the current time of the terminal, generate a first dynamic protection code;

[0017] Adopt a preset hash algorithm to calculate the first dynamic protection code to generate a first hash value;

[0018] Generate the first verification code using the first hash value;

[0019] The second verification code is generated through the following steps:

[0020] Using the information of the device, the information of the hard disk, the random password, and the current time of the device, generate a second dynamic protection code;

[0021] Adopt the hash algorithm to calculate the second dynamic protection code to generate a second hash value;

[0022] Generate the second verification code using the second hash value.

[0023] In some embodiments, the terminal application is pre-bound to the device in the following manner:

[0024] When receiving a request to bind the terminal application to the device, generate a QR code using the information of the device, the information of the hard disk, and the random password generated by the device, and output it to the display screen for display, so that the terminal application obtains the rules and information for generating the first verification code by scanning the QR code; and, request the user to input the first verification code generated by the terminal application.

[0025] When the first verification code input by the user is the same as the second verification code generated by the local device side using the rules and information, record that the binding between the device and the terminal application is successful.

[0026] In some embodiments, while outputting the QR code for display to the user, it further includes:

[0027] Output the address link information for downloading the terminal application to the user.

[0028] In some embodiments, the method further includes unbinding the terminal application from the device in the following manner:

[0029] According to the user request, prompt the user to input the verification code for unbinding generated by the terminal application.

[0030] Verify the verification code for unbinding input by the user, and when the verification passes, unbind the terminal application from the device.

[0031] Correspondingly, on the terminal side, a data formatting verification method provided in an embodiment of the present application includes:

[0032] Start the terminal application pre-downloaded for performing data formatting operations on the hard disk of the device.

[0033] Through the terminal application, generate a first verification code using preset rules and information, so that the user inputs the first verification code to the device, and generate a second verification code on the device side using the rules and information. When the first verification code and the second verification code are the same, the device instructs the user to perform data formatting operations on the hard disk.

[0034] In some embodiments, the method further includes:

[0035] Scan the QR code output and displayed by the device through the terminal application to realize the binding between the terminal application and the device. The QR code includes the information, and the information includes the information of the device, the information of the hard disk, and the random password generated by the device.

[0036] In some embodiments, the first verification code is generated through the following steps:

[0037] Generate a first dynamic protection code by using the information of the device, the information of the hard disk, the random password generated by the device, and the current time of the terminal.

[0038] Calculate the first dynamic protection code by using a preset hash algorithm to generate a first hash value.

[0039] Generate the first verification code by using the first hash value.

[0040] In some embodiments, the method further includes:

[0041] Prompt the user to input the current time of the terminal through the terminal application.

[0042] The data formatting verification device provided by the embodiments of the present application includes:

[0043] A memory for storing program instructions;

[0044] A processor for calling the program instructions stored in the memory and executing any of the above methods according to the obtained program.

[0045] A data processing system provided by the embodiments of the present application includes:

[0046] A device for: when the user needs to perform a data formatting operation on the hard disk of the device and the device is pre-bound to the user's terminal application, requesting the user to input a first verification code generated by the terminal application; wherein, rules and information for generating the first verification code are pre-set in the terminal application; receiving the first verification code input by the user and generating a second verification code by using the rules and information; when the first verification code and the second verification code are the same, instructing the user to perform a data formatting operation on the hard disk.

[0047] A terminal for: starting a pre-downloaded terminal application for performing a data formatting operation on the hard disk of the device; generating a first verification code by using preset rules and information through the terminal application, enabling the user to input the first verification code to the device, and generating a second verification code by using the rules and information on the device side, and when the first verification code and the second verification code are the same, the device instructs the user to perform a data formatting operation on the hard disk.

[0048] In addition, according to an embodiment, for example, a computer program product for a computer is provided, which includes software code portions that, when the product runs on the computer, are used to execute the steps of the method defined above. The computer program product may include a computer-readable medium on which the software code portions are stored. In addition, the computer program product may be directly loaded into the internal memory of the computer and / or sent via a network through at least one of an upload process, a download process, and a push process.

[0049] Another embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for causing the computer to execute any one of the above methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required to be used in the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0051] Figure 1 It is a schematic diagram of the overall process of a data formatting verification method on the device side provided by the embodiment of the present application;

[0052] Figure 2 It is a schematic diagram of the specific process of a data formatting verification method on the device side provided by the embodiment of the present application;

[0053] Figure 3 It is a schematic diagram of the process of binding a device to a terminal application provided by the embodiment of the present application;

[0054] Figure 4 It is a schematic diagram of the overall process of a data formatting verification method on the terminal side provided by the embodiment of the present application;

[0055] Figure 5 It is a schematic diagram of the structure of a device corresponding to the data formatting verification method on the device side provided by the embodiment of the present application;

[0056] Figure 6 It is a schematic diagram of the structure of a device corresponding to the data formatting verification method on the terminal side provided by the embodiment of the present application;

[0057] Figure 7 It is a schematic diagram of the structure of a data formatting verification provided by the embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0058] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0059] The embodiments of the present application provide a data formatting verification method, apparatus, and system to improve the security of data formatting operations, thereby better protecting the security of device data and avoiding malicious formatting operations.

[0060] Among them, the method and the apparatus are based on the same inventive concept. Since the principles of solving problems by the method and the apparatus are similar, the implementation of the apparatus and the method can be referred to each other, and the repeated parts will not be elaborated.

[0061] The terms "first", "second", etc. (if any) in the specification, claims, and the above-mentioned accompanying drawings of the embodiments of the present application are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments described here can be implemented in an order other than that illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily need to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.

[0062] The following examples and embodiments are only to be understood as illustrative examples. Although this specification may mention "one", "a", or "some" examples or embodiments in several places, this does not mean that each such mention is related to the same example or embodiment, nor does it mean that the feature only applies to a single example or embodiment. The individual features of different embodiments can also be combined to provide other embodiments. In addition, terms such as "including" and "comprising" should be understood not to limit the described embodiments to only the features that have been mentioned; such examples and embodiments may also include features, structures, units, modules, etc. that have not been specifically mentioned.

[0063] The device that needs to perform hard disk data formatting involved in the embodiments of the present application can be any device, and there is no limitation in the embodiments of the present application.

[0064] The terminal involved in the embodiments of the present application can be a device that provides voice and / or data connectivity to users, a handheld device with wireless connection capabilities, or other processing devices connected to a wireless modem, such as mobile phones, PADs, and other terminals. In different systems, the name of the terminal device may also be different. For example, in a 5G system, the terminal device can be called a user equipment (UE). The wireless terminal device can communicate with one or more core networks via the RAN. The wireless terminal device can be a mobile terminal device, such as a mobile phone (or a "cellular" phone) and a computer with a mobile terminal device. For example, it can be a portable, pocket-sized, handheld, computer-integrated, or vehicle-mounted mobile device that exchanges language and / or data with the radio access network. For example, personal communication service (PCS) phones, cordless phones, session initiated protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), and other devices. The wireless terminal device can also be called a system, a subscriber unit, a subscriber station, a mobile station, a mobile, a remote station, an access point, a remote terminal device, an access terminal device, a user terminal device, a user agent, a user device, which is not limited in the embodiments of the present application.

[0065] The following describes each embodiment of the present application in detail with reference to the accompanying drawings of the specification. It should be noted that the display order of the embodiments of the present application only represents the sequence of the embodiments and does not represent the superiority or inferiority of the technical solutions provided by the embodiments.

[0066] In the embodiments of the present application, in an environment without an external network, the device that needs to perform hard disk data formatting is bound to the user's terminal application, and in combination with the bound terminal application, the device verifies the user's hard disk formatting operation permission, so as to perform a more strict and secure verification on the hard disk formatting operation of the device and avoid malicious formatting or misoperation of the device.

[0067] See Figure 1, on the device side where hard disk data formatting operation needs to be performed, a data formatting method provided by an embodiment of the present application includes:

[0068] S101. When the user needs to perform a data formatting operation on the hard disk of the local device and the device is pre-bound with the user's terminal application, request the user to input a first verification code generated by the terminal application; wherein, rules and information for generating the first verification code are pre-set in the terminal application;

[0069] That is to say, in the embodiment of the present application, before performing a data formatting operation on the hard disk of the device, the device will first determine whether the device is pre-bound with the user's terminal application. The binding in this embodiment refers to the binding for the formatting operation. Of course, it may also include the binding for other operations performed on the device, which is not limited in the embodiment of the present application.

[0070] If the binding is performed, an input box can be popped up to request the user to input the first verification code generated by the terminal application.

[0071] During the binding process, the user obtains the rules and information for generating the first verification code through the terminal application.

[0072] S102. Receive the first verification code input by the user and generate a second verification code on the local device side using the rules and information;

[0073] That is to say, in this embodiment, the device and the terminal generate verification codes in real time using the same rules and in combination with their respective current times. In the embodiment of the present application, for the sake of differential description, the verification code generated by the terminal is called the first verification code, and the verification code generated by the device is called the second verification code. It can be understood that on the terminal side, the first verification codes generated at different times can be different; similarly, on the device side, the second verification codes generated at different times can be different.

[0074] S103. When the first verification code and the second verification code are the same, instruct the user to perform a data formatting operation on the hard disk.

[0075] That is to say, in this embodiment, only when the verification codes generated on the terminal and the device side are consistent, the user is allowed to perform a hard disk data formatting operation on the device.

[0076] In addition, in some embodiments, when the first verification fails, the user can be prompted to input the first verification code generated by the terminal application again, that is, the user is allowed to input the verification code multiple times. When the verification fails after reaching the preset number of times, the user is refused to input the verification code again. The specific processing flow is as follows, for example Figure 2 as shown.

[0077] In some embodiments, the first verification code is generated using the following information:

[0078] Information of the device, information of the hard disk, a random password, the current time of the terminal;

[0079] The second verification code is generated using the following information:

[0080] Information of the device, information of the hard disk, the random password, the current time of the device.

[0081] Among them, the information of the device is, for example, information such as the identifier of the device; the information of the hard disk is, for example, information such as the identifier of the hard disk.

[0082] Among them, through the time information, the verification codes respectively and real-time generated by the device and the terminal can be made different, thereby further improving the security of the verification code.

[0083] The verification code generated in combination with the identifier of the hard disk further ensures the security of the hard disk data formatting operation. Only by obtaining the identifier of the hard disk and using this identifier to generate the verification code is it possible to perform the formatting operation on this hard disk.

[0084] In some embodiments, the information of the device, the information of the hard disk, and the random password are sent and saved in the terminal application during the process of binding the terminal application to the device. That is to say, in the embodiments of the present application, the device can actively send these information such as the information of the device, the information of the hard disk, and the random password to the terminal, or can also output and display them to the user in the form of a QR code.

[0085] In some embodiments, the random password includes a binary code with a preset number of digits randomly generated by the device.

[0086] In some embodiments, the first verification code is generated through the following steps:

[0087] Using the information of the device, the information of the hard disk, the random password, and the current time of the terminal, generate a first dynamic protection code;

[0088] Adopt a preset hash algorithm to calculate the first dynamic protection code to generate a first hash value;

[0089] Generate the first verification code using the first hash value; for example, a value at a specific position in the first hash value can be taken as the first verification code, and the specific position can be a position negotiated in advance with the device, that is, both the terminal and the device take values at the same position as the verification code.

[0090] The second verification code is generated through the following steps:

[0091] Generate a second dynamic protection code by using the information of the device, the information of the hard disk, the random password, and the current time of the device;

[0092] Calculate the second dynamic protection code by using the hash algorithm to generate a second hash value;

[0093] Generate the second verification code by using the second hash value.

[0094] In some embodiments, the terminal application is pre-bound to the device in the following manner:

[0095] When receiving a request to bind the terminal application to the device, generate a two-dimensional code by using the information of the device, the information of the hard disk, and the random password generated by the device, and output it to the display screen for display, so that the terminal application can obtain the rules and information for generating the first verification code by scanning the two-dimensional code; and, request the user to input the first verification code generated by the terminal application;

[0096] When the first verification code input by the user is the same as the second verification code generated by the local device side by using the rules and information, record that the binding between the device and the terminal application is successful.

[0097] Wherein, receiving the request to bind the terminal application to the device, for example, the device outputs a user interface with a button prompting the user whether to bind. If needed, the user can select "Yes", then it is considered that the request to bind the terminal application to the device is received.

[0098] Wherein, requesting the user to input the first verification code generated by the terminal application, for example, while outputting the two-dimensional code, an interface can also be output, prompting the user to input the verification code generated by the mobile terminal application on this interface.

[0099] In some embodiments, when outputting the two-dimensional code for display to the user, it further includes:

[0100] Output address link information for downloading the terminal application to the user.

[0101] Wherein, the address link information can be the download address of the terminal application or another two-dimensional code. The user can download the terminal application by scanning this two-dimensional code with the mobile phone.

[0102] In some embodiments, the method further includes unbinding the terminal application from the device in the following manner:

[0103] According to the user's request, prompt the user to input the verification code for unbinding generated by the terminal application;

[0104] Verify the verification code for unbinding input by the user. When the verification passes, unbind the terminal application from the device.

[0105] Among them, for the user's request, for example, an interface can also be output, with a button prompting the user whether to unbind. If the user selects "yes", it is equivalent to receiving the user's unbinding request, and then the user is further prompted to input the verification code generated by the terminal application.

[0106] The verification code for unbinding generated by the terminal application can be generated, for example, using the same rules and information as those used to generate the first verification code, or can be generated using other rules and information.

[0107] Regarding unbinding the terminal application from the device, that is to say, if only one terminal application is bound to the device, then after unbinding, the device side deletes the binding record regarding the terminal application, and before formatting the hard disk data of the device, the above verification process may not be performed; if multiple terminal applications are bound to the device, then before formatting the device, the user will still be prompted to input the verification code, but the verification code generated by the unbound terminal application will be invalid. Subsequently, the binding relationship between the terminal application and the device can be added again.

[0108] Specifically, in combination with Figure 2 , for example, the embodiments of the present application perform the following verification steps before formatting the hard disk data of the device:

[0109] Step 1: First, the device determines whether the device is bound to a terminal. If it is bound, the following verification steps are performed; otherwise, the formatting operation can be directly performed without verification.

[0110] Step 2: Before formatting at the device end, a input box is popped up, asking for the input of the verification code;

[0111] Among them, if the device is bound to the terminal application, the device side will record the information that has been bound to the terminal application. For example, during the binding process between the above-mentioned terminal application and the device, the terminal application scans the QR code displayed by the device output, obtains the rules and information for generating the first verification code (the information of the device + the information of the hard disk + the random password), and then uses this rule and information to generate the first verification code and inputs it to the device. The device also uses this rule and information to generate the second verification code. If the first verification code is the same as the second verification code, the device records that the binding with the terminal application is successful. Therefore, when a hard disk data formatting operation is required subsequently, an input box will pop up again, asking for the input of the verification code.

[0112] Step 3: Open the terminal application (APP), generate a dynamic protection code according to the recorded information (i.e., the information in the above QR code: hard disk serial number + device serial number + random password). The dynamic protection code is, for example: hard disk serial number + device serial number + random password, plus the local current time (such as accurate to minutes). Use the dynamic protection code to generate a verification code. Specifically, for example: the hash value of the dynamic protection code can be calculated, and then according to the rules agreed with the terminal application, take several digits of the hash value as the verification code. For example, take the first 6 digits or the first 7 digits or the first 8 digits of the hash value as the verification code.

[0113] Among them, the accurate to minutes means that if the time difference between the terminal application and the device when calculating the verification code is within one minute, then both use the same hard disk serial number + device serial number + random password + current time in the same way, and the calculated hash values can be considered the same. For example, using the same hard disk serial number, device serial number, and random password, the current time when the terminal calculates the verification code is 8:05:15, and the current time when the device calculates the verification code is 8:05:59. Then, using the same rules, calculate the hash value, and it is considered that the verification code obtained using this hash value is the same.

[0114] Step 4: Finally, on the device side, the user inputs the first verification code generated by the terminal into the input box that pops up on the device side. Then, the device side calculates the second verification code in the same way as the terminal calculates the verification code, and compares it with the first verification code input by the user. If they are the same, the hard disk can be formatted; if they are different, it fails, that is, the hard disk formatting is refused.

[0115] In some embodiments, if the time of the device is inaccurate, then on the APP side of the terminal, the user can be allowed to customize the time. For example, if the time of the device differs greatly from the terminal time, the terminal can also provide an interface for the user to input the time used to generate the verification code.

[0116] In some embodiments, considering brute force attacks, the number of failed attempts can be restricted; for example, if the verification in step four above fails three times on the device side, the user will be refused to attempt to enter the verification code again.

[0117] In the embodiments of the present application, since the information includes the hard disk serial number, protection is provided for the hard disk; and the user only needs to ensure the security of the authentication terminal mobile phone, that is, as long as the mobile phone is not lost, the security of formatting the hard disk of the device can be ensured.

[0118] The following combines Figure 3 , and illustrates the settings for hard disk formatting protection in the embodiments of the present application by way of example, that is, binding the device to the terminal application.

[0119] The binding is to set protection measures to prevent the hard disk of the device from being formatted randomly, that is, through the settings of this step, the binding of the terminal application and the device is realized. When it is necessary to format the hard disk of the device, verification needs to be combined with the bound terminal application, and the hard disk of the device can be formatted only after the verification passes.

[0120] Then the specific binding process, for example, includes:

[0121] Step 1: Enter the verification for setting the protection process.

[0122] This step is an optional step. For example, a password verification can be required here, and the following steps will be carried out only after the password verification passes;

[0123] Step 2: Generate a binding QR code according to necessary information, such as: hard disk serial number + device serial number + random password. Among them, in order to distinguish the hard disk, the hard disk serial number needs to be set as part of the information for generating the verification code;

[0124] Among them, the random password is the random information generated by the device and bound to the hard disk serial number. The random password can be, for example, a binary code with a preset number of bytes randomly generated inside the device, that is, it can be a character such as a number or a letter that cannot be randomly input through a keyboard, so the security is higher.

[0125] Step 3: Open the terminal APP.

[0126] The terminal is generally a mobile phone, and the APP needs to be installed in advance, or the download address can be provided in the previous step, and the APP can be downloaded in real time. For example, in step two, the device not only provides the above-mentioned QR code, but also provides the APP download address (this address can also be displayed through a QR code), and the terminal obtains the APP through this address.

[0127] Step 4: Use the terminal APP to scan the QR code. The terminal APP will record the information in the QR code. The information in the QR code includes: hard disk serial number + device serial number + random password.

[0128] Step 5: Use the terminal APP to generate a first verification code using the information in the QR code and the local time, and input it into the device;

[0129] Step 6: After the device receives the first verification code generated by the terminal APP, it also uses the information in the QR code and the local time to generate a second verification code, and determines whether the two verification codes are consistent. If they are consistent, it records that the device and the terminal APP have completed the binding. That is, if the user needs to format the device later, it needs to be verified by the terminal APP. It can be formatted only after the verification is passed. Otherwise, the formatting operation is rejected, or multiple opportunities can be provided to the user to try binding.

[0130] In the embodiment of the present application, time is used in the process of calculating the verification code, and the time is accurate to the minute, so the verification code will be refreshed every minute.

[0131] In the embodiment of the present application, if the binding is set, the binding can also be unbound. The method of unbinding is the same as the method of setting the binding and the method of formatting verification. That is, the device can provide an unbinding interface, on which the user needs to enter a verification code. The user generates a verification code through the terminal APP and enters it into the unbinding interface. The device performs verification. If the verification passes, the binding can be unbound. That is, the device can prompt the user that if the terminal application needs to be unbound from the device, the verification code needs to be entered. The terminal application uses the above method to generate a verification code, which is entered into the device by the user. The device also generates a verification code in the same way. If the two verification codes are consistent, the unbinding is successful, otherwise, the unbinding fails. Among them, the unbinding is successful, that is, the device side deletes the record of the binding with the terminal application regarding the hard disk formatting operation. Therefore, when the user formats the hard disk of the device, there is no need to use the terminal for permission verification, and the formatting operation can be performed directly.

[0132] In summary, see Figure 4 Accordingly, on the terminal side, a data formatting verification method provided by an embodiment of the present application includes:

[0133] S201, opening a pre-downloaded terminal application for performing a data formatting operation on a hard disk of a device;

[0134] S202. Using the terminal application, generate a first verification code according to a preset rule and information, so that the user inputs the first verification code to the device, and the device generates a second verification code using the rule and information. When the first verification code is the same as the second verification code, the device instructs the user to perform a data formatting operation on the hard disk.

[0135] In some embodiments, the method further includes:

[0136] Scan the QR code output and displayed by the device through the terminal application to implement the binding of the terminal application and the device. The QR code includes the information, which includes the information of the device, the information of the hard disk, and the random password generated by the device.

[0137] In some embodiments, the first verification code is generated through the following steps:

[0138] Generate a first dynamic protection code using the information of the device, the information of the hard disk, the random password generated by the device, and the current time of the terminal;

[0139] Calculate the first dynamic protection code using a preset hash algorithm to generate a first hash value;

[0140] Generate the first verification code using the first hash value.

[0141] In some embodiments, the method further includes:

[0142] Instruct the user to input the current time of the terminal through the terminal application.

[0143] That is to say, in some embodiments, the user can consider that the device time is inaccurate and input the local time of the terminal used to generate the verification code by himself, rather than the terminal automatically extracting the local current time.

[0144] Next, the device or apparatus provided in the embodiments of the present application will be introduced. For the explanation or illustration of the same or corresponding technical features as those in the above method, it will not be repeated hereinafter.

[0145] On the device side, referring to Figure 5 , a data formatting verification device provided in the embodiments of the present application includes:

[0146] A binding judgment processing unit 11, configured to request the user to input a first verification code generated by the terminal application when the user needs to perform a data formatting operation on the hard disk of the local device and the device is pre-bound with the user's terminal application; wherein, rules and information for generating the first verification code are preset in the terminal application;

[0147] A verification code receiving unit 12, configured to receive a first verification code input by a user, and generate a second verification code on the local device side by using the rule and information.

[0148] A verification processing unit 13, configured to instruct the user to perform a data formatting operation on the hard disk when the first verification code is the same as the second verification code.

[0149] In some embodiments, the binding judgment processing unit 11 binds the terminal application to the device in the following manner:

[0150] When receiving a request to bind the terminal application to the device, generate a two-dimensional code by using the information of the device, the information of the hard disk, and a random password generated by the device, and output the two-dimensional code to a display screen for display, so that the terminal application obtains the rule and information for generating the first verification code by scanning the two-dimensional code; and request the user to input the first verification code generated by the terminal application.

[0151] When the first verification code input by the user is the same as the second verification code generated on the local device side by using the rule and information, record that the binding between the device and the terminal application is successful.

[0152] In some embodiments, when the binding judgment processing unit 11 outputs and displays the two-dimensional code to the user, it is further configured to:

[0153] Output address link information for downloading the terminal application to the user.

[0154] In some embodiments, the binding judgment processing unit 11 is further configured to unbind the terminal application from the device in the following manner:

[0155] According to a user request, prompt the user to input a verification code for unbinding generated by the terminal application.

[0156] Verify the verification code for unbinding input by the user, and when the verification passes, unbind the terminal application from the device.

[0157] Correspondingly, on the terminal side, referring to Figure 6 , a data formatting verification device provided in an embodiment of the present application includes:

[0158] A first unit 21, configured to start a terminal application pre-downloaded for performing a data formatting operation on a hard disk of a device.

[0159] The second unit 22 is used to generate a first verification code through the terminal application by using a preset rule and information, so that the user inputs the first verification code to the device, and the device generates a second verification code by using the rule and information. When the first verification code is the same as the second verification code, the device instructs the user to perform a data formatting operation on the hard disk.

[0160] In some embodiments, the second unit 22 is further used for:

[0161] Scanning the two-dimensional code output and displayed by the device through the terminal application to realize the binding of the terminal application and the device. The two-dimensional code includes the information, and the information includes the information of the device, the information of the hard disk, and the random password generated by the device.

[0162] In some embodiments, the first verification code is generated through the following steps:

[0163] Generating a first dynamic protection code by using the information of the device, the information of the hard disk, the random password generated by the device, and the current time of the terminal;

[0164] Calculating the first dynamic protection code by using a preset hash algorithm to generate a first hash value;

[0165] Generating the first verification code by using the first hash value.

[0166] In some embodiments, the second unit 22 is further used for:

[0167] Instructing the user to input the current time of the terminal through the terminal application.

[0168] It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division. In actual implementation, there may be other division methods. In addition, in each embodiment of the present application, each functional unit may be integrated into a processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above integrated units may be implemented in the form of hardware or in the form of software functional units.

[0169] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.

[0170] See Figure 7 , embodiments of this application provide another data formatting verification device, including:

[0171] A memory 620, configured to store program instructions;

[0172] A processor 600, configured to call the program instructions stored in the memory and execute any of the above-mentioned methods according to the obtained program.

[0173] That is to say, the data formatting verification device provided by the embodiments of this application can be the aforementioned device or the aforementioned terminal. Specifically, for example, it can be a desktop computer, a portable computer, a smart phone, a tablet computer, a personal digital assistant (PDA), etc. This computing device may include a processor (Central Processing Unit, CPU), a memory, input / output devices, etc. The input devices may include a keyboard, a mouse, a touch screen, etc., and the output devices may include display devices such as liquid crystal displays (LCDs), cathode ray tubes (CRTs), etc.

[0174] The memory may include a read-only memory (ROM) and a random access memory (RAM), and provide the program instructions and data stored in the memory to the processor. In the embodiments of this application, the memory may be used to store the programs of any of the methods provided by the embodiments of this application.

[0175] By calling the program instructions stored in the memory, the processor is configured to execute any of the methods provided by the embodiments of this application according to the obtained program instructions.

[0176] Specifically, when the data formatting verification device is a device that needs to be formatted:

[0177] A memory 620 for storing program instructions;

[0178] A processor 600 for calling the program instructions stored in the memory and executing according to the obtained program:

[0179] When the user needs to perform a data formatting operation on the hard disk of the local device and the device is pre-bound with the user's terminal application, request the user to input a first verification code generated by the terminal application; wherein, rules and information for generating the first verification code are pre-set in the terminal application;

[0180] Receive the first verification code input by the user, and generate a second verification code on the local device side using the rules and information;

[0181] When the first verification code and the second verification code are the same, instruct the user to perform a data formatting operation on the hard disk.

[0182] In some embodiments, the first verification code is generated using the following information:

[0183] Information of the device, information of the hard disk, random password, current time of the terminal;

[0184] The second verification code is generated by the processor 600 using the following information:

[0185] Information of the device, information of the hard disk, the random password, current time of the device.

[0186] In some embodiments, the information of the device, the information of the hard disk, and the random password are sent and saved in the terminal application by the processor 600 through the transceiver 610 during the process of binding the terminal application with the device.

[0187] In some embodiments, the random password includes a preset number of bits of binary code randomly generated by the device.

[0188] In some embodiments, the first verification code is generated through the following steps:

[0189] Use the information of the device, the information of the hard disk, the random password, and the current time of the terminal to generate a first dynamic protection code;

[0190] Calculate the first dynamic protection code using a preset hash algorithm to generate a first hash value;

[0191] Generate the first verification code by using the first hash value;

[0192] The second verification code is generated by the processor 600 through the following steps:

[0193] Generate a second dynamic protection code by using the information of the device, the information of the hard disk, the random password, and the current time of the device;

[0194] Calculate the second dynamic protection code by using the hash algorithm to generate a second hash value;

[0195] Generate the second verification code by using the second hash value.

[0196] In some embodiments, the processor 600 pre-binds the terminal application to the device in the following manner:

[0197] When receiving a request to bind the terminal application to the device, generate a two-dimensional code by using the information of the device, the information of the hard disk, and the random password generated by the device, and output it to the display screen for display, so that the terminal application obtains the rules and information for generating the first verification code by scanning the two-dimensional code; and request the user to input the first verification code generated by the terminal application;

[0198] When the first verification code input by the user is the same as the second verification code generated by the local device side by using the rules and information, record that the binding between the device and the terminal application is successful.

[0199] In some embodiments, when the processor 600 outputs the two-dimensional code for display to the user, it is also used for:

[0200] Output the address link information for downloading the terminal application to the user.

[0201] In some embodiments, the processor 600 is also used to unbind the terminal application from the device in the following manner:

[0202] According to the user request, prompt the user to input the verification code for unbinding generated by the terminal application;

[0203] Verify the verification code for unbinding input by the user, and when the verification passes, unbind the terminal application from the device.

[0204] When the data formatting verification device is used as the terminal:

[0205] The memory 620 is used to store program instructions;

[0206] A processor 600, configured to call program instructions stored in the memory and execute according to the obtained program:

[0207] Start a pre-downloaded terminal application for performing data formatting operations on the hard disk of the device;

[0208] Through the terminal application, generate a first verification code using preset rules and information, such that the user inputs the first verification code to the device, and the device generates a second verification code using the rules and information. When the first verification code and the second verification code are the same, the device instructs the user to perform a data formatting operation on the hard disk.

[0209] In some embodiments, the processor 600 is further configured to:

[0210] Scan a two-dimensional code output and displayed by the device through the terminal application to implement the binding of the terminal application and the device. The two-dimensional code includes the information, and the information includes information of the device, information of the hard disk, and a random password generated by the device.

[0211] In some embodiments, the first verification code is generated by the processor 600 through the following steps:

[0212] Generate a first dynamic protection code using the information of the device, the information of the hard disk, the random password generated by the device, and the current time of the terminal;

[0213] Calculate the first dynamic protection code using a preset hash algorithm to generate a first hash value;

[0214] Generate the first verification code using the first hash value.

[0215] In some embodiments, the processor 600 is further configured to:

[0216] Instruct the user to input the current time of the terminal through the terminal application.

[0217] A transceiver 610, configured to receive and send data under the control of the processor 600.

[0218] Wherein, in Figure 7Among them, the bus architecture may include any number of interconnected buses and bridges, and various circuits represented by one or more processors represented by processor 600 and memory represented by memory 620 are specifically linked together. The bus architecture can also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art, and thus will not be further described herein. The bus interface provides an interface. The transceiver 610 may be multiple components, that is, including a transmitter and a receiver, and provides a unit for communicating with various other devices on the transmission medium. For different user devices, the user interface 630 may also be an interface capable of externally connecting and internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, etc.

[0219] The processor 600 is responsible for managing the bus architecture and general processing, and the memory 620 can store the data used by the processor 600 when executing operations.

[0220] Optionally, the processor 600 may be a CPU (Central Processing Unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a CPLD (Complex Programmable Logic Device).

[0221] The embodiment of the present application also provides a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes any one of the methods in the above embodiments. The program product may adopt any combination of one or more readable media. The readable media may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0222] An embodiment of the present application provides a computer-readable storage medium for storing computer program instructions used by the device provided in the embodiment of the present application above. The computer program instructions include programs for executing any method provided in the embodiment of the present application above. The computer-readable storage medium may be a non-transitory computer-readable medium.

[0223] The computer-readable storage medium may be any available medium or data storage device accessible by a computer, including but not limited to magnetic memories (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical memories (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor memories (such as ROM, EPROM, EEPROM, non-volatile memories (NANDFLASH), solid-state drives (SSD)), etc.

[0224] A data processing system provided by an embodiment of the present application includes:

[0225] A device (the device can be any type of device equipped with a hard disk), configured to: when a user needs to perform a data formatting operation on the hard disk of the device, and the device is pre-bound with the user's terminal application, request the user to input a first verification code generated by the terminal application; wherein, rules and information for generating the first verification code are pre-set in the terminal application; receive the first verification code input by the user, and generate a second verification code using the rules and information; when the first verification code and the second verification code are the same, instruct the user to perform a data formatting operation on the hard disk.

[0226] Other functions of the device, or the specific execution process, have been described in the method on the device side above, and will not be elaborated here.

[0227] A terminal (the terminal can be a terminal of a type such as a mobile phone), configured to: start a pre-downloaded terminal application for performing a data formatting operation on the hard disk of the device; through the terminal application, generate a first verification code using preset rules and information, so that the user inputs the first verification code to the device, and a second verification code is generated on the device side using the rules and information. When the first verification code and the second verification code are the same, the device instructs the user to perform a data formatting operation on the hard disk.

[0228] Other functions of the terminal, or the specific execution process, have been described in the method on the terminal side above, and will not be elaborated here.

[0229] It should be understood that:

[0230] The access technology through which entities in a communication network transmit traffic to and from each other can be any suitable current or future technology, such as WLAN (Wireless Local Area Network), WiMAX (Worldwide Interoperability for Microwave Access), LTE, LTE-A, 5G, Bluetooth, infrared, etc.; additionally, embodiments can also apply wired technologies, for example, IP-based access technologies, such as wired networks or fixed lines.

[0231] Embodiments suitable for being implemented as software code or a part thereof and running using a processor or processing function are independent of the software code and can be specified using any known or future-developed programming language, such as high-level programming languages, such as Objective-C, C, C++, C#, Java, Python, JavaScript, other scripting languages, etc., or low-level programming languages, such as machine language or assembler.

[0232] The implementation of embodiments is independent of hardware and can be implemented using any known or future-developed hardware technology or any combination thereof, such as a microprocessor or CPU (Central Processing Unit), MOS (Metal Oxide Semiconductor), CMOS (Complementary MOS), BiMOS (Bipolar MOS), BiCMOS (Bipolar CMOS), ECL (Emitter Coupled Logic), and / or TTL (Transistor-Transistor Logic).

[0233] Embodiments can be implemented as a separate device, apparatus, unit, component, or function, or in a distributed manner. For example, one or more processors or processing functions can be used or shared in the processing, or one or more processing segments or processing parts can be used and shared in the processing, where one physical processor or more than one physical processor can be used to implement one or more processing parts dedicated to a specific processing as described.

[0234] The apparatus can be implemented by a semiconductor chip, chipset, or (hardware) module including such a chip or chipset.

[0235] Embodiments can also be implemented as any combination of hardware and software, such as ASIC (Application-Specific IC (Integrated Circuit)) components, FPGA (Field Programmable Gate Array), or CPLD (Complex Programmable Logic Device) components, or DSP (Digital Signal Processor) components.

[0236] Embodiments can also be implemented as a computer program product, including a computer-usable medium in which computer-readable program code is embodied, the computer-readable program code being adapted to execute the processes as described in the embodiments, where the computer-usable medium can be a non-transitory medium.

[0237] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories and optical memories, etc.) containing computer-usable program code.

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

[0239] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means that implement the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0240] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0241] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.

Claims

1. A data formatting method, characterized in that, the method includes: When the user needs to perform a data formatting operation on the hard disk of the local device, and the device is pre-bound with the user's terminal application, request the user to input a first verification code generated by the terminal application; wherein, rules and information for generating the first verification code are pre-set in the terminal application; Receive the first verification code input by the user, and generate a second verification code on the local device side using the rules and information; When the first verification code and the second verification code are the same, instruct the user to perform a data formatting operation on the hard disk; wherein, the first verification code is generated using the following information: information of the device, information of the hard disk, random password, current time of the terminal; the second verification code is generated using the following information: information of the device, information of the hard disk, the random password, current time of the device.

2. The method according to claim 1, characterized in that, the information of the device, the information of the hard disk, and the random password are sent and saved in the terminal application during the process of binding the terminal application with the device.

3. The method according to claim 1, characterized in that, the first verification code is generated through the following steps: Generate a first dynamic protection code using the information of the device, the information of the hard disk, the random password, and the current time of the terminal; Calculate the first dynamic protection code using a preset hash algorithm to generate a first hash value; Generate the first verification code using the first hash value; the second verification code is generated through the following steps: Generate a second dynamic protection code using the information of the device, the information of the hard disk, the random password, and the current time of the device; Calculate the second dynamic protection code using the hash algorithm to generate a second hash value; Generate the second verification code using the second hash value.

4. The method according to claim 1, characterized in that, The terminal application and the device are pre-bound in the following manner: When receiving a request to bind the terminal application with the device, generate a two-dimensional code using the information of the device, the information of the hard disk, and the random password generated by the device, and output it to the display screen for display, so that the terminal application obtains the rules and information for generating the first verification code by scanning the two-dimensional code; And, request the user to input a first verification code generated by the terminal application; When the received first verification code input by the user is the same as the second verification code generated by the local device side using the rules and information, record that the binding between the device and the terminal application is successful.

5. The method according to claim 4, characterized in that, When outputting the two-dimensional code for display to the user, it further includes: Output address link information for downloading the terminal application to the user.

6. The method according to claim 1, characterized in that, The method further includes unbinding the terminal application from the device in the following manner: According to the user's request, prompt the user to input the verification code for unbinding generated by the terminal application; Verify the verification code for unbinding input by the user. When the verification passes, unbind the terminal application from the device.

7. A data formatting method Characterized in that The method includes: Start the terminal application pre-downloaded for performing data formatting operations on the hard disk of the device; Through the terminal application, generate a first verification code using preset rules and information, so that the user inputs the first verification code to the device, and a second verification code is generated on the device side using the rules and information. When the first verification code and the second verification code are the same, the device instructs the user to perform data formatting operations on the hard disk; Wherein, the first verification code is generated using the following information: The information of the device, the information of the hard disk, a random password, the current time of the terminal; The second verification code is generated using the following information: The information of the device, the information of the hard disk, the random password, the current time of the device.

8. The method according to claim 7, Characterized in that The method further includes: Scan the QR code output and displayed by the device through the terminal application to realize the binding of the terminal application to the device. The QR code includes the information, and the information includes the information of the device, the information of the hard disk, and the random password generated by the device.

9. The method according to claim 7, Characterized in that The first verification code is generated through the following steps: Use the information of the device, the information of the hard disk, the random password generated by the device, and the current time of the terminal to generate a first dynamic protection code; Calculate the first dynamic protection code using a preset hash algorithm to generate a first hash value; Generate the first verification code using the first hash value.

10. The method according to claim 9, Characterized in that The method further includes: Instruct the user to input the current time of the terminal through the terminal application.

11. A data formatting device Characterized in that Includes: A memory for storing program instructions; A processor for calling the program instructions stored in the memory and executing the method according to any one of claims 1 to 10 according to the obtained program.

12. A computer-readable storage medium Characterized in that The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to cause the computer to execute the method according to any one of claims 1 to 10.

13. A data processing system Characterized in that Includes: Device, configured to: when a user needs to perform a data formatting operation on the hard disk of the device and the device is pre-bound to the user's terminal application, request the user to input a first verification code generated by the terminal application; wherein, rules and information for generating the first verification code are pre-set in the terminal application; receive the first verification code input by the user, and generate a second verification code using the rules and information; when the first verification code and the second verification code are the same, instruct the user to perform a data formatting operation on the hard disk; Terminal, configured to: start a pre-downloaded terminal application for performing a data formatting operation on the hard disk of the device; through the terminal application, generate a first verification code using preset rules and information, such that the user inputs the first verification code to the device, and a second verification code is generated on the device side using the rules and information, and when the first verification code and the second verification code are the same, the device instructs the user to perform a data formatting operation on the hard disk; Wherein, the first verification code is generated using the following information: Information of the device, information of the hard disk, random password, current time of the terminal; The second verification code is generated using the following information: Information of the device, information of the hard disk, the random password, current time of the device.

Citation Information

Patent Citations

  • Encryption and decryption methods for storage device, and storage device

    CN108710805A

  • Verification code anti-sniffing processing method and device

    CN110830930A