Device access method, system, electronic device and storage medium

By generating the target password and comparing it with the user input password, the problem of cumbersome password updates and the difficulty of one-time passwords to take effect on non-networked devices is solved, and the automation and flexibility of device access is achieved.

CN119128869BActive Publication Date: 2025-05-13BEIJING CONSEN AUTOMATION CONTROL
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411308196.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-19
Publication Date
2025-05-13
Estimated Expiration
2044-09-19

AI Technical Summary

Technical Problem

In the existing device access method, the password needs to be manually updated after it expires, the process is cumbersome and not flexible enough, and the one-time password is difficult to take effect on non-networked devices, and human-computer interaction is complex.

Method used

By receiving the password entered by the user, extracting the first three characters as predetermined keywords, and generating the target password with the current timestamp, device serial number and preset key, to realize automated password verification and permission management.

Benefits of technology

No need to monitor and update passwords regularly, simplify the user login process, and is suitable for non-networked, online devices and networked devices, improving the flexibility and security of password management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119128869B_ABST
    Figure CN119128869B_ABST
Patent Text Reader

Abstract

The present invention discloses a device access method, system, electronic device and storage medium, the method comprising: receiving a password input by a user; extracting the first three characters of the input password when it is determined that the input password is a first login password; processing a combined character string consisting of a current timestamp, a device serial number and a preset key to obtain a target password when it is determined that each extracted character is a predetermined keyword; if it is determined through comparison that the input password and the target password are consistent, the user successfully logs into the device operating system; the method realizes automatic generation of a group of passwords through a predetermined password generation rule to compare with the input password, without the need to set a one-time password through a pre-stored password that is regularly monitored and updated or relying on networking or upper and lower computers, and has a wide range of applications, and can be applied to non-networked, online devices and networked devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of device access restriction, and more specifically, to a device access method, system, electronic device and storage medium. Background Art

[0002] Specific devices usually set passwords to restrict access, thereby protecting the device's own security. When users access the device, they need to enter the correct password to access the device for subsequent operations. Different devices may have different password setting requirements, and users need to set device passwords according to specific circumstances; at the same time, in order to improve the security of passwords, users also take some measures to strengthen password protection, such as changing passwords regularly, using password tools, and setting password validity periods.

[0003] However, there are some problems with the scheme of writing scheduled tasks to regularly check whether the user password has expired and taking corresponding measures when the password expires, such as sending reminders or forcing users to change passwords: users need to be reminded to update their passwords regularly, and when the password expires, they need to manually set and update the new password. The process is cumbersome, and the password validity period is not flexible enough. There are some problems with the scheme of using one-time passwords: when managers or debugging personnel need to debug or maintain equipment within a certain period of time, they need to apply for a password every time they log in, which is not friendly to on-site staff, and this method is difficult to take effect on independent devices that are not connected to the Internet. In addition, at this stage, most passwords are determined by selecting different user names to determine their permissions, and human-computer interaction is relatively complicated.

[0004] In summary, at this stage, there is an urgent need to develop a device access method, system, electronic device and storage medium to solve one or more of the above-mentioned problems. Summary of the invention

[0005] An object of the present invention is to provide a new technical solution for a device access method, system, electronic device and storage medium.

[0006] According to a first aspect of the present invention, a device access method is provided, the method comprising:

[0007] Step S1: receiving the user's input password;

[0008] Step S2: if it is determined that the input password is the first login password, extract the first three characters of the input password;

[0009] Step S3: When it is determined that each extracted character is a predetermined keyword, a combined character string consisting of the current timestamp, the device serial number and the preset key is processed to obtain a target password;

[0010] Step S4: If it is determined through comparison that the input password and the target password are consistent, the user has successfully logged into the device operating system.

[0011] Optionally, in step S2, when a password consistent with the input password is not matched from the password library, it is determined that the input password is a first login password; wherein the password library stores passwords for successful historical logins.

[0012] Optionally, the predetermined keyword includes: a predetermined validity period type keyword, a predetermined validity period duration keyword and a predetermined validity period authority type keyword.

[0013] Optionally, the step S3 specifically includes:

[0014] Step S31: determine whether the first character of the input password is a predetermined validity period type keyword, if yes, extract the current device timestamp according to the validity period type determined by the first character of the input password, and proceed to step S32;

[0015] Step S32: determining whether the second character of the input password is a keyword of a predetermined validity period, if yes, proceeding to step S33;

[0016] Step S33: determining whether the third character of the input password is a keyword of a predetermined validity period authority type, and if so, selecting the corresponding preset key according to the validity period authority type determined by the third character of the input password;

[0017] Step S34: Processing the combined character string consisting of the current timestamp, the device serial number and the preset key to obtain the target password.

[0018] Optionally, the step S34 specifically includes:

[0019] Arrange the current timestamp, the device serial number and the preset key in sequence to obtain a combined character string;

[0020] Performing encryption operation on the combined character string by using an encryption algorithm to obtain a new character string;

[0021] The new character string is converted to obtain the target password.

[0022] Optionally, the step S4 further includes: opening corresponding account permissions for the user according to the validity period permission type determined by the third character of the input password.

[0023] Optionally, the step S4 further includes: calculating an expiration time based on a predetermined validity period determined by the second character of the input password and the current device timestamp, and storing the input password in a data linked list of the password library according to the expiration time.

[0024] According to a second aspect of the present invention, there is provided a device access system, the system comprising:

[0025] The receiving module is configured to receive a password input by a user;

[0026] A first processing module is configured to extract the first three characters of the input password when it is determined that the input password is a first login password;

[0027] The second processing module is configured to, when it is determined that each extracted character is a predetermined keyword, process a combined string consisting of a current timestamp, a device serial number, and a preset key to obtain a target password;

[0028] The third processing module is configured to: if it is determined through comparison that the input password and the target password are consistent, then the user has successfully logged into the device operating system.

[0029] Optionally, the first processing module is specifically configured to:

[0030] When no password consistent with the input password is matched from the password library, the input password is determined to be the first login password; wherein the password library stores passwords of successful historical logins.

[0031] Optionally, the predetermined keyword includes: a predetermined validity period type keyword, a predetermined validity period duration keyword and a predetermined validity period authority type keyword.

[0032] Optionally, the second processing module includes:

[0033] A first judgment unit is configured to judge whether the first character of the input password is a predetermined validity period type keyword, and if so, extract the current device timestamp according to the validity period type determined by the first character of the input password, and proceed to step S32;

[0034] The second judgment unit is configured to judge whether the second character of the input password is a predetermined validity period keyword, and if so, proceed to step S33;

[0035] A third judgment unit is configured to judge whether the third character of the input password is a keyword of a predetermined validity period permission type, and if so, select the corresponding preset key according to the validity period permission type determined by the third character of the input password;

[0036] The processing unit is configured to process a combined character string consisting of the current timestamp, the device serial number and the preset key to obtain the target password.

[0037] Optionally, the processing unit is specifically configured to: arrange the current timestamp, the device serial number and the preset key in sequence to obtain a combined string; perform encryption operation on the combined string through an encryption algorithm to obtain a new string; and convert the new string to obtain the target password.

[0038] Optionally, the third processing module is further configured to enable corresponding account permissions for the user according to the validity period permission type determined by the third character of the input password.

[0039] Optionally, the third processing module is further configured to calculate an expiration time based on a predetermined validity period determined by the second character of the input password and the current device timestamp, and store the input password in a data linked list of the password library according to the expiration time.

[0040] According to a third aspect of the present invention, an electronic device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps in a device access method as described in the first aspect of the present invention are implemented.

[0041] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in a device access method as described in the first aspect of the present invention are implemented.

[0042] According to an embodiment disclosed in the present invention, a device access method and system of the present invention have the following beneficial effects:

[0043] The device access method of the present invention first receives the user's input password; when it is determined that the input password is the first login password, the first three characters of the input password are extracted; then, when it is determined that each extracted character is a predetermined keyword, the combined character string composed of the current timestamp, the device serial number and the preset key is processed to obtain the target password; finally, if it is determined through comparison that the input password and the target password are consistent, the user successfully logs into the device operating system; the method of the present invention realizes the automatic generation of a group of passwords through the predetermined password generation rules to compare with the input password, without the need to set a one-time password through a pre-stored password that is regularly monitored and updated or relying on networking or upper and lower computers, and is suitable for a wide range of applications, and can be applicable to non-networked, online devices and networked devices.

[0044] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.

[0046] Figure 1 A schematic diagram of a flow chart of a device access method provided according to an embodiment;

[0047] Figure 2 A schematic diagram of a process for generating a target password in a device access method provided according to an embodiment;

[0048] Figure 3 A schematic diagram of a specific identification process of a user logging into a device in the device access method provided in this embodiment;

[0049] Figure 4 A schematic diagram of the structure of a device access system provided according to an embodiment;

[0050] Figure 5 A schematic diagram of an electronic device. DETAILED DESCRIPTION

[0051] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.

[0052] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.

[0053] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0054] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0055] Embodiment 1:

[0056] See also Figure 1 As shown, an embodiment of the present invention provides a device access method, the method comprising:

[0057] Step S1: receiving the user's input password.

[0058] It should be noted that in this step, when the user accesses the device (device operating system or device operation interface), he or she only needs to enter the password without entering the account information.

[0059] Step S2: When it is determined that the input password is the first login password, the first three characters of the input password are extracted.

[0060] Optionally, in step S2 of the device access method of this embodiment, when a password consistent with the input password is not matched from the password library, the input password is determined to be the first login password; wherein the password library stores passwords for historical successful logins.

[0061] When receiving the input password from the user, this embodiment first queries the password library to confirm whether the input password is a password for a successful historical login. If no consistent password is matched in the password library, the input password is determined to be the first login password; if a consistent password is matched in the password library, the input password is determined to be a password for a successful historical login, and the login is successful directly and the corresponding permissions are granted.

[0062] It should be noted that in this embodiment, all passwords for successful historical logins will be stored in the password library, and the password library will periodically check the validity period of the passwords, and when a password is found to be expired, it will be automatically deleted from the password library.

[0063] Specifically, the data content of the password library is as follows, which can be recorded as st_recordPwdContent_t:

[0064] a. Password content (for direct comparison with the received password);

[0065] b. Password permissions (used to record the permissions of the password);

[0066] c. The timestamp of the password expiration time (calculate the expiration time of the password in advance to facilitate periodic detection and clearing of expired historical passwords);

[0067] d. It can also include the password information used to store previous logins.

[0068] Specifically, the storage data structure of the password library can be recorded as st_recordPwdNode_t:

[0069] All logged-in passwords are stored in a single linked list. New passwords are inserted into the linked list in order of expiration time (passwords that expire earlier are inserted at the front of the linked list. This method facilitates the quick removal of all expired passwords. The linked list will be checked periodically and expired passwords will be automatically deleted from the linked list).

[0070] Step S3: When it is determined that each extracted character is a predetermined keyword, a combined character string consisting of the current timestamp, the device serial number and the preset key is processed to obtain a target password.

[0071] It should be noted that in this embodiment, the device does not pre-store passwords in advance, but rather pre-sets password generation rules, and automatically generates a set of target passwords based on the rules to compare with the input password entered by the user.

[0072] Optionally, the predetermined keyword in the device access method of this embodiment includes: a predetermined validity period type keyword, a predetermined validity period duration keyword and a predetermined validity period authority type keyword.

[0073] Specifically, the definition of the predetermined keywords is as follows:

[0074] Predetermined validity period type keyword (can be the first character in the password):

[0075] a.'T': indicates that the password is valid for hours;

[0076] b.'D': indicates that the password is valid for a period of days;

[0077] c.'M': Indicates that the password is valid for months.

[0078] Predetermined validity period keywords (which may be the second character in the password): "1-9" and "A-F", where "A-F" represents "10-15".

[0079] Predetermined validity period permission type keyword (can be the third character in the password):

[0080] a.'S': indicates super administrator privileges. For example, the corresponding key when the password is generated is "smng123";

[0081] b.'D': indicates debugging permission, for example, the corresponding key when the password is generated is "debug123";

[0082] c.'A': indicates full-function permissions, for example, the corresponding key when the password is generated is "allFunc123"

[0083] Optionally, step S3 in the device access method of this embodiment specifically includes:

[0084] Step S31: determine whether the first character of the input password is a predetermined validity period type keyword. If yes, extract the current device timestamp according to the validity period type determined by the first character of the input password, and proceed to step S32;

[0085] If it is determined that the first character of the input password is not a keyword of the predetermined validity period type, a login failure is directly fed back.

[0086] Step S32: Determine whether the second character of the input password is a keyword of the predetermined validity period, if yes, proceed to step S33;

[0087] If it is determined that the second character of the input password is not a keyword for the predetermined validity period, a login failure is directly fed back.

[0088] Step S33: determining whether the third character of the input password is a keyword of a predetermined validity period authority type, and if so, selecting a corresponding preset key according to the validity period authority type determined by the third character of the input password;

[0089] If it is determined that the third character of the input password is not a keyword of the predetermined validity period permission type, a login failure is directly fed back.

[0090] Step S34: Process the combined character string consisting of the current timestamp, the device serial number and the preset key to obtain the target password.

[0091] Optionally, step S34 in the device access method of this embodiment specifically includes: arranging the current timestamp, the device serial number and the preset key in sequence to obtain a combined string; encrypting the combined string through an encryption algorithm to obtain a new string; and converting the new string to obtain a target password.

[0092] It should be noted that in this embodiment, the previous timestamp, device serial number and preset key can also be arranged in other orders, which are determined according to the needs of the user, and are not listed here one by one. In this embodiment, the encryption algorithm can be a reversible encryption algorithm or an irreversible encryption algorithm. In order to improve security, an irreversible encryption algorithm is preferably used. For example, the encryption algorithm is the md5 information digest algorithm. Of course, it can also be other encryption algorithms, which are not listed here one by one. In this embodiment, in order to further improve the security of the password, the new string needs to be converted, such as taking an even number of digits. Of course, other conversion strategies can also be used, which are not listed here one by one.

[0093] For details, see Figure 2 As shown, the specific process of generating the target password in this embodiment can be:

[0094] Step 1: Get the device serial number;

[0095] Step 2: Get the current device timestamp;

[0096] Step 3: Connect the serial number (such as KJS1234567) and the current device timestamp (such as 2024-0815-154721) into a string according to specific needs (if the password is required to be valid on the same day, the time is only taken to the day: KJS12345620240815; if the password is required to be valid within the current hour, the time is taken to the hour: KJS1234562024081515)

[0097] Step 4: Add the corresponding preset key to form a combined string according to different requirements (the permissions required for the password and the target user);

[0098] Step 5: Encrypt the combined string using an irreversible encryption algorithm to obtain a new string;

[0099] Step 6: You can add fixed characters (such as 3 fixed characters) before the new character string and then perform a conversion (for example: take an even number of digits) to form the target password.

[0100] Step S4: If the input password and the target password are determined to be consistent through comparison, the user has successfully logged into the device operating system.

[0101] Optionally, step S4 in the device access method of this embodiment further includes: opening corresponding account permissions for the user according to the validity period permission type determined by the third character of the input password.

[0102] In this embodiment, when logging into the device, there is no need to enter the permission level of the login account. The device will confirm the permissions of the current user based on the validity period permission type determined by the third character of the entered password, thereby simplifying human-computer interaction and hiding the user's identity to avoid leakage.

[0103] Optionally, step S4 in the device access method of this embodiment further includes: calculating the expiration time based on the predetermined validity period determined by the second character of the input password and the current device timestamp, and storing the input password in a data linked list of the password library according to the expiration time.

[0104] In this embodiment, when the input password is consistent with the target password, the input password will be stored in the password library as a historical successful login password. At this time, it is necessary to record the historical login information of the input password, including the password content, password authority, and the timestamp of the password expiration time, etc.

[0105] This embodiment can realize autonomous identification of passwords with different validity periods and different functional permissions, without the need to regularly update the validity period of the device password through the network or a third-party device.

[0106] For details, see Figure 3 As shown in the figure, the specific identification process of the user logging into the device is as follows:

[0107] Step 1: Identify the input password from the password library. If there is a consistent and unexpired password, the login is successful and the corresponding permissions are granted; if not, proceed to the next step;

[0108] Step 2: Start password recognition and determine whether the first character of the password is one of "T", "D" or "M". If yes, continue; if not, password recognition fails.

[0109] According to the type of the first character, the current time is taken in turn as hour (the first character is "T"), day (the first character is "D"), and month (the first character is "M"), and then combined with the serial number of the current device to form a string S1 (where the serial number comes first and the time comes second. This arrangement is a custom rule and the order is variable)

[0110] Step 3: Determine whether the second character of the input password (password validity period) is one of "1-9" or "A-F". If yes, continue; if not, password recognition fails;

[0111] Step 4: Determine whether the third character of the input password (password validity period permission type) is one of "S", "D", and "A". If it is, continue; if not, password recognition fails;

[0112] According to the type of the third character, add the corresponding key after the string S1 generated in step 2, "smng123" (when the second character is "S", the user has super management privileges), "debug123" (when the second character is "D", the technician has debugging privileges), "allFunc123" (when the second character is "A", all privileges), and the new string is recorded as S2;

[0113] Step 5: Calculate a new string through the encryption algorithm, denoted as S3, and convert S3 into the target password according to the predefined rules (obtain a string of the specified password length), denoted as S4;

[0114] Step 6: Compare S4 with the last N-3 digits of the input target password to see if they are consistent (N represents the length of the input password). If they are consistent, it means the recognition is successful, and if they are inconsistent, it means the recognition fails;

[0115] Step 7: Calculate the expiration time of the input password and generate the historical information of the input password (data: st_recordPwdContent_t), and then insert the input password into the historical password library data linked list (data: st_recordPwdNode_t) according to its expiration time;

[0116] Step 8: After the password is stored, enable the corresponding permissions for the account according to the third character type in step 4. (When the debugging permission is valid, enable the print output information function of the debugging terminal).

[0117] The device access method of the embodiment of the present invention has the following advantages:

[0118] (1) There is no need to regularly monitor and update pre-stored passwords or rely on networking or upper and lower computers to set one-time passwords. The device has preset password generation rules, which automatically generate a set of passwords for comparison with the password entered by the user, and can flexibly set the password validity period, which optimizes the traditional design method of password validity period;

[0119] (2) There is no need to select user permissions when logging in. The device directly determines the permissions of the currently logged-in user based on the password, which simplifies the human-computer interaction method;

[0120] (3) This password can be used by the user's super administrator to perform initial configuration and maintenance of the device, or by the device's technical staff to perform troubleshooting. When they need a certain amount of time to complete their work, they can be flexibly given a password with a certain validity period and corresponding permissions (such as 1 day or 3 days, with super management permissions or debugging permissions). When the password expires, it will automatically become invalid, ensuring the security of the special permission password and meeting the flexibility of on-site applications.

[0121] (4) It has a wide range of applications and can be applied to non-networked, online and networked devices.

[0122] Embodiment 2:

[0123] The embodiment of the present invention provides a device access system, based on the device access method described in embodiment 1, see Figure 4 As shown, the system 100 includes:

[0124] The receiving module 10 is configured to receive a password input by a user;

[0125] The first processing module 20 is configured to extract the first three characters of the input password when it is determined that the input password is the first login password;

[0126] The second processing module 30 is configured to, when it is determined that each extracted character is a predetermined keyword, process a combined string consisting of a current timestamp, a device serial number and a preset key to obtain a target password;

[0127] The third processing module 40 is configured to, if it is determined through comparison that the input password and the target password are consistent, then the user has successfully logged into the device operating system.

[0128] Optionally, the first processing module 20 in the device access system of this embodiment is specifically configured as follows:

[0129] When no password consistent with the input password is matched in the password library, the input password is determined to be the first login password; wherein the password library stores passwords for successful historical logins.

[0130] Optionally, the predetermined keyword in the device access system of this embodiment includes: a predetermined validity period type keyword, a predetermined validity period duration keyword and a predetermined validity period authority type keyword.

[0131] Optionally, the second processing module 30 in the device access system of this embodiment includes:

[0132] A first judgment unit is configured to judge whether the first character of the input password is a predetermined validity period type keyword, and if so, extract the current device timestamp according to the validity period type determined by the first character of the input password, and proceed to step S32;

[0133] The second judgment unit is configured to judge whether the second character of the input password is a predetermined validity period keyword, and if so, proceed to step S33;

[0134] A third judgment unit is configured to judge whether the third character of the input password is a keyword of a predetermined validity period permission type, and if so, select a corresponding preset key according to the validity period permission type determined by the third character of the input password;

[0135] The processing unit is configured to process a combined character string consisting of a current timestamp, a device serial number, and a preset key to obtain a target password.

[0136] Optionally, the processing unit in the device access system of this embodiment is specifically configured to: arrange the current timestamp, device serial number and preset key in sequence to obtain a combined string; encrypt the combined string through an encryption algorithm to obtain a new string; and convert the new string to obtain a target password.

[0137] Optionally, the third processing module 40 in the device access system of this embodiment is further configured to enable corresponding account permissions for the user according to the validity period permission type determined by the third character of the input password.

[0138] Optionally, the third processing module 40 in the device access system of this embodiment is also configured to calculate the expiration time based on the predetermined validity period determined by the second character of the input password and the current device timestamp, and store the input password in the data linked list of the password library according to the expiration time.

[0139] Embodiment three:

[0140] The present invention discloses an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of a device access method in any one of the first embodiments of the present invention are implemented.

[0141] Figure 5 is a structural diagram of an electronic device according to an embodiment of the present invention, such as Figure 5 As shown, the electronic device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, near field communication (NFC) or other technologies. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covered on the display screen, or a button, a trackball or a touch pad set on the housing of the electronic device, or an external keyboard, touch pad or mouse, etc.

[0142] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a structural diagram of the part related to the technical solution of the present disclosure, and does not constitute a limitation on the electronic device to which the technical solution of the present application is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0143] Embodiment 4:

[0144] The embodiment of the present invention discloses a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any one of the device access methods in the first embodiment of the present invention are implemented.

[0145] Please note that the technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification. The above embodiments only express several implementation methods of the present application, and their descriptions are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present application, several variations and improvements can be made, which all belong to the scope of protection of the present application. Therefore, the scope of protection of the patent in this application shall be based on the attached claims.

[0146] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

[0147] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will be appreciated by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.

Claims

1. A device access method, characterized in that: The method comprises: Step S1: receiving the user's input password; Step S2: if it is determined that the input password is the first login password, extract the first three characters of the input password; Step S3: When it is determined that each extracted character is a predetermined keyword, a combined character string consisting of the current timestamp, the device serial number and the preset key is processed to obtain a target password; Step S4: If it is determined through comparison that the input password and the target password are consistent, the user successfully logs into the device operating system; In step S2, when no password consistent with the input password is matched from the password library, the input password is determined to be the first login password; wherein the password library stores passwords of successful historical logins; The predetermined keywords include: a predetermined validity period type keyword, a predetermined validity period duration keyword, and a predetermined validity period authority type keyword; The step S3 specifically includes: Step S31: determine whether the first character of the input password is a predetermined validity period type keyword, if yes, extract the current device timestamp according to the validity period type determined by the first character of the input password, and proceed to step S32; Step S32: determining whether the second character of the input password is a keyword of a predetermined validity period, if yes, proceeding to step S33; Step S33: determining whether the third character of the input password is a keyword of a predetermined validity period authority type, and if so, selecting the corresponding preset key according to the validity period authority type determined by the third character of the input password; Step S34: Processing the combined character string consisting of the current timestamp, the device serial number and the preset key to obtain the target password.

2. The device access method according to claim 1, characterized in that: The step S34 specifically includes: Arrange the current timestamp, the device serial number and the preset key in sequence to obtain a combined character string; Performing encryption operation on the combined character string by using an encryption algorithm to obtain a new character string; The new character string is converted to obtain the target password.

3. The device access method according to claim 1, characterized in that: The step S4 further comprises: The validity period permission type determined according to the third character of the input password opens the corresponding account permission for the user.

4. The device access method according to claim 1, characterized in that: The step S4 further comprises: The expiration time is calculated based on the predetermined validity period determined by the second character of the input password and the current device timestamp, and the input password is stored in the data linked list of the password library according to the expiration time.

5. A device access system, characterized in that: The system comprises: The receiving module is configured to receive a password input by a user; A first processing module is configured to extract the first three characters of the input password when it is determined that the input password is a first login password; The second processing module is configured to, when it is determined that each extracted character is a predetermined keyword, process a combined string consisting of a current timestamp, a device serial number, and a preset key to obtain a target password; When no password consistent with the input password is matched from the password library, the input password is determined to be the first login password; wherein the password library stores the passwords of successful historical logins; The predetermined keywords include: a predetermined validity period type keyword, a predetermined validity period duration keyword, and a predetermined validity period authority type keyword; A third processing module is configured to: if it is determined through comparison that the input password and the target password are consistent, then the user successfully logs into the device operating system; Determine whether the first character of the input password is a predetermined validity period type keyword, and if so, extract the current device timestamp according to the validity period type determined by the first character of the input password, and proceed to the next step; Determine whether the second character of the input password is a keyword of the predetermined validity period, and if so, proceed to the next step; Determine whether the third character of the input password is a keyword of a predetermined validity period permission type, and if so, select the corresponding preset key according to the validity period permission type determined by the third character of the input password; A combined character string consisting of the current timestamp, the device serial number, and the preset key is processed to obtain the target password.

6. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps in a device access method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in a device access method described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Identity authentication method, dynamic password distribution method and corresponding equipment

    CN114117376A

  • Encoding data in a password

    US7650509B1