WO2019033648A1 - Software login method and apparatus and storage medium - Google Patents
Software login method and apparatus and storage medium Download PDFInfo
- Publication number
- WO2019033648A1 WO2019033648A1 PCT/CN2017/116365 CN2017116365W WO2019033648A1 WO 2019033648 A1 WO2019033648 A1 WO 2019033648A1 CN 2017116365 W CN2017116365 W CN 2017116365W WO 2019033648 A1 WO2019033648 A1 WO 2019033648A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- login
- identifier
- information
- usb device
- software
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/34—User authentication involving the use of external additional devices, e.g. dongles or smart cards
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/71—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
- G06F21/73—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information by creating or determining hardware identification, e.g. serial numbers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2153—Using hardware token as a secondary aspect
Definitions
- the present invention relates to the field of software, and in particular, to a software login method, apparatus, and storage medium.
- the way to log in to the software is traditionally entered manually on the keyboard or touch screen, and the way the mobile phone scans the QR code, but this method requires the input device to be logged in under the condition of networking, and is affected by the network speed.
- Another way is to store the information used for login in the USB device, such as in the USB flash drive, and the software can log in by reading the login information in the USB flash drive.
- This method requires writing data to the USB device, but many USB devices do not support writing data, such as USB mouse, USB keyboard, etc., so these devices cannot be used for login.
- an embodiment of the present invention proposes a software login method that can implement login without writing data to a USB device.
- a software login method is applied to a terminal device, and the method includes:
- the login information corresponding to the identifier is searched, and the login information is sent to the target software, so that the target software logs in according to the login information.
- a software login method in an application terminal device, for example, applied to a computer
- the computer receives the login request signal of the target software initiated by the user, and determines whether the terminal device has a USB device inserted. If the USB device is inserted, the unique hardware information of the current USB device can be determined by using a preset algorithm.
- the login method does not need to write data to the USB device, for many USB devices that do not have the function of writing data, such as: USB mouse And USB keyboard, etc., can also be used as a software login tool, this method does not need to manually enter the user name and password to log in to the software, which greatly simplifies the user operation and optimizes the user experience.
- the software login method according to the above embodiment of the present invention may further have the following additional technical features:
- the hardware information of the uniqueness of the USB device is read, and the hardware information is calculated based on a preset algorithm to obtain a current uniqueness of the USB device.
- the steps of the identifier include:
- the hardware ID and the vendor information are calculated according to the preset algorithm to obtain an MD5 value, and the MD5 value is used as a current identifier of the uniqueness of the USB device.
- the method further includes:
- a correspondence between the identifier and a login information is established and stored, and the login information is used to log in to the target software.
- the method further includes:
- the encrypted login information is stored.
- the establishing the identifier and a login information include:
- Another embodiment of the present invention provides a software login device that enables login without writing data to a USB device.
- a software login device is applied to a terminal device, and the device includes:
- a first determining module configured to: when receiving the login request signal sent by the target software, determine whether the terminal device has a USB device inserted;
- a first calculating module configured to: when the determining module determines that the terminal device has a USB device inserted, read unique hardware information of the USB device, and calculate the hardware information based on a preset algorithm. Obtaining a current identifier of the uniqueness of the USB device;
- a second determining module configured to determine whether the current identifier matches a pre-stored identifier
- a sending module configured to: when the second determining module matches the current identifier with the pre-stored identifier, search for login information corresponding to the identifier, and send the login information to the target software, So that the target software logs in according to the login information.
- the software login device may further have the following additional technical features:
- the calculating module is specifically configured to:
- the hardware ID and the vendor information are calculated according to the preset algorithm to obtain an MD5 value, and the MD5 value is used as a current identifier of the uniqueness of the USB device.
- the device further includes:
- a second calculating module configured to: when detecting that the USB device is first inserted into the terminal device, read unique hardware information of the USB device, and calculate the hardware information according to a preset algorithm to obtain An identifier of the uniqueness of the USB device;
- the first storage module is configured to establish and store a correspondence between the identifier and a login information, where the login information is used to log in to the target software.
- the device further includes:
- An encryption module configured to encrypt the login information by using an AES/DES encryption algorithm
- the second storage module stores the encrypted login information.
- Another embodiment of the present invention also provides a storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the above method.
- FIG. 1 is a flow chart of a software login method according to a first embodiment of the present invention
- FIG. 2 is a flow chart of a software login method according to a second embodiment of the present invention.
- FIG. 3 is a detailed flowchart of establishing a correspondence between identifiers and login information in FIG. 2 and storing the same;
- FIG. 4 is a schematic structural diagram of a software login device according to a third embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of a software login device according to a fourth embodiment of the present invention.
- a software login method is applied to identity authentication login of a USB device, and the method includes:
- the terminal device may be a computer.
- the software login method of the embodiment of the present invention may be implemented by using a login program or login software installed on the computer.
- the login program/software intercepts the login request signal sent by the target software.
- the target software when the user opens the target software, the target software usually displays a login interface.
- the user usually needs to log in to the account.
- the user needs to input his/her own user name and the password corresponding to the account to log in.
- the login interface is provided with a corresponding input edit box for the user name and password, and when the user selects the input edit box of the user name by clicking the mouse, the computer receives the login request signal sent by the target software, and When receiving the login request signal sent by the target software, it will further determine whether the computer currently has a USB device inserted.
- the computer can start a background monitor program for monitoring whether there is a USB device insertion event.
- the computer monitors that a USB device is plugged in, the unique hardware information of the USB device is read from the USB device, and the read hardware information is quickly calculated by a preset algorithm to obtain the current USB.
- the current identifier of the device's hardware information corresponding to the uniqueness is, for example, fixed attribute information of the USB device, such as a hardware serial number, a manufacturer, or the like.
- the preset algorithm may be, for example, the fifth version of the digest algorithm. Therefore, in a specific implementation, the computer may first read the unique hardware ID and vendor information of the USB device; then calculate the hardware ID and the vendor information according to the fifth version of the digest algorithm to obtain an MD5 value.
- the MD5 value is used as the current identifier of the uniqueness of the USB device.
- the computer needs to store an identifier in advance, and the pre-stored identifier is also an MD5 value, and the pre-stored identifier corresponds to a login information, and the login information is used to log in to the target software, and the login information includes, for example, a username and a password.
- the current identifier of the uniqueness of the USB device is obtained in step S102, the current identifier is compared with the pre-stored identifier, and it is determined whether the two MD5 values match or not.
- the purpose of comparing the obtained current identifier with the pre-stored identifier from this step is to detect whether the USB device currently inserted into the computer is a USB device for the target software to log in.
- the login information of the corresponding target software is searched according to the identifier on the computer, and the computer will The login information is transmitted to the target software.
- the login information is a user name and a password
- the user name can be directly displayed in the user name input box in the login interface
- the password can be displayed in the login interface through the ciphertext mode.
- the computer transmits the login information to the target software to complete the login of the target software.
- the application terminal device for example, is applied in a computer, and when the computer receives the login request signal of the target software initiated by the user, it determines whether the terminal device has a USB device inserted, and if the USB device is inserted.
- the unique hardware information of the current USB device can be calculated by a preset algorithm to form a unique current identifier, and according to the current identifier, whether the identifier on the pre-existing computer and the current identifier are retrieved according to the current identifier.
- the symbols are the same, if they are the same, the login information of the target software corresponding to the current identifier pre-existing on the computer is searched, and then the login information is sent to the target software for login, and the login method does not need to be sent to the USB device.
- USB write data for many USB devices that do not have the function of writing data, such as: USB mouse and USB keyboard, etc.
- a software login method is applied to a terminal device, where the method includes:
- the terminal device in this embodiment still uses a computer as an example for description. It should be noted that when there are multiple USB devices and multiple target softwares, each target software has its own corresponding login information, and the computer will first read the information. Different unique hardware information of different USB devices, and quickly calculate unique identifiers corresponding to hardware information of different USB devices according to a preset algorithm, since each identifier is calculated according to hardware attribute information of the USB device. Each login information can then be assigned an identifier such that the target software, login information, and identifier establish a unique correspondence, and the computer stores the corresponding relationship.
- step S201 the unique hardware information of the USB device is read, and the hardware information is calculated based on a preset algorithm to obtain an identifier of the uniqueness of the USB device.
- the steps of the character include:
- the computer When the USB device is plugged into the computer, the computer recognizes the information of the USB device, obtains the hardware ID and the manufacturer information of the USB device, and then calculates the MD5 value of the USB device through the fifth version of the digest algorithm, and the obtained MD5 value is the USB device.
- the identifier of the MD5 value can be calculated by other information such as memory size, material information, etc., in the specific implementation.
- the manner of storing the corresponding relationship may be: first, establishing a mapping table according to the correspondence between the calculated identifier and the corresponding login information;
- the identifier is a pre-existing identifier in the computer, and the identifier has a one-to-one correspondence with the corresponding login information, and the mapping table is established according to the correspondence, so that when the target software is opened, a unique one can be found.
- the corresponding USB device implements software login.
- mapping table to a registry or a disk
- the identifier and the corresponding login information are one-to-one correspondence through a mapping table.
- the mapping table is registered to the registry or the disk, so that when the computer retrieves the stored identifier, it can be retrieved in the registry or on the disk, and when the identifier is found, the corresponding identifier is found.
- the login information is transmitted to the login interface to enable the login of the software.
- the step of establishing the correspondence between the identifier and a login information and storing the foregoing step S202 further includes the following sub-steps:
- the AES/DES encryption algorithm is used to encrypt the login information.
- the login information is encrypted by using an AES/DES encryption algorithm, so that after the encryption, the identifier can only be used.
- the USB device corresponding to the symbol decrypts the encrypted information, which ensures the security of the stored information.
- the correspondence between the identifier and the login information is established by this method, and the login information after the password is stored.
- the encrypted login information is stored with the corresponding identifier.
- a software login device is applied to a terminal device, and the device includes:
- the first determining module 10 is configured to: when receiving the login request signal sent by the target software, determine whether the terminal device has a USB device inserted;
- the first calculating module 20 is configured to: when the determining module 10 determines that the terminal device has a USB device Reading the unique hardware information of the USB device, and calculating the hardware information based on a preset algorithm to obtain a current identifier of the uniqueness of the USB device;
- a second determining module 30 configured to determine whether the current identifier matches a pre-stored identifier
- the sending module 40 is configured to: when the second determining module 30 matches the current identifier with the pre-stored identifier, search for login information corresponding to the identifier, and send the login information to the target Software for causing the target software to log in according to the login information.
- a software login device according to a fourth embodiment of the present invention is applied to a terminal device, where the device includes:
- the first determining module 10 is configured to: when receiving the login request signal sent by the target software, determine whether the terminal device has a USB device inserted;
- the first calculating module 20 is configured to: when the determining module 10 determines that the terminal device has a USB device inserted, read the unique hardware information of the USB device, and perform the hardware information based on a preset algorithm. Calculating a current identifier to obtain uniqueness of the USB device;
- a second determining module 30 configured to determine whether the current identifier matches a pre-stored identifier
- the sending module 40 is configured to: when the second determining module 30 matches the current identifier with the pre-stored identifier, search for login information corresponding to the identifier, and send the login information to the target Software for causing the target software to log in according to the login information.
- the first calculating module 20 is specifically configured to:
- the hardware ID and the vendor information are calculated according to the preset algorithm to obtain an MD5 value, and the MD5 value is used as a current identifier of the uniqueness of the USB device.
- the device further includes:
- the second calculating module 50 is configured to: when detecting that the USB device is first inserted into the terminal device, read unique hardware information of the USB device, and calculate the hardware information according to a preset algorithm to obtain An identifier of the uniqueness of the USB device;
- the first storage module 60 is configured to establish and store a correspondence between the identifier and a login information, where the login information is used to log in to the target software.
- the device further includes:
- the encryption module 70 is configured to encrypt the login information by using an AES/DES encryption algorithm.
- the second storage module 80 stores the encrypted login information.
- the first storage module 60 is specifically configured to:
- embodiments of the present invention also provide a storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the above method.
- a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or apparatus, or in conjunction with such an instruction execution system, apparatus, or apparatus.
- computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
- the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
- portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
- multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
- a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following techniques known in the art or a combination thereof: Discrete logic for logic gates that implement logic functions on data signals, application specific integrated circuits with suitable combination gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Storage Device Security (AREA)
- Information Transfer Between Computers (AREA)
Abstract
A software login method and system and a storage medium. The method is applied to a terminal device. The method comprises: when a login request signal sent by target software is received, determining whether a USB device is inserted into a terminal device (S101); if so, reading unique hardware information of the USB device, and performing a calculation, on the basis of a preset algorithm, on the hardware information to obtain a unique current identifier of the USB device (S102); determining whether the current identifier matches a pre-stored identifier (S103); and if so, searching for login information corresponding to the identifier, and sending the login information to the target software, such that the target software logs in according to the login information (S104). By using the method, login is performed without writing data to a USB device, improving user experience.
Description
本发明涉及软件领域,特别是涉及一种软件登陆方法、装置及存储介质。The present invention relates to the field of software, and in particular, to a software login method, apparatus, and storage medium.
随着互联网的飞速发展,越来越多的软件开发出来供大家使用,大家在登陆这些软件的过程中,需要输入账号和密码,而在输入设备上输入账号和密码的方式也逐渐在发生改变。With the rapid development of the Internet, more and more software is being developed for everyone to use. In the process of logging in to these softwares, you need to enter an account and password, and the way to enter the account and password on the input device is gradually changing. .
目前登陆软件的方式有传统点在键盘或触摸屏上手动输入,还有手机扫描二维码的方式,但这种方式需要输入设备是在联网的条件下才能实现登陆的,而且受网络速度的影响,影响用户体验,还有一种方式是将用于登陆的信息存储在USB设备中,比如存储在U盘中,软件通过读取U盘中的登陆信息来实现登陆。这种方式需要向USB设备中写入数据,但是很多USB设备都是不支持写入数据的,比如USB鼠标,USB键盘等,因此这些设备就不能用于登陆。At present, the way to log in to the software is traditionally entered manually on the keyboard or touch screen, and the way the mobile phone scans the QR code, but this method requires the input device to be logged in under the condition of networking, and is affected by the network speed. Another way is to store the information used for login in the USB device, such as in the USB flash drive, and the software can log in by reading the login information in the USB flash drive. This method requires writing data to the USB device, but many USB devices do not support writing data, such as USB mouse, USB keyboard, etc., so these devices cannot be used for login.
发明内容Summary of the invention
为此,本发明的一个实施例提出一种不需要向USB设备中写入数据就能实现登陆的软件登陆方法。To this end, an embodiment of the present invention proposes a software login method that can implement login without writing data to a USB device.
根据本发明一实施例的软件登陆方法,应用于终端设备中,所述方法包括:A software login method according to an embodiment of the present invention is applied to a terminal device, and the method includes:
当接收到目标软件发出的登陆请求信号时,判断所述终端设备是否有USB设备插入;When receiving the login request signal sent by the target software, determining whether the terminal device has a USB device inserted;
若是,则读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符;If yes, reading the unique hardware information of the USB device, and calculating the hardware information based on a preset algorithm to obtain a current identifier of the uniqueness of the USB device;
判断所述当前标识符与预存的标识符是否匹配;Determining whether the current identifier matches a pre-stored identifier;
若是,则查找与所述标识符对应的登陆信息,并将所述登陆信息发送给所述目标软件,以使所述目标软件根据所述登陆信息进行登陆。If yes, the login information corresponding to the identifier is searched, and the login information is sent to the target software, so that the target software logs in according to the login information.
根据本发明实施例的软件登陆方法,应用终端设备中,例如应用在计算机
中,在计算机接收到用户发起的目标软件的登陆请求信号,会判断终端设备是否有USB设备插入,若有USB设备插入,就可以用预设算法对所述当前USB设备的唯一性的硬件信息进行计算形成一个唯一性的当前标识符,根据所述当前标识符检索预存在计算机上的标识符是否和所述当前标识符相同,若相同,则会查找预存在计算机上的与当前标识符相对应的目标软件的登陆信息,然后将所述登陆信息发送到所述目标软件进行登陆,此种登陆方法不用向USB设备写入数据,对于很多不具有写入数据功能的USB设备如:USB鼠标和USB键盘等,也能够作为软件登陆的工具,这种不需要手动输入用户名和密码来登陆软件的方法,这大大简化了用户操作,优化了用户的体验。A software login method according to an embodiment of the present invention, in an application terminal device, for example, applied to a computer
The computer receives the login request signal of the target software initiated by the user, and determines whether the terminal device has a USB device inserted. If the USB device is inserted, the unique hardware information of the current USB device can be determined by using a preset algorithm. Performing a calculation to form a unique current identifier, and retrieving, according to the current identifier, whether the identifier on the pre-existing computer is the same as the current identifier, and if the same, searching for the current identifier on the pre-existing computer Corresponding target software login information, and then sending the login information to the target software for login, the login method does not need to write data to the USB device, for many USB devices that do not have the function of writing data, such as: USB mouse And USB keyboard, etc., can also be used as a software login tool, this method does not need to manually enter the user name and password to log in to the software, which greatly simplifies the user operation and optimizes the user experience.
另外,根据本发明上述实施例的软件登陆方法,还可以具有如下附加的技术特征:In addition, the software login method according to the above embodiment of the present invention may further have the following additional technical features:
进一步地,在本发明的一个实施例中,所述读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符的步骤包括:Further, in an embodiment of the present invention, the hardware information of the uniqueness of the USB device is read, and the hardware information is calculated based on a preset algorithm to obtain a current uniqueness of the USB device. The steps of the identifier include:
读取所述USB设备的唯一性的硬件ID和厂商信息;Reading the unique hardware ID and vendor information of the USB device;
按照所述预设算法对所述硬件ID和所述厂商信息进行计算以获得一MD5值,将所述MD5值作为所述USB设备的唯一性的当前标识符。The hardware ID and the vendor information are calculated according to the preset algorithm to obtain an MD5 value, and the MD5 value is used as a current identifier of the uniqueness of the USB device.
进一步地,在本发明的一个实施例中,所述方法还包括:Further, in an embodiment of the present invention, the method further includes:
当检测到所述USB设备首次插入所述终端设备时,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的标识符;When detecting that the USB device is first inserted into the terminal device, reading unique hardware information of the USB device, and calculating the hardware information based on a preset algorithm to obtain uniqueness of the USB device Identifier
建立所述标识符与一登陆信息的对应关系并进行存储,所述登陆信息用于登陆所述目标软件。A correspondence between the identifier and a login information is established and stored, and the login information is used to log in to the target software.
进一步地,在本发明的一个实施例中,所述建立所述标识符与一登陆信息的对应关系并进行存储的步骤之后,所述方法还包括:Further, in an embodiment of the present invention, after the step of establishing the correspondence between the identifier and a login information and storing the method, the method further includes:
采用AES/DES加密算法对所述登陆信息进行加密;Encrypting the login information by using an AES/DES encryption algorithm;
存储加密后的所述登陆信息。The encrypted login information is stored.
进一步地,在本发明的一个实施例中,所述建立所述标识符与一登陆信息
的对应关系并进行存储的步骤包括:Further, in an embodiment of the present invention, the establishing the identifier and a login information
The corresponding relationship and storage steps include:
根据所述标识符与所述登陆信息的对应关系建立映射表;Establishing a mapping table according to the correspondence between the identifier and the login information;
将所述映射表登记到所述终端设备的注册表或磁盘上。Registering the mapping table to the registry or disk of the terminal device.
本发明的另一个实施例提出一种不需要向USB设备中写入数据就能实现登陆的软件登陆装置。Another embodiment of the present invention provides a software login device that enables login without writing data to a USB device.
根据本发明实施例的软件登陆装置,应用于终端设备中,所述装置包括:A software login device according to an embodiment of the present invention is applied to a terminal device, and the device includes:
第一判断模块,用于当接收到目标软件发出的登陆请求信号时,判断所述终端设备是否有USB设备插入;a first determining module, configured to: when receiving the login request signal sent by the target software, determine whether the terminal device has a USB device inserted;
第一计算模块,用于当所述判断模块判断到所述终端设备有USB设备插入时,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符;a first calculating module, configured to: when the determining module determines that the terminal device has a USB device inserted, read unique hardware information of the USB device, and calculate the hardware information based on a preset algorithm. Obtaining a current identifier of the uniqueness of the USB device;
第二判断模块,用于判断所述当前标识符与预存的标识符是否匹配;a second determining module, configured to determine whether the current identifier matches a pre-stored identifier;
发送模块,用于在所述第二判断模块到所述当前标识符与预存的标识符匹配时,查找与所述标识符对应的登陆信息,并将所述登陆信息发送给所述目标软件,以使所述目标软件根据所述登陆信息进行登陆。a sending module, configured to: when the second determining module matches the current identifier with the pre-stored identifier, search for login information corresponding to the identifier, and send the login information to the target software, So that the target software logs in according to the login information.
另外,根据本发明上述实施例的软件登陆装置,还可以具有如下附加的技术特征:In addition, the software login device according to the above embodiment of the present invention may further have the following additional technical features:
进一步地,在本发明的一个实施例中,所述计算模块具体用于:Further, in an embodiment of the present invention, the calculating module is specifically configured to:
读取所述USB设备的唯一性的硬件ID和厂商信息;Reading the unique hardware ID and vendor information of the USB device;
按照所述预设算法对所述硬件ID和所述厂商信息进行计算以获得一MD5值,将所述MD5值作为所述USB设备的唯一性的当前标识符。The hardware ID and the vendor information are calculated according to the preset algorithm to obtain an MD5 value, and the MD5 value is used as a current identifier of the uniqueness of the USB device.
进一步地,在本发明的一个实施例中,所述装置还包括:Further, in an embodiment of the present invention, the device further includes:
第二计算模块,用于当检测到所述USB设备首次插入所述终端设备时,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的标识符;a second calculating module, configured to: when detecting that the USB device is first inserted into the terminal device, read unique hardware information of the USB device, and calculate the hardware information according to a preset algorithm to obtain An identifier of the uniqueness of the USB device;
第一存储模块,用于建立所述标识符与一登陆信息的对应关系并进行存储,所述登陆信息用于登陆所述目标软件。The first storage module is configured to establish and store a correspondence between the identifier and a login information, where the login information is used to log in to the target software.
进一步地,在本发明的一个实施例中,所述装置还包括:
Further, in an embodiment of the present invention, the device further includes:
加密模块,用于采用AES/DES加密算法对所述登陆信息进行加密;An encryption module, configured to encrypt the login information by using an AES/DES encryption algorithm;
第二存储模块,存储加密后的所述登陆信息。The second storage module stores the encrypted login information.
本发明的另一个实施例还提出一种存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述方法的步骤。Another embodiment of the present invention also provides a storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the above method.
本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实施例了解到。The additional aspects and advantages of the invention will be set forth in part in the description which follows.
本发明实施例的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the embodiments of the present invention will become apparent and readily understood from
图1是根据本发明第一实施例的软件登陆方法的流程图;1 is a flow chart of a software login method according to a first embodiment of the present invention;
图2是根据本发明第二实施例的软件登陆方法的流程图;2 is a flow chart of a software login method according to a second embodiment of the present invention;
图3是图2中建立标识符与登陆信息的对应关系并进行存储的详细流程图;3 is a detailed flowchart of establishing a correspondence between identifiers and login information in FIG. 2 and storing the same;
图4是根据本发明第三实施例的软件登陆装置的结构示意图;4 is a schematic structural diagram of a software login device according to a third embodiment of the present invention;
图5是根据本发明第四实施例的软件登陆装置的结构示意图。FIG. 5 is a schematic structural diagram of a software login device according to a fourth embodiment of the present invention.
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
请参阅图1,本发明第一实施例提出的软件登陆方法,应用于USB设备的身份认证登陆,所述方法包括:Referring to FIG. 1 , a software login method according to a first embodiment of the present invention is applied to identity authentication login of a USB device, and the method includes:
S101,当接收到目标软件发出的登陆请求信号时,判断所述终端设备是否有USB设备插入;S101, when receiving the login request signal sent by the target software, determining whether the terminal device has a USB device inserted;
其中,所述终端设备可以是计算机,具体地,本发明实施例的软件登陆方法可以依赖于一安装在计算机上的登陆程序或登陆软件来予以实现。其中,用
户打开目标软件且触发登陆界面时,该登陆程序/软件截取到该目标软件发出的登陆请求信号。具体地,例如当用户打开所述目标软件,所述目标软件通常会显示一个登录界面,此时通常需要用户进行账号的登录,例如需要用户输入自己的用户名以及与账号对应的密码来进行登陆,其中,登陆界面上针对用户名和密码都设置有各自对应的输入编辑框,而当用户通过点击鼠标选中用户名的输入编辑框时,即为计算机接收到目标软件发出的登陆请求信号,而当接收到目标软件发出的登陆请求信号时,会进一步判断计算机当前是否有USB设备插入,具体实施时,计算机可以开启一个后台监听程序,用于监听是否有USB设备插入事件。The terminal device may be a computer. Specifically, the software login method of the embodiment of the present invention may be implemented by using a login program or login software installed on the computer. Among them, use
When the user opens the target software and triggers the login interface, the login program/software intercepts the login request signal sent by the target software. Specifically, for example, when the user opens the target software, the target software usually displays a login interface. In this case, the user usually needs to log in to the account. For example, the user needs to input his/her own user name and the password corresponding to the account to log in. Wherein, the login interface is provided with a corresponding input edit box for the user name and password, and when the user selects the input edit box of the user name by clicking the mouse, the computer receives the login request signal sent by the target software, and When receiving the login request signal sent by the target software, it will further determine whether the computer currently has a USB device inserted. In the specific implementation, the computer can start a background monitor program for monitoring whether there is a USB device insertion event.
S102,若是,则读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符;S102. If yes, reading the unique hardware information of the USB device, and calculating the hardware information based on a preset algorithm to obtain a current identifier of the uniqueness of the USB device;
其中,若计算机监听到了有USB设备插入,则从USB设备中读取该USB设备的唯一性的硬件信息,并且通过预设算法快速地对读取到的硬件信息进行计算,以得到该当前USB设备的硬件信息对应的唯一性的的当前标识符。举例来说,上述的USB设备的硬件信息例如为USB设备的固定属性信息,例如硬件序列号、生产厂家等。预设算法例如可以是摘要算法第五版。因此,具体实施时,计算机可以首先读取所述USB设备的唯一性的硬件ID和厂商信息;然后按照摘要算法第五版对所述硬件ID和所述厂商信息进行计算以获得一MD5值,将所述MD5值作为所述USB设备的唯一性的当前标识符。Wherein, if the computer monitors that a USB device is plugged in, the unique hardware information of the USB device is read from the USB device, and the read hardware information is quickly calculated by a preset algorithm to obtain the current USB. The current identifier of the device's hardware information corresponding to the uniqueness. For example, the hardware information of the USB device described above is, for example, fixed attribute information of the USB device, such as a hardware serial number, a manufacturer, or the like. The preset algorithm may be, for example, the fifth version of the digest algorithm. Therefore, in a specific implementation, the computer may first read the unique hardware ID and vendor information of the USB device; then calculate the hardware ID and the vendor information according to the fifth version of the digest algorithm to obtain an MD5 value. The MD5 value is used as the current identifier of the uniqueness of the USB device.
S103,判断所述当前标识符与预存的标识符是否匹配;S103. Determine whether the current identifier matches a pre-stored identifier.
其中,计算机中需要预先存储一标识符,该预存的标识符也是一MD5值,且预存的标识符对应有一个登陆信息,该登陆信息用于登陆目标软件,该登陆信息例如包括用户名和密码。在步骤S102获得了USB设备的唯一性的当前标识符后,将该当前标识符与预先存储的标识符进行比对,通过判断两个MD5值是否一致,来判断两者是否匹配。本步骤将获取到的当前标识符与预存从标识符进行对比的目的在于:检测当前插入计算机的USB设备是否为用于目标软件登陆的USB设备。The computer needs to store an identifier in advance, and the pre-stored identifier is also an MD5 value, and the pre-stored identifier corresponds to a login information, and the login information is used to log in to the target software, and the login information includes, for example, a username and a password. After the current identifier of the uniqueness of the USB device is obtained in step S102, the current identifier is compared with the pre-stored identifier, and it is determined whether the two MD5 values match or not. The purpose of comparing the obtained current identifier with the pre-stored identifier from this step is to detect whether the USB device currently inserted into the computer is a USB device for the target software to log in.
S104,若是,则查找与所述标识符对应的登陆信息,并将所述登陆信息发
送给所述目标软件,以使所述目标软件根据所述登陆信息进行登陆。S104, if yes, searching for login information corresponding to the identifier, and sending the login information
And sending the target software to enable the target software to log in according to the login information.
若上一步骤S103中所述当前USB设备硬件信息的标识符与预存在计算机上的标识符相同,则根据所述计算机上的标识符查找相对应的所述目标软件的登陆信息,计算机将所述登陆信息传输给目标软件,可以理解的,对于登陆信息是用户名和密码的情况,用户名可以直接显示在登陆界面中的用户名输入框中,而密码可以通过密文的方式显示在登陆界面的中的密码输入框中,而计算机实际接收到的是密码的详细数据,计算机将所述登陆信息传输给目标软件即可完成目标软件的登陆。If the identifier of the current USB device hardware information in the previous step S103 is the same as the identifier on the pre-existing computer, the login information of the corresponding target software is searched according to the identifier on the computer, and the computer will The login information is transmitted to the target software. It can be understood that, for the case where the login information is a user name and a password, the user name can be directly displayed in the user name input box in the login interface, and the password can be displayed in the login interface through the ciphertext mode. In the password input box, and the computer actually receives the detailed data of the password, the computer transmits the login information to the target software to complete the login of the target software.
根据本发明实施例的软件登陆方法,应用终端设备中,例如应用在计算机中,在计算机接收到用户发起的目标软件的登陆请求信号,会判断终端设备是否有USB设备插入,若有USB设备插入,就可以用预设算法对所述当前USB设备的唯一性的硬件信息进行计算形成一个唯一性的当前标识符,根据所述当前标识符检索预存在计算机上的标识符是否和所述当前标识符相同,若相同,则会查找预存在计算机上的与当前标识符相对应的目标软件的登陆信息,然后将所述登陆信息发送到所述目标软件进行登陆,此种登陆方法不用向USB设备写入数据,对于很多不具有写入数据功能的USB设备如:USB鼠标和USB键盘等,也能够作为软件登陆的工具,这种不需要手动输入用户名和密码来登陆软件的方法,这大大简化了用户操作,优化了用户的体验。According to the software login method of the embodiment of the present invention, the application terminal device, for example, is applied in a computer, and when the computer receives the login request signal of the target software initiated by the user, it determines whether the terminal device has a USB device inserted, and if the USB device is inserted. The unique hardware information of the current USB device can be calculated by a preset algorithm to form a unique current identifier, and according to the current identifier, whether the identifier on the pre-existing computer and the current identifier are retrieved according to the current identifier The symbols are the same, if they are the same, the login information of the target software corresponding to the current identifier pre-existing on the computer is searched, and then the login information is sent to the target software for login, and the login method does not need to be sent to the USB device. Write data, for many USB devices that do not have the function of writing data, such as: USB mouse and USB keyboard, etc., can also be used as a software login tool, which does not require manual input of user name and password to log in to the software, which greatly simplifies User operations optimize the user experience.
本发明实施例例如可以应用在下述具体应用环境中:The embodiments of the present invention can be applied, for example, in the following specific application environments:
例如老师上多媒体课的时候需要运用一些软件,而打开这些软件的方式往往是在软件界面上输入用户名和密码,由于软件过多,有时候会忘记用户名和密码,采用本发明实施例提供的方法后,只需要老师自己的U盘插入电脑就可以不用输入密码直接登陆软件。For example, when the teacher attends the multimedia course, some software is needed, and the method of opening the software is often to input the user name and password on the software interface. Due to too much software, the user name and password are sometimes forgotten, and the method provided by the embodiment of the present invention is adopted. After that, you only need to insert the teacher's own USB flash drive into the computer to log in directly to the software without entering a password.
再比如电脑在启动后要输入密码才能登陆,这是不需要手动输入,只需要插入相应的USB设备就可以登陆。For example, if the computer needs to enter a password to log in after booting, this does not require manual input, and only needs to insert the corresponding USB device to log in.
请参阅图2,本发明第二实施例提出的软件登陆方法,应用于终端设备中,所述方法包括:Referring to FIG. 2, a software login method according to a second embodiment of the present invention is applied to a terminal device, where the method includes:
S201,当检测到一USB设备首次插入所述终端设备时,读取所述USB设备
的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的标识符;S201. When detecting that a USB device is first inserted into the terminal device, reading the USB device.
Unique unique hardware information, and calculating the hardware information based on a preset algorithm to obtain an identifier of the uniqueness of the USB device;
S202,建立所述标识符与一登陆信息的对应关系并进行存储,所述登陆信息用于登陆一目标软件;S202. Establish a correspondence between the identifier and a login information, where the login information is used to log in to a target software.
本实施例中的终端设备仍以计算机为例进行说明,需要指出的是,当存在多个USB设备以及多个目标软件时,每个目标软件都有自己对应的登陆信息,计算机会首先读取不同USB设备各自的唯一性的硬件信息,并且根据预设算法快速算出不同USB设备的硬件信息对应的唯一性的标识符,由于每个标识符都是根据USB设备的硬件属性信息计算得到。然后可以为每个登陆信息分配一个标识符,这样目标软件、登陆信息以及标识符就建立了唯一对应的关系,计算机对上述对应关系进行存储。The terminal device in this embodiment still uses a computer as an example for description. It should be noted that when there are multiple USB devices and multiple target softwares, each target software has its own corresponding login information, and the computer will first read the information. Different unique hardware information of different USB devices, and quickly calculate unique identifiers corresponding to hardware information of different USB devices according to a preset algorithm, since each identifier is calculated according to hardware attribute information of the USB device. Each login information can then be assigned an identifier such that the target software, login information, and identifier establish a unique correspondence, and the computer stores the corresponding relationship.
此外,所示为一个具体示例,在步骤S201中,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的标识符的步骤具体包括:In addition, as a specific example, in step S201, the unique hardware information of the USB device is read, and the hardware information is calculated based on a preset algorithm to obtain an identifier of the uniqueness of the USB device. The steps of the character include:
读取所述USB设备的硬件ID和厂商信息;Reading the hardware ID and vendor information of the USB device;
按照所述预设算法对所述硬件ID和所述厂商信息进行计算以获得一MD5值,将所述MD5值作为所述USB设备的唯一性的当前标识符;Performing calculation on the hardware ID and the vendor information according to the preset algorithm to obtain an MD5 value, and using the MD5 value as a current identifier of the uniqueness of the USB device;
当USB设备插入到计算机上,计算机识别USB设备的信息,获取USB设备的硬件ID和厂商信息,然后可以通过摘要算法第五版计算出USB设备的MD5值,得出的MD5值即为USB设备的标识符,可以理解的,在具体实施时也可以通过其它信息例如内存大小,材料信息等来计算MD5值。When the USB device is plugged into the computer, the computer recognizes the information of the USB device, obtains the hardware ID and the manufacturer information of the USB device, and then calculates the MD5 value of the USB device through the fifth version of the digest algorithm, and the obtained MD5 value is the USB device. The identifier of the MD5 value can be calculated by other information such as memory size, material information, etc., in the specific implementation.
上述将对应关系进行存储的方式具体可以为:首先,根据计算得出的标识符与对应的登陆信息的对应关系建立映射表;The manner of storing the corresponding relationship may be: first, establishing a mapping table according to the correspondence between the calculated identifier and the corresponding login information;
其中,所述标识符为预存在计算机中的标识符,所述标识符与对应的所述登陆信息是一一对应,根据这种对应关系建立映射表,使得打开目标软件时,能找到唯一一个与之对应的USB设备实现软件登陆。The identifier is a pre-existing identifier in the computer, and the identifier has a one-to-one correspondence with the corresponding login information, and the mapping table is established according to the correspondence, so that when the target software is opened, a unique one can be found. The corresponding USB device implements software login.
接着,将所述映射表登记到注册表或磁盘上;Then, registering the mapping table to a registry or a disk;
其中,所述标识符与所述对应的登陆信息是通过映射表一一对应在一起的,
在存储时,所述映射表登记到注册表或者磁盘上,这样使得,在计算机检索存储的标识符时,可以在注册表或者磁盘上检索,而查找到标识符的同时,也就相应的找到了登陆信息,用以传输到登入界面,实现软件的登陆。The identifier and the corresponding login information are one-to-one correspondence through a mapping table.
When storing, the mapping table is registered to the registry or the disk, so that when the computer retrieves the stored identifier, it can be retrieved in the registry or on the disk, and when the identifier is found, the corresponding identifier is found. The login information is transmitted to the login interface to enable the login of the software.
此外,请参阅图3,上述步骤S202建立所述标识符与一登陆信息的对应关系并进行存储的步骤还具体包括以下子步骤:In addition, referring to FIG. 3, the step of establishing the correspondence between the identifier and a login information and storing the foregoing step S202 further includes the following sub-steps:
S2021,采用AES/DES加密算法对所述登陆信息进行加密;S2021. The AES/DES encryption algorithm is used to encrypt the login information.
其中,建立所述标识符与对应的登陆信息的对应关系中,用所述标识符作为密钥,采用AES/DES加密算法对登陆信息进行加密,这样加密后,就只能用拥有所述标识符对应的USB设备对加密后的信息进行解密,这样可以保证存储信息的安全,同时,用这种方法也建立了标识符和登陆信息的对应关系,将密码后的登陆信息进行存储。Wherein, in establishing a correspondence between the identifier and the corresponding login information, using the identifier as a key, the login information is encrypted by using an AES/DES encryption algorithm, so that after the encryption, the identifier can only be used. The USB device corresponding to the symbol decrypts the encrypted information, which ensures the security of the stored information. At the same time, the correspondence between the identifier and the login information is established by this method, and the login information after the password is stored.
S2022,存储加密后的所述登陆信息;S2022: Store the encrypted login information.
在对用户名和密码加密过后,将加密后的登陆信息同对应的标识符存储在一起。After encrypting the username and password, the encrypted login information is stored with the corresponding identifier.
S203,当接收到目标软件发出的登陆请求信号时,判断所述终端设备是否有USB设备插入;S203, when receiving the login request signal sent by the target software, determining whether the terminal device has a USB device inserted;
S204,若是,则读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符;S204, if yes, reading unique hardware information of the USB device, and calculating the hardware information based on a preset algorithm to obtain a current identifier of the uniqueness of the USB device;
S205,判断所述当前标识符与预存的标识符是否匹配;S205. Determine whether the current identifier matches a pre-stored identifier.
S206,若是,则查找与所述标识符对应的登陆信息,并将所述登陆信息发送给所述目标软件,以使所述目标软件根据所述登陆信息进行登陆。S206, if yes, searching for login information corresponding to the identifier, and sending the login information to the target software, so that the target software logs in according to the login information.
上述步骤S203至S206的实现可具体参见本发明第一实施例,在本实施例中并不再对此进行赘述。For the implementation of the foregoing steps S203 to S206, reference may be made to the first embodiment of the present invention, and no further details are provided in this embodiment.
请参阅图4,基于同一发明构思,本发明第三实施例提出的一种软件登陆装置,应用于终端设备中,所述装置包括:Referring to FIG. 4, a software login device according to a third embodiment of the present invention is applied to a terminal device, and the device includes:
第一判断模块10,用于当接收到目标软件发出的登陆请求信号时,判断所述终端设备是否有USB设备插入;The first determining module 10 is configured to: when receiving the login request signal sent by the target software, determine whether the terminal device has a USB device inserted;
第一计算模块20,用于当所述判断模块10判断到所述终端设备有USB设
备插入时,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符;The first calculating module 20 is configured to: when the determining module 10 determines that the terminal device has a USB device
Reading the unique hardware information of the USB device, and calculating the hardware information based on a preset algorithm to obtain a current identifier of the uniqueness of the USB device;
第二判断模块30,用于判断所述当前标识符与预存的标识符是否匹配;a second determining module 30, configured to determine whether the current identifier matches a pre-stored identifier;
发送模块40,用于在所述第二判断模块30到所述当前标识符与预存的标识符匹配时,查找与所述标识符对应的登陆信息,并将所述登陆信息发送给所述目标软件,以使所述目标软件根据所述登陆信息进行登陆。The sending module 40 is configured to: when the second determining module 30 matches the current identifier with the pre-stored identifier, search for login information corresponding to the identifier, and send the login information to the target Software for causing the target software to log in according to the login information.
请参阅图5,本发明第四实施例提出的软件登陆装置,应用于终端设备中,所述装置包括:Referring to FIG. 5, a software login device according to a fourth embodiment of the present invention is applied to a terminal device, where the device includes:
第一判断模块10,用于当接收到目标软件发出的登陆请求信号时,判断所述终端设备是否有USB设备插入;The first determining module 10 is configured to: when receiving the login request signal sent by the target software, determine whether the terminal device has a USB device inserted;
第一计算模块20,用于当所述判断模块10判断到所述终端设备有USB设备插入时,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符;The first calculating module 20 is configured to: when the determining module 10 determines that the terminal device has a USB device inserted, read the unique hardware information of the USB device, and perform the hardware information based on a preset algorithm. Calculating a current identifier to obtain uniqueness of the USB device;
第二判断模块30,用于判断所述当前标识符与预存的标识符是否匹配;a second determining module 30, configured to determine whether the current identifier matches a pre-stored identifier;
发送模块40,用于在所述第二判断模块30到所述当前标识符与预存的标识符匹配时,查找与所述标识符对应的登陆信息,并将所述登陆信息发送给所述目标软件,以使所述目标软件根据所述登陆信息进行登陆。The sending module 40 is configured to: when the second determining module 30 matches the current identifier with the pre-stored identifier, search for login information corresponding to the identifier, and send the login information to the target Software for causing the target software to log in according to the login information.
本实施例中,所述第一计算模块20具体用于:In this embodiment, the first calculating module 20 is specifically configured to:
读取所述USB设备的唯一性的硬件ID和厂商信息;Reading the unique hardware ID and vendor information of the USB device;
按照所述预设算法对所述硬件ID和所述厂商信息进行计算以获得一MD5值,将所述MD5值作为所述USB设备的唯一性的当前标识符。The hardware ID and the vendor information are calculated according to the preset algorithm to obtain an MD5 value, and the MD5 value is used as a current identifier of the uniqueness of the USB device.
本实施例中,所述装置还包括:In this embodiment, the device further includes:
第二计算模块50,用于当检测到所述USB设备首次插入所述终端设备时,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的标识符;The second calculating module 50 is configured to: when detecting that the USB device is first inserted into the terminal device, read unique hardware information of the USB device, and calculate the hardware information according to a preset algorithm to obtain An identifier of the uniqueness of the USB device;
第一存储模块60,用于建立所述标识符与一登陆信息的对应关系并进行存储,所述登陆信息用于登陆所述目标软件。The first storage module 60 is configured to establish and store a correspondence between the identifier and a login information, where the login information is used to log in to the target software.
本实施例中,所述装置还包括:
In this embodiment, the device further includes:
加密模块70,用于采用AES/DES加密算法对所述登陆信息进行加密;The encryption module 70 is configured to encrypt the login information by using an AES/DES encryption algorithm.
第二存储模块80,存储加密后的所述登陆信息。The second storage module 80 stores the encrypted login information.
本实施例中,所述第一存储模块60具体用于:In this embodiment, the first storage module 60 is specifically configured to:
根据所述标识符与所述登陆信息的对应关系建立映射表;Establishing a mapping table according to the correspondence between the identifier and the login information;
将所述映射表登记到所述终端设备的注册表或磁盘上。Registering the mapping table to the registry or disk of the terminal device.
本发明第三实施例和第四实施例提出的软件登陆装置的技术特征和技术效果与本发明实施例提出的方法相同,在此不予赘述。The technical features and technical effects of the software login device of the third embodiment and the fourth embodiment of the present invention are the same as those of the embodiment of the present invention, and are not described herein.
此外,本发明的实施例还提出一种存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述方法的步骤。Furthermore, embodiments of the present invention also provide a storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the above method.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,“计算机可读介质”可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。The logic and/or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer readable medium, Used in conjunction with, or in conjunction with, an instruction execution system, apparatus, or device (eg, a computer-based system, a system including a processor, or other system that can fetch instructions and execute instructions from an instruction execution system, apparatus, or device) Or use with equipment. For the purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or apparatus, or in conjunction with such an instruction execution system, apparatus, or apparatus.
计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM). In addition, the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有
用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the invention may be implemented in hardware, software, firmware or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following techniques known in the art or a combination thereof:
Discrete logic for logic gates that implement logic functions on data signals, application specific integrated circuits with suitable combination gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of the present specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" and the like means a specific feature described in connection with the embodiment or example. A structure, material or feature is included in at least one embodiment or example of the invention. In the present specification, the schematic representation of the above terms does not necessarily mean the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples.
尽管已经示出和描述了本发明的实施例,本领域的普通技术人员可以理解:在不脱离本发明的原理和宗旨的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由权利要求及其等同物限定。
While the embodiments of the present invention have been shown and described, the embodiments of the invention may The scope of the invention is defined by the claims and their equivalents.
Claims (10)
- 一种软件登陆方法,应用于终端设备中,其特征在于,所述方法包括:A software login method is applied to a terminal device, and the method includes:当接收到目标软件发出的登陆请求信号时,判断所述终端设备是否有USB设备插入;When receiving the login request signal sent by the target software, determining whether the terminal device has a USB device inserted;若是,则读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符;If yes, reading the unique hardware information of the USB device, and calculating the hardware information based on a preset algorithm to obtain a current identifier of the uniqueness of the USB device;判断所述当前标识符与预存的标识符是否匹配;Determining whether the current identifier matches a pre-stored identifier;若是,则查找与所述标识符对应的登陆信息,并将所述登陆信息发送给所述目标软件,以使所述目标软件根据所述登陆信息进行登陆。If yes, the login information corresponding to the identifier is searched, and the login information is sent to the target software, so that the target software logs in according to the login information.
- 根据权利要求1所述的软件登陆方法,其特征在于,所述读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符的步骤包括:The software login method according to claim 1, wherein the reading the unique hardware information of the USB device, and calculating the hardware information based on a preset algorithm to obtain the uniqueness of the USB device The steps of the current current identifier include:读取所述USB设备的唯一性的硬件ID和厂商信息;Reading the unique hardware ID and vendor information of the USB device;按照所述预设算法对所述硬件ID和所述厂商信息进行计算以获得一MD5值,将所述MD5值作为所述USB设备的唯一性的当前标识符。The hardware ID and the vendor information are calculated according to the preset algorithm to obtain an MD5 value, and the MD5 value is used as a current identifier of the uniqueness of the USB device.
- 根据权利要求1所述的软件登陆方法,其特征在于,所述方法还包括:The software login method according to claim 1, wherein the method further comprises:当检测到所述USB设备首次插入所述终端设备时,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的标识符;When detecting that the USB device is first inserted into the terminal device, reading unique hardware information of the USB device, and calculating the hardware information based on a preset algorithm to obtain uniqueness of the USB device Identifier建立所述标识符与一登陆信息的对应关系并进行存储,所述登陆信息用于登陆所述目标软件。A correspondence between the identifier and a login information is established and stored, and the login information is used to log in to the target software.
- 根据权利要求3所述的软件登陆方法,其特征在于,所述建立所述标识符与一登陆信息的对应关系并进行存储的步骤之后,所述方法还包括:The software login method according to claim 3, wherein after the step of establishing the correspondence between the identifier and a login information and storing the method, the method further comprises:采用AES/DES加密算法对所述登陆信息进行加密;Encrypting the login information by using an AES/DES encryption algorithm;存储加密后的所述登陆信息。The encrypted login information is stored.
- 根据权利要求3所述的软件登陆方法,其特征在于,所述建立所述标识符与一登陆信息的对应关系并进行存储的步骤包括:The software login method according to claim 3, wherein the step of establishing the correspondence between the identifier and a login information and storing the method comprises:根据所述标识符与所述登陆信息的对应关系建立映射表;Establishing a mapping table according to the correspondence between the identifier and the login information;将所述映射表登记到所述终端设备的注册表或磁盘上。 Registering the mapping table to the registry or disk of the terminal device.
- 一种软件登陆装置,应用于终端设备中,其特征在于,所述装置包括:A software login device is applied to a terminal device, and the device includes:第一判断模块,用于当接收到目标软件发出的登陆请求信号时,判断所述终端设备是否有USB设备插入;a first determining module, configured to: when receiving the login request signal sent by the target software, determine whether the terminal device has a USB device inserted;第一计算模块,用于当所述判断模块判断到所述终端设备有USB设备插入时,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符;a first calculating module, configured to: when the determining module determines that the terminal device has a USB device inserted, read unique hardware information of the USB device, and calculate the hardware information based on a preset algorithm. Obtaining a current identifier of the uniqueness of the USB device;第二判断模块,用于判断所述当前标识符与预存的标识符是否匹配;a second determining module, configured to determine whether the current identifier matches a pre-stored identifier;发送模块,用于在所述第二判断模块到所述当前标识符与预存的标识符匹配时,查找与所述标识符对应的登陆信息,并将所述登陆信息发送给所述目标软件,以使所述目标软件根据所述登陆信息进行登陆。a sending module, configured to: when the second determining module matches the current identifier with the pre-stored identifier, search for login information corresponding to the identifier, and send the login information to the target software, So that the target software logs in according to the login information.
- 根据权利要求6所述的软件登陆装置,其特征在于,所述计算模块具体用于:The software login device according to claim 6, wherein the calculation module is specifically configured to:读取所述USB设备的唯一性的硬件ID和厂商信息;Reading the unique hardware ID and vendor information of the USB device;按照所述预设算法对所述硬件ID和所述厂商信息进行计算以获得一MD5值,将所述MD5值作为所述USB设备的唯一性的当前标识符。The hardware ID and the vendor information are calculated according to the preset algorithm to obtain an MD5 value, and the MD5 value is used as a current identifier of the uniqueness of the USB device.
- 根据权利要求6所述的软件登陆装置,其特征在于,所述装置还包括:The software login device of claim 6, wherein the device further comprises:第二计算模块,用于当检测到所述USB设备首次插入所述终端设备时,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的标识符;a second calculating module, configured to: when detecting that the USB device is first inserted into the terminal device, read unique hardware information of the USB device, and calculate the hardware information according to a preset algorithm to obtain An identifier of the uniqueness of the USB device;第一存储模块,用于建立所述标识符与一登陆信息的对应关系并进行存储,所述登陆信息用于登陆所述目标软件。The first storage module is configured to establish and store a correspondence between the identifier and a login information, where the login information is used to log in to the target software.
- 根据权利要求8所述的软件登陆装置,其特征在于,所述装置还包括:The software login device according to claim 8, wherein the device further comprises:加密模块,用于采用AES/DES加密算法对所述登陆信息进行加密;An encryption module, configured to encrypt the login information by using an AES/DES encryption algorithm;第二存储模块,存储加密后的所述登陆信息。The second storage module stores the encrypted login information.
- 一种存储介质,其上存储有计算机指令,其特征在于,该指令被处理器执行时实现权利要求1至5任意一项所述方法的步骤。 A storage medium having computer instructions stored thereon, wherein the instructions are executed by a processor to perform the steps of the method of any one of claims 1 to 5.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710708137.6A CN107516036A (en) | 2017-08-17 | 2017-08-17 | software login method, device and storage medium |
CN201710708137.6 | 2017-08-17 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019033648A1 true WO2019033648A1 (en) | 2019-02-21 |
Family
ID=60723386
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/116365 WO2019033648A1 (en) | 2017-08-17 | 2017-12-15 | Software login method and apparatus and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107516036A (en) |
WO (1) | WO2019033648A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109409115A (en) * | 2018-11-07 | 2019-03-01 | 金蝶软件(中国)有限公司 | A kind of encryption and decryption method and relevant apparatus |
CN109587160A (en) * | 2018-12-19 | 2019-04-05 | 广州联达信息科技有限公司 | A kind of data transfer device, device, readable storage medium storing program for executing and industrial equipment |
CN110084024A (en) * | 2019-04-29 | 2019-08-02 | 四川长虹教育科技有限公司 | Terminal device, the system and method for software login are carried out based on movable storage device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6615353B1 (en) * | 1997-07-23 | 2003-09-02 | Yokogawa Digital Computer Corporation | User authentication method and user authentication system |
CN101222474A (en) * | 2007-01-12 | 2008-07-16 | 迈世亚(北京)科技有限公司 | Mobile memory device and login method for instant communication instrument client terminal |
CN102271042A (en) * | 2011-08-25 | 2011-12-07 | 北京神州绿盟信息安全科技股份有限公司 | Certificate authorization method, system, universal serial bus (USB) Key equipment and server |
CN103034797A (en) * | 2012-12-06 | 2013-04-10 | 大连奥林匹克电子城腾飞办公设备商行 | Computer login system based on USB (universal serial bus) interface |
CN106161442A (en) * | 2016-07-04 | 2016-11-23 | 安徽天达网络科技有限公司 | A kind of system control user login method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB0420409D0 (en) * | 2004-09-14 | 2004-10-20 | Waterleaf Ltd | Online commercial transaction system and method of operation thereof |
CN104518871B (en) * | 2013-09-27 | 2019-03-08 | 北大方正集团有限公司 | A kind of network platform and method of self-service certification movable storage device |
CN106529237B (en) * | 2016-10-28 | 2019-05-10 | 无锡海斯凯尔医学技术有限公司 | Medical Devices login method and device |
-
2017
- 2017-08-17 CN CN201710708137.6A patent/CN107516036A/en active Pending
- 2017-12-15 WO PCT/CN2017/116365 patent/WO2019033648A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6615353B1 (en) * | 1997-07-23 | 2003-09-02 | Yokogawa Digital Computer Corporation | User authentication method and user authentication system |
CN101222474A (en) * | 2007-01-12 | 2008-07-16 | 迈世亚(北京)科技有限公司 | Mobile memory device and login method for instant communication instrument client terminal |
CN102271042A (en) * | 2011-08-25 | 2011-12-07 | 北京神州绿盟信息安全科技股份有限公司 | Certificate authorization method, system, universal serial bus (USB) Key equipment and server |
CN103034797A (en) * | 2012-12-06 | 2013-04-10 | 大连奥林匹克电子城腾飞办公设备商行 | Computer login system based on USB (universal serial bus) interface |
CN106161442A (en) * | 2016-07-04 | 2016-11-23 | 安徽天达网络科技有限公司 | A kind of system control user login method |
Also Published As
Publication number | Publication date |
---|---|
CN107516036A (en) | 2017-12-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108293045B (en) | Single sign-on identity management between local and remote systems | |
WO2020029589A1 (en) | Model parameter acquisition method and system based on federated learning, and readable storage medium | |
JP6402198B2 (en) | Virtual machine image authentication using digital certificates | |
US9430211B2 (en) | System and method for sharing information in a private ecosystem | |
WO2021012973A1 (en) | Image recognition-based screenshot method and apparatus | |
US10127317B2 (en) | Private cloud API | |
US20090129596A1 (en) | System and Method for Controlling Comments in a Collaborative Document | |
US9680644B2 (en) | User authentication system and methods | |
WO2019024230A1 (en) | Information encryption and decryption method and device, computer equipment and storage medium | |
WO2015090247A1 (en) | Account login method and device | |
US20180278797A1 (en) | Image Encryption Method, Image Viewing Method, System, and Terminal | |
US11601281B2 (en) | Managing user profiles securely in a user environment | |
US9183369B2 (en) | Thumb drive guest user | |
US20110179270A1 (en) | Data Retrieval System | |
JP2018502524A (en) | Encryption control for information, information analysis method, system and terminal | |
US20190182293A1 (en) | System and method for sharing information in a private ecosystem | |
WO2019033648A1 (en) | Software login method and apparatus and storage medium | |
WO2017020386A1 (en) | Fingerprint verification method and apparatus | |
CN111200593A (en) | Application login method and device and electronic equipment | |
WO2020073916A1 (en) | Encryption method and apparatus for storage device, and storage medium | |
US10218505B1 (en) | Server based settings for client software with asymmetric signing | |
JP2018032149A (en) | Information processing device, information processing system, information processing method, and program | |
US20140075577A1 (en) | File security control system and method | |
US20240073024A1 (en) | Passkey integration techniques for identity management | |
CN116244682A (en) | Database access method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17922047 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15/10/2020) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17922047 Country of ref document: EP Kind code of ref document: A1 |