WO2019033648A1 - 软件登陆方法、装置及存储介质 - Google Patents
软件登陆方法、装置及存储介质 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
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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
一种软件登陆方法、系统及存储介质,所述方法应用于终端设备中,所述方法包括:当接收到目标软件发出的登陆请求信号时,判断所述终端设备是否有USB设备插入(S101);若是,则读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符(S102);判断所述当前标识符与预存的标识符是否匹配(S103);若是,则查找与所述标识符对应的登陆信息,并将所述登陆信息发送给所述目标软件,以使所述目标软件根据所述登陆信息进行登陆(S104)。该方法不需要向USB设备中写入数据就能实现登陆,优化了用户的体验。
Description
本发明涉及软件领域,特别是涉及一种软件登陆方法、装置及存储介质。
随着互联网的飞速发展,越来越多的软件开发出来供大家使用,大家在登陆这些软件的过程中,需要输入账号和密码,而在输入设备上输入账号和密码的方式也逐渐在发生改变。
目前登陆软件的方式有传统点在键盘或触摸屏上手动输入,还有手机扫描二维码的方式,但这种方式需要输入设备是在联网的条件下才能实现登陆的,而且受网络速度的影响,影响用户体验,还有一种方式是将用于登陆的信息存储在USB设备中,比如存储在U盘中,软件通过读取U盘中的登陆信息来实现登陆。这种方式需要向USB设备中写入数据,但是很多USB设备都是不支持写入数据的,比如USB鼠标,USB键盘等,因此这些设备就不能用于登陆。
发明内容
为此,本发明的一个实施例提出一种不需要向USB设备中写入数据就能实现登陆的软件登陆方法。
根据本发明一实施例的软件登陆方法,应用于终端设备中,所述方法包括:
当接收到目标软件发出的登陆请求信号时,判断所述终端设备是否有USB设备插入;
若是,则读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符;
判断所述当前标识符与预存的标识符是否匹配;
若是,则查找与所述标识符对应的登陆信息,并将所述登陆信息发送给所述目标软件,以使所述目标软件根据所述登陆信息进行登陆。
根据本发明实施例的软件登陆方法,应用终端设备中,例如应用在计算机
中,在计算机接收到用户发起的目标软件的登陆请求信号,会判断终端设备是否有USB设备插入,若有USB设备插入,就可以用预设算法对所述当前USB设备的唯一性的硬件信息进行计算形成一个唯一性的当前标识符,根据所述当前标识符检索预存在计算机上的标识符是否和所述当前标识符相同,若相同,则会查找预存在计算机上的与当前标识符相对应的目标软件的登陆信息,然后将所述登陆信息发送到所述目标软件进行登陆,此种登陆方法不用向USB设备写入数据,对于很多不具有写入数据功能的USB设备如:USB鼠标和USB键盘等,也能够作为软件登陆的工具,这种不需要手动输入用户名和密码来登陆软件的方法,这大大简化了用户操作,优化了用户的体验。
另外,根据本发明上述实施例的软件登陆方法,还可以具有如下附加的技术特征:
进一步地,在本发明的一个实施例中,所述读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符的步骤包括:
读取所述USB设备的唯一性的硬件ID和厂商信息;
按照所述预设算法对所述硬件ID和所述厂商信息进行计算以获得一MD5值,将所述MD5值作为所述USB设备的唯一性的当前标识符。
进一步地,在本发明的一个实施例中,所述方法还包括:
当检测到所述USB设备首次插入所述终端设备时,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的标识符;
建立所述标识符与一登陆信息的对应关系并进行存储,所述登陆信息用于登陆所述目标软件。
进一步地,在本发明的一个实施例中,所述建立所述标识符与一登陆信息的对应关系并进行存储的步骤之后,所述方法还包括:
采用AES/DES加密算法对所述登陆信息进行加密;
存储加密后的所述登陆信息。
进一步地,在本发明的一个实施例中,所述建立所述标识符与一登陆信息
的对应关系并进行存储的步骤包括:
根据所述标识符与所述登陆信息的对应关系建立映射表;
将所述映射表登记到所述终端设备的注册表或磁盘上。
本发明的另一个实施例提出一种不需要向USB设备中写入数据就能实现登陆的软件登陆装置。
根据本发明实施例的软件登陆装置,应用于终端设备中,所述装置包括:
第一判断模块,用于当接收到目标软件发出的登陆请求信号时,判断所述终端设备是否有USB设备插入;
第一计算模块,用于当所述判断模块判断到所述终端设备有USB设备插入时,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符;
第二判断模块,用于判断所述当前标识符与预存的标识符是否匹配;
发送模块,用于在所述第二判断模块到所述当前标识符与预存的标识符匹配时,查找与所述标识符对应的登陆信息,并将所述登陆信息发送给所述目标软件,以使所述目标软件根据所述登陆信息进行登陆。
另外,根据本发明上述实施例的软件登陆装置,还可以具有如下附加的技术特征:
进一步地,在本发明的一个实施例中,所述计算模块具体用于:
读取所述USB设备的唯一性的硬件ID和厂商信息;
按照所述预设算法对所述硬件ID和所述厂商信息进行计算以获得一MD5值,将所述MD5值作为所述USB设备的唯一性的当前标识符。
进一步地,在本发明的一个实施例中,所述装置还包括:
第二计算模块,用于当检测到所述USB设备首次插入所述终端设备时,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的标识符;
第一存储模块,用于建立所述标识符与一登陆信息的对应关系并进行存储,所述登陆信息用于登陆所述目标软件。
进一步地,在本发明的一个实施例中,所述装置还包括:
加密模块,用于采用AES/DES加密算法对所述登陆信息进行加密;
第二存储模块,存储加密后的所述登陆信息。
本发明的另一个实施例还提出一种存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述方法的步骤。
本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实施例了解到。
本发明实施例的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:
图1是根据本发明第一实施例的软件登陆方法的流程图;
图2是根据本发明第二实施例的软件登陆方法的流程图;
图3是图2中建立标识符与登陆信息的对应关系并进行存储的详细流程图;
图4是根据本发明第三实施例的软件登陆装置的结构示意图;
图5是根据本发明第四实施例的软件登陆装置的结构示意图。
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
请参阅图1,本发明第一实施例提出的软件登陆方法,应用于USB设备的身份认证登陆,所述方法包括:
S101,当接收到目标软件发出的登陆请求信号时,判断所述终端设备是否有USB设备插入;
其中,所述终端设备可以是计算机,具体地,本发明实施例的软件登陆方法可以依赖于一安装在计算机上的登陆程序或登陆软件来予以实现。其中,用
户打开目标软件且触发登陆界面时,该登陆程序/软件截取到该目标软件发出的登陆请求信号。具体地,例如当用户打开所述目标软件,所述目标软件通常会显示一个登录界面,此时通常需要用户进行账号的登录,例如需要用户输入自己的用户名以及与账号对应的密码来进行登陆,其中,登陆界面上针对用户名和密码都设置有各自对应的输入编辑框,而当用户通过点击鼠标选中用户名的输入编辑框时,即为计算机接收到目标软件发出的登陆请求信号,而当接收到目标软件发出的登陆请求信号时,会进一步判断计算机当前是否有USB设备插入,具体实施时,计算机可以开启一个后台监听程序,用于监听是否有USB设备插入事件。
S102,若是,则读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符;
其中,若计算机监听到了有USB设备插入,则从USB设备中读取该USB设备的唯一性的硬件信息,并且通过预设算法快速地对读取到的硬件信息进行计算,以得到该当前USB设备的硬件信息对应的唯一性的的当前标识符。举例来说,上述的USB设备的硬件信息例如为USB设备的固定属性信息,例如硬件序列号、生产厂家等。预设算法例如可以是摘要算法第五版。因此,具体实施时,计算机可以首先读取所述USB设备的唯一性的硬件ID和厂商信息;然后按照摘要算法第五版对所述硬件ID和所述厂商信息进行计算以获得一MD5值,将所述MD5值作为所述USB设备的唯一性的当前标识符。
S103,判断所述当前标识符与预存的标识符是否匹配;
其中,计算机中需要预先存储一标识符,该预存的标识符也是一MD5值,且预存的标识符对应有一个登陆信息,该登陆信息用于登陆目标软件,该登陆信息例如包括用户名和密码。在步骤S102获得了USB设备的唯一性的当前标识符后,将该当前标识符与预先存储的标识符进行比对,通过判断两个MD5值是否一致,来判断两者是否匹配。本步骤将获取到的当前标识符与预存从标识符进行对比的目的在于:检测当前插入计算机的USB设备是否为用于目标软件登陆的USB设备。
S104,若是,则查找与所述标识符对应的登陆信息,并将所述登陆信息发
送给所述目标软件,以使所述目标软件根据所述登陆信息进行登陆。
若上一步骤S103中所述当前USB设备硬件信息的标识符与预存在计算机上的标识符相同,则根据所述计算机上的标识符查找相对应的所述目标软件的登陆信息,计算机将所述登陆信息传输给目标软件,可以理解的,对于登陆信息是用户名和密码的情况,用户名可以直接显示在登陆界面中的用户名输入框中,而密码可以通过密文的方式显示在登陆界面的中的密码输入框中,而计算机实际接收到的是密码的详细数据,计算机将所述登陆信息传输给目标软件即可完成目标软件的登陆。
根据本发明实施例的软件登陆方法,应用终端设备中,例如应用在计算机中,在计算机接收到用户发起的目标软件的登陆请求信号,会判断终端设备是否有USB设备插入,若有USB设备插入,就可以用预设算法对所述当前USB设备的唯一性的硬件信息进行计算形成一个唯一性的当前标识符,根据所述当前标识符检索预存在计算机上的标识符是否和所述当前标识符相同,若相同,则会查找预存在计算机上的与当前标识符相对应的目标软件的登陆信息,然后将所述登陆信息发送到所述目标软件进行登陆,此种登陆方法不用向USB设备写入数据,对于很多不具有写入数据功能的USB设备如:USB鼠标和USB键盘等,也能够作为软件登陆的工具,这种不需要手动输入用户名和密码来登陆软件的方法,这大大简化了用户操作,优化了用户的体验。
本发明实施例例如可以应用在下述具体应用环境中:
例如老师上多媒体课的时候需要运用一些软件,而打开这些软件的方式往往是在软件界面上输入用户名和密码,由于软件过多,有时候会忘记用户名和密码,采用本发明实施例提供的方法后,只需要老师自己的U盘插入电脑就可以不用输入密码直接登陆软件。
再比如电脑在启动后要输入密码才能登陆,这是不需要手动输入,只需要插入相应的USB设备就可以登陆。
请参阅图2,本发明第二实施例提出的软件登陆方法,应用于终端设备中,所述方法包括:
S201,当检测到一USB设备首次插入所述终端设备时,读取所述USB设备
的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的标识符;
S202,建立所述标识符与一登陆信息的对应关系并进行存储,所述登陆信息用于登陆一目标软件;
本实施例中的终端设备仍以计算机为例进行说明,需要指出的是,当存在多个USB设备以及多个目标软件时,每个目标软件都有自己对应的登陆信息,计算机会首先读取不同USB设备各自的唯一性的硬件信息,并且根据预设算法快速算出不同USB设备的硬件信息对应的唯一性的标识符,由于每个标识符都是根据USB设备的硬件属性信息计算得到。然后可以为每个登陆信息分配一个标识符,这样目标软件、登陆信息以及标识符就建立了唯一对应的关系,计算机对上述对应关系进行存储。
此外,所示为一个具体示例,在步骤S201中,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的标识符的步骤具体包括:
读取所述USB设备的硬件ID和厂商信息;
按照所述预设算法对所述硬件ID和所述厂商信息进行计算以获得一MD5值,将所述MD5值作为所述USB设备的唯一性的当前标识符;
当USB设备插入到计算机上,计算机识别USB设备的信息,获取USB设备的硬件ID和厂商信息,然后可以通过摘要算法第五版计算出USB设备的MD5值,得出的MD5值即为USB设备的标识符,可以理解的,在具体实施时也可以通过其它信息例如内存大小,材料信息等来计算MD5值。
上述将对应关系进行存储的方式具体可以为:首先,根据计算得出的标识符与对应的登陆信息的对应关系建立映射表;
其中,所述标识符为预存在计算机中的标识符,所述标识符与对应的所述登陆信息是一一对应,根据这种对应关系建立映射表,使得打开目标软件时,能找到唯一一个与之对应的USB设备实现软件登陆。
接着,将所述映射表登记到注册表或磁盘上;
其中,所述标识符与所述对应的登陆信息是通过映射表一一对应在一起的,
在存储时,所述映射表登记到注册表或者磁盘上,这样使得,在计算机检索存储的标识符时,可以在注册表或者磁盘上检索,而查找到标识符的同时,也就相应的找到了登陆信息,用以传输到登入界面,实现软件的登陆。
此外,请参阅图3,上述步骤S202建立所述标识符与一登陆信息的对应关系并进行存储的步骤还具体包括以下子步骤:
S2021,采用AES/DES加密算法对所述登陆信息进行加密;
其中,建立所述标识符与对应的登陆信息的对应关系中,用所述标识符作为密钥,采用AES/DES加密算法对登陆信息进行加密,这样加密后,就只能用拥有所述标识符对应的USB设备对加密后的信息进行解密,这样可以保证存储信息的安全,同时,用这种方法也建立了标识符和登陆信息的对应关系,将密码后的登陆信息进行存储。
S2022,存储加密后的所述登陆信息;
在对用户名和密码加密过后,将加密后的登陆信息同对应的标识符存储在一起。
S203,当接收到目标软件发出的登陆请求信号时,判断所述终端设备是否有USB设备插入;
S204,若是,则读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符;
S205,判断所述当前标识符与预存的标识符是否匹配;
S206,若是,则查找与所述标识符对应的登陆信息,并将所述登陆信息发送给所述目标软件,以使所述目标软件根据所述登陆信息进行登陆。
上述步骤S203至S206的实现可具体参见本发明第一实施例,在本实施例中并不再对此进行赘述。
请参阅图4,基于同一发明构思,本发明第三实施例提出的一种软件登陆装置,应用于终端设备中,所述装置包括:
第一判断模块10,用于当接收到目标软件发出的登陆请求信号时,判断所述终端设备是否有USB设备插入;
第一计算模块20,用于当所述判断模块10判断到所述终端设备有USB设
备插入时,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符;
第二判断模块30,用于判断所述当前标识符与预存的标识符是否匹配;
发送模块40,用于在所述第二判断模块30到所述当前标识符与预存的标识符匹配时,查找与所述标识符对应的登陆信息,并将所述登陆信息发送给所述目标软件,以使所述目标软件根据所述登陆信息进行登陆。
请参阅图5,本发明第四实施例提出的软件登陆装置,应用于终端设备中,所述装置包括:
第一判断模块10,用于当接收到目标软件发出的登陆请求信号时,判断所述终端设备是否有USB设备插入;
第一计算模块20,用于当所述判断模块10判断到所述终端设备有USB设备插入时,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符;
第二判断模块30,用于判断所述当前标识符与预存的标识符是否匹配;
发送模块40,用于在所述第二判断模块30到所述当前标识符与预存的标识符匹配时,查找与所述标识符对应的登陆信息,并将所述登陆信息发送给所述目标软件,以使所述目标软件根据所述登陆信息进行登陆。
本实施例中,所述第一计算模块20具体用于:
读取所述USB设备的唯一性的硬件ID和厂商信息;
按照所述预设算法对所述硬件ID和所述厂商信息进行计算以获得一MD5值,将所述MD5值作为所述USB设备的唯一性的当前标识符。
本实施例中,所述装置还包括:
第二计算模块50,用于当检测到所述USB设备首次插入所述终端设备时,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的标识符;
第一存储模块60,用于建立所述标识符与一登陆信息的对应关系并进行存储,所述登陆信息用于登陆所述目标软件。
本实施例中,所述装置还包括:
加密模块70,用于采用AES/DES加密算法对所述登陆信息进行加密;
第二存储模块80,存储加密后的所述登陆信息。
本实施例中,所述第一存储模块60具体用于:
根据所述标识符与所述登陆信息的对应关系建立映射表;
将所述映射表登记到所述终端设备的注册表或磁盘上。
本发明第三实施例和第四实施例提出的软件登陆装置的技术特征和技术效果与本发明实施例提出的方法相同,在此不予赘述。
此外,本发明的实施例还提出一种存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述方法的步骤。
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,“计算机可读介质”可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。
计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有
用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。
尽管已经示出和描述了本发明的实施例,本领域的普通技术人员可以理解:在不脱离本发明的原理和宗旨的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由权利要求及其等同物限定。
Claims (10)
- 一种软件登陆方法,应用于终端设备中,其特征在于,所述方法包括:当接收到目标软件发出的登陆请求信号时,判断所述终端设备是否有USB设备插入;若是,则读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符;判断所述当前标识符与预存的标识符是否匹配;若是,则查找与所述标识符对应的登陆信息,并将所述登陆信息发送给所述目标软件,以使所述目标软件根据所述登陆信息进行登陆。
- 根据权利要求1所述的软件登陆方法,其特征在于,所述读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符的步骤包括:读取所述USB设备的唯一性的硬件ID和厂商信息;按照所述预设算法对所述硬件ID和所述厂商信息进行计算以获得一MD5值,将所述MD5值作为所述USB设备的唯一性的当前标识符。
- 根据权利要求1所述的软件登陆方法,其特征在于,所述方法还包括:当检测到所述USB设备首次插入所述终端设备时,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的标识符;建立所述标识符与一登陆信息的对应关系并进行存储,所述登陆信息用于登陆所述目标软件。
- 根据权利要求3所述的软件登陆方法,其特征在于,所述建立所述标识符与一登陆信息的对应关系并进行存储的步骤之后,所述方法还包括:采用AES/DES加密算法对所述登陆信息进行加密;存储加密后的所述登陆信息。
- 根据权利要求3所述的软件登陆方法,其特征在于,所述建立所述标识符与一登陆信息的对应关系并进行存储的步骤包括:根据所述标识符与所述登陆信息的对应关系建立映射表;将所述映射表登记到所述终端设备的注册表或磁盘上。
- 一种软件登陆装置,应用于终端设备中,其特征在于,所述装置包括:第一判断模块,用于当接收到目标软件发出的登陆请求信号时,判断所述终端设备是否有USB设备插入;第一计算模块,用于当所述判断模块判断到所述终端设备有USB设备插入时,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的当前标识符;第二判断模块,用于判断所述当前标识符与预存的标识符是否匹配;发送模块,用于在所述第二判断模块到所述当前标识符与预存的标识符匹配时,查找与所述标识符对应的登陆信息,并将所述登陆信息发送给所述目标软件,以使所述目标软件根据所述登陆信息进行登陆。
- 根据权利要求6所述的软件登陆装置,其特征在于,所述计算模块具体用于:读取所述USB设备的唯一性的硬件ID和厂商信息;按照所述预设算法对所述硬件ID和所述厂商信息进行计算以获得一MD5值,将所述MD5值作为所述USB设备的唯一性的当前标识符。
- 根据权利要求6所述的软件登陆装置,其特征在于,所述装置还包括:第二计算模块,用于当检测到所述USB设备首次插入所述终端设备时,读取所述USB设备的唯一性的硬件信息,并基于预设算法对所述硬件信息进行计算以获得所述USB设备的唯一性的标识符;第一存储模块,用于建立所述标识符与一登陆信息的对应关系并进行存储,所述登陆信息用于登陆所述目标软件。
- 根据权利要求8所述的软件登陆装置,其特征在于,所述装置还包括:加密模块,用于采用AES/DES加密算法对所述登陆信息进行加密;第二存储模块,存储加密后的所述登陆信息。
- 一种存储介质,其上存储有计算机指令,其特征在于,该指令被处理器执行时实现权利要求1至5任意一项所述方法的步骤。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710708137.6A CN107516036A (zh) | 2017-08-17 | 2017-08-17 | 软件登陆方法、装置及存储介质 |
| CN201710708137.6 | 2017-08-17 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019033648A1 true WO2019033648A1 (zh) | 2019-02-21 |
Family
ID=60723386
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/116365 Ceased WO2019033648A1 (zh) | 2017-08-17 | 2017-12-15 | 软件登陆方法、装置及存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107516036A (zh) |
| WO (1) | WO2019033648A1 (zh) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109409115A (zh) * | 2018-11-07 | 2019-03-01 | 金蝶软件(中国)有限公司 | 一种加密、解密方法及相关装置 |
| CN109587160A (zh) * | 2018-12-19 | 2019-04-05 | 广州联达信息科技有限公司 | 一种数据转换方法、装置、可读存储介质及工业设备 |
| CN110084024A (zh) * | 2019-04-29 | 2019-08-02 | 四川长虹教育科技有限公司 | 基于移动存储设备进行软件登录的终端设备、系统及方法 |
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 (zh) * | 2007-01-12 | 2008-07-16 | 迈世亚(北京)科技有限公司 | 移动存储设备和即时通信工具客户端的登录方法 |
| CN102271042A (zh) * | 2011-08-25 | 2011-12-07 | 北京神州绿盟信息安全科技股份有限公司 | 数字证书认证方法、系统、USB Key设备和服务器 |
| CN103034797A (zh) * | 2012-12-06 | 2013-04-10 | 大连奥林匹克电子城腾飞办公设备商行 | 基于usb接口的计算机登录系统 |
| CN106161442A (zh) * | 2016-07-04 | 2016-11-23 | 安徽天达网络科技有限公司 | 一种系统控制用户登录方法 |
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 (zh) * | 2013-09-27 | 2019-03-08 | 北大方正集团有限公司 | 一种自助认证移动存储设备的网络平台及方法 |
| CN106529237B (zh) * | 2016-10-28 | 2019-05-10 | 无锡海斯凯尔医学技术有限公司 | 医疗设备登录方法和装置 |
-
2017
- 2017-08-17 CN CN201710708137.6A patent/CN107516036A/zh active Pending
- 2017-12-15 WO PCT/CN2017/116365 patent/WO2019033648A1/zh not_active Ceased
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 (zh) * | 2007-01-12 | 2008-07-16 | 迈世亚(北京)科技有限公司 | 移动存储设备和即时通信工具客户端的登录方法 |
| CN102271042A (zh) * | 2011-08-25 | 2011-12-07 | 北京神州绿盟信息安全科技股份有限公司 | 数字证书认证方法、系统、USB Key设备和服务器 |
| CN103034797A (zh) * | 2012-12-06 | 2013-04-10 | 大连奥林匹克电子城腾飞办公设备商行 | 基于usb接口的计算机登录系统 |
| CN106161442A (zh) * | 2016-07-04 | 2016-11-23 | 安徽天达网络科技有限公司 | 一种系统控制用户登录方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107516036A (zh) | 2017-12-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108293045B (zh) | 本地和远程系统之间的单点登录身份管理 | |
| US10091127B2 (en) | Enrolling a mobile device with an enterprise mobile device management environment | |
| JP6402198B2 (ja) | デジタル証明書を用いた仮想マシンイメージの認証 | |
| CN116097615B (zh) | 使用密钥协商的认证 | |
| US9319358B2 (en) | Terminal interaction methods and related devices and systems | |
| WO2021012973A1 (zh) | 一种基于图像识别的截图方法和装置 | |
| WO2019024230A1 (zh) | 信息加密解密方法、装置、计算机设备和存储介质 | |
| US12250317B2 (en) | Passkey integration techniques for identity management | |
| US20160085861A1 (en) | Private cloud api | |
| WO2015090247A1 (zh) | 一种帐号登录方法和装置 | |
| US20110179270A1 (en) | Data Retrieval System | |
| CN110889131A (zh) | 一种文件共享系统 | |
| JP2018502524A (ja) | 情報に対する暗号化制御、情報解析の方法、システム及び端末 | |
| CN107690175B (zh) | 一种用于管理无线接入点的方法与设备 | |
| CN107528830B (zh) | 账号登陆方法、系统及存储介质 | |
| CN105490711A (zh) | 蓝牙自动连接方法以及主设备、从设备和系统 | |
| CN106462688A (zh) | 跨web和移动的通用认证器 | |
| CN112948857B (zh) | 一种文档处理方法及装置 | |
| US20240106816A1 (en) | Secure endpoint authentication credential control | |
| CN115129332A (zh) | 固件烧录方法、计算机设备及可读存储介质 | |
| WO2019033648A1 (zh) | 软件登陆方法、装置及存储介质 | |
| CN111092867B (zh) | Ssh后门账号检测方法、装置及电子设备和存储介质 | |
| CN110020040A (zh) | 查询数据的方法、装置和系统 | |
| CN113326526B (zh) | 一种数据访问方法、装置、设备及存储介质 | |
| CN107992760B (zh) | 秘钥写入方法、装置、设备及存储介质 |
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 |