Account sharing, login method and device

By converting the source password into a shared password and using the Hamming check code encoding rules, the security and privacy issues in the account sharing method are solved, the user experience is improved, the system maintenance cost is reduced, and the account usage behavior is realized. Flexible management and control.

CN113111341BActive Publication Date: 2024-10-18BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110390619.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-12
Publication Date
2024-10-18
Estimated Expiration
2041-04-12

AI Technical Summary

Technical Problem

The existing account sharing method has security, privacy and flexibility issues. It is difficult to control the account after it is borrowed, and the system maintenance cost is high and the user experience is poor.

Method used

By converting the source password into a shared password, using Hamming check code encoding rules to generate the shared password, and performing error processing based on usage control information, account sharing and login verification are achieved to ensure account security and flexibility.

Benefits of technology

It improves the security and user experience of account sharing, reduces system maintenance costs, and enables flexible management and control of account usage behavior.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113111341B_ABST
    Figure CN113111341B_ABST
Patent Text Reader

Abstract

The present invention discloses an account sharing and login method and device, and relates to the field of computer technology. The account sharing method includes: obtaining a source password corresponding to an account of a first user; converting the source password into a shared password, so that a second user can log in to the account of the first user based on the shared password. Through the above steps, the security issues existing in the existing account sharing method can be well solved, and the user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an account sharing and login method and device. Background Art

[0002] As online membership services become more and more popular, such as memberships on e-commerce websites, social networking websites, and video websites, it is common for friends and relatives to borrow memberships for use. Currently, many Internet companies allow account sharing, for example, some video websites allow members to log in to multiple terminals at the same time.

[0003] Currently, account sharing is mostly achieved by the account owner informing the borrower of the account password, and there is no other mature technical solution to achieve account sharing.

[0004] In the process of implementing the present invention, the inventor of the present invention found that the existing account sharing method has many defects, such as:

[0005] (1) Account security issues. Lending an account to others poses a series of security issues, such as causing the account to be shared by more people, or even malicious personnel to modify passwords and user information.

[0006] (2) Although there are certain security measures in the existing technology to address account security issues, such as first-time login verification code verification and device management, the system maintenance costs of these methods are high, and the user experience is poor due to the need to frequently check whether the account is logged in on an unknown device;

[0007] (3) Privacy issues: after the borrower logs in with the account and password, he or she can see the user's real information, such as age, gender, interests, etc.

[0008] (4) Flexibility issues: After lending out an account, the user cannot effectively control the use of the account by each borrower. Summary of the invention

[0009] In view of this, the present invention provides an account sharing, login method and device. By providing a new account sharing and login solution, it can well solve at least one of the security, privacy and flexibility problems existing in the existing account sharing method and improve the user experience.

[0010] To achieve the above objective, according to a first aspect of the present invention, an account sharing method is provided.

[0011] The account sharing method of the present invention comprises: obtaining a source password corresponding to an account of a first user; converting the source password into a shared password so that a second user can log in to the account of the first user based on the shared password.

[0012] Optionally, converting the source password into a shared password includes: converting the source password into a corresponding Hamming check code; performing decimal conversion on the Hamming check code, and using the conversion result as the shared password.

[0013] Optionally, before converting the Hamming check code into decimal, the method further includes: obtaining usage control information of the shared password set by the first user; determining a misplacement according to the usage control information of the shared password, and then performing misplacement processing on the Hamming check code according to the misplacement.

[0014] Optionally, the method further includes: when the use control information of the shared password set by the first user cannot be obtained, determining the misplacement according to the use control information of the shared password set by the system by default.

[0015] Optionally, the shared password usage management information includes: the validity period of the shared password, and / or whether to verify the mobile phone verification code during shared login.

[0016] Optionally, converting the source password into a corresponding Hamming check code includes: parsing the source password into a corresponding ASCII code, performing binary conversion on the ASCII code, and then processing the binary conversion result according to a Hamming check code encoding rule to obtain the corresponding Hamming check code.

[0017] To achieve the above objective, according to a second aspect of the present invention, an account login method is provided.

[0018] The account login method of the present invention includes: responding to a shared login request from a second user, parsing the account name and shared password of a first user from the shared login request; converting the shared password into a source password; and performing login verification on the second user based on the account name and the source password of the first user.

[0019] Optionally, converting the shared password into a source password includes: performing binary conversion on the shared password, then decoding the binary conversion result according to a Hamming check code decoding rule, and then obtaining the source password according to the decoding result.

[0020] Optionally, before processing the binary conversion result according to the Hamming check code decoding rule, the method further comprises: correcting the binary conversion result according to the Hamming check code error correction rule.

[0021] Optionally, the method further includes: determining usage control information of the shared password according to the misplacement information obtained by the error correction, and performing login verification on the second user according to the usage control information of the shared password.

[0022] Optionally, the shared password usage management information includes: the validity period of the shared password, and / or whether to verify the mobile phone verification code during shared login.

[0023] Optionally, the method further includes: after the second user passes login verification, controlling data access rights of the second user.

[0024] To achieve the above objective, according to a third aspect of the present invention, an account sharing device is provided.

[0025] The account sharing device of the present invention comprises: an acquisition module for acquiring a source password corresponding to a first user's account; and a conversion module for converting the source password into a shared password for a second user to log in to the first user's account based on the shared password.

[0026] To achieve the above objective, according to a fourth aspect of the present invention, an account login device is provided.

[0027] The account login device of the present invention includes: a parsing module, which is used to respond to a shared login request from a second user and parse out the account name and shared password of the first user from the shared login request; a conversion module, which is used to convert the shared password into a source password; and a login verification module, which is used to perform login verification on the second user based on the account name and the source password.

[0028] To achieve the above objective, according to a fifth aspect of the present invention, an electronic device is provided.

[0029] The electronic device of the present invention comprises: one or more processors; and a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the account sharing method or account login method of the present invention.

[0030] To achieve the above objective, according to a sixth aspect of the present invention, a computer readable medium is provided.

[0031] The computer-readable medium of the present invention stores a computer program thereon, and when the program is executed by a processor, the account sharing method or the account login method of the present invention is implemented.

[0032] One embodiment of the above invention has the following advantages or beneficial effects: by obtaining the source password corresponding to the account of the first user, the source password is converted into a shared password so that the second user can log in to the account of the first user based on the shared password. These steps realize a new account sharing method, which can well solve the security problems existing in the existing account sharing method and improve the user experience.

[0033] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0035] Figure 1 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0036] Figure 2 is a schematic diagram of the main flow of the account sharing method according to the first embodiment of the present invention;

[0037] Figure 3 is a schematic diagram of the main flow of the account sharing method according to the second embodiment of the present invention;

[0038] Figure 4 is a schematic diagram of the main flow of the account login method according to the third embodiment of the present invention;

[0039] Figure 5 is a schematic diagram of the main flow of the account login method according to the fourth embodiment of the present invention;

[0040] Figure 6 is a schematic diagram of main modules of an account sharing device according to a fifth embodiment of the present invention;

[0041] Figure 7 is a schematic diagram of main modules of an account login device according to a sixth embodiment of the present invention;

[0042] Figure 8 It is a schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present invention. DETAILED DESCRIPTION

[0043] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0044] It should be pointed out that the various embodiments of the present invention and the technical features in the embodiments may be combined with each other without affecting the implementation of the present invention.

[0045] Figure 1 An exemplary system architecture 100 is shown to which an account sharing method or an account login method or an account sharing device or an account login device according to an embodiment of the present invention can be applied.

[0046] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0047] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0048] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0049] The server 105 may be a server that provides various services, such as a background management server that provides support for shopping websites browsed by users using the terminal devices 101, 102, and 103. For example, the background management server may process an account sharing request or a shared login request sent by the terminal device through the network, and feed back the processing result to the terminal device.

[0050] It should be noted that the account sharing and account login methods provided in the embodiments of the present invention are generally executed by the server 105 , and accordingly, the account sharing and account login devices are generally arranged in the server 105 .

[0051] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0052] It should be pointed out that Figure 1 An exemplary system architecture to which the account sharing, account login method, and account sharing, account login device provided by the present invention can be applied. In another optional example, the account sharing, account login method provided by the present invention can also be executed by a terminal device, and accordingly, the account sharing, account login device is set in the terminal device. In another optional example, the account sharing, account login method provided by the present invention can also be jointly executed by a terminal device and a server, and accordingly, the account sharing, account login device is set in the terminal device and the server.

[0053] Figure 2 FIG. 1 is a schematic diagram of the main flow of the account sharing method according to the first embodiment of the present invention. Figure 2 As shown, the account sharing method of the embodiment of the present invention includes:

[0054] Step S201: Obtain the source password corresponding to the first user's account.

[0055] The source password is the password that the first user needs to enter when logging into his account in a normal login mode.

[0056] In an optional implementation, when the first user initiates an account sharing request, the source password corresponding to the account that the first user wants to share is entered through the terminal device. After receiving the account sharing request, the account sharing device parses the source password entered by the first user from the account sharing request. For example, when the first user initiates an account sharing request for the account "zhangsan" owned by the first user, the source password "3456789" is entered through the mobile phone, and the account sharing device obtains the source password "3456789" entered by the first user.

[0057] In another optional implementation, when the first user initiates an account sharing request, the first user enters the name of the account he wants to share through the terminal device. After receiving the account sharing request, the account sharing device queries a storage module such as a cache or a database according to the account name carried in the account sharing request to obtain the source password corresponding to the account of the first user. For example, when the first user initiates an account sharing request for the account "zhangsan" he owns, the account sharing device queries the source password "3456789" corresponding to the account "zhagnsan" from the database.

[0058] Step S202: converting the source password into a shared password, so that the second user can log in to the account of the first user based on the shared password.

[0059] In this step, the source password may be converted into a shared password according to a pre-configured password conversion rule. The shared password is the password used by the second user to log in to the account of the first user under the shared login channel. Exemplarily, the password conversion rule is a Hamming check code encoding rule or other password conversion rule.

[0060] Hamming check code, also known as Hamming check code, is based on the principle of adding r check bits to k data bits to form a new code word of k+r bits, so that the code distance of the new code word is relatively evenly enlarged. Each binary bit of the data is assigned to a combination of several different even check bits. When a certain bit is wrong, it will cause the values ​​of several related check bits to change. This can not only detect the error, but also point out which bit is wrong, providing a basis for further automatic error correction.

[0061] In an optional implementation, the password conversion rule is a Hamming check code encoding rule, and converting the source password into a shared password includes: converting the source password into a corresponding Hamming check code according to the Hamming check code encoding rule; performing a decimal conversion on the Hamming check code, and using the conversion result as the shared password.

[0062] In another optional implementation, the password conversion rule is a Hamming check code encoding rule, and converting the source password into a shared password includes: converting the source password into a corresponding Hamming check code according to the Hamming check code encoding rule, performing error processing on the Hamming check code, and then performing decimal conversion on the Hamming check code after the error processing, and using the decimal conversion result as the shared password.

[0063] Furthermore, after generating the shared password, the embodiment of the present invention may further include the following steps: sending the shared password to the first user for display, and / or sending the shared password to the second user. For example, after generating the shared password, the shared password may be displayed to the first user through the terminal device corresponding to the first user, and then the first user may inform the second user of the shared password through a mobile phone text message, voice call, video call, etc. For example, after generating the shared password, the account sharing device may directly send the shared password to the second user through a mobile phone text message, email, etc.

[0064] In the embodiment of the present invention, a new account sharing method is implemented by obtaining the source password corresponding to the account of the first user, converting the source password into a shared password, so that the second user can log in to the account of the first user based on the shared password. In the account sharing scheme provided by the present invention, it is not necessary to provide the real password, i.e., the source password, to others, but only to provide others with a shared password generated by the source password, thereby ensuring the security of account sharing, and further being able to well solve the security problems existing in the existing account sharing method and improve the user experience.

[0065] Figure 3 FIG. 2 is a schematic diagram of the main flow of the account sharing method according to the second embodiment of the present invention. Figure 3 As shown, the account sharing method of the embodiment of the present invention includes:

[0066] Step S301: Obtain the source password corresponding to the first user's account.

[0067] The source password is the password that the first user needs to enter when logging into his account.

[0068] In an optional implementation, when the first user initiates an account sharing request, the source password corresponding to the account that the first user wants to share is entered through the terminal device. After receiving the account sharing request, the account sharing device parses the source password entered by the first user from the account sharing request. For example, when the first user initiates an account sharing request for the account "zhangsan" owned by the first user, the source password "3456789" is entered through the mobile phone, and the account sharing device obtains the source password "3456789" entered by the first user.

[0069] In another optional implementation, when the first user initiates an account sharing request, the first user enters the name of the account he wants to share through the terminal device. After receiving the account sharing request, the account sharing device queries a storage module such as a cache or a database according to the account name carried in the account sharing request to obtain the source password corresponding to the account of the first user. For example, when the first user initiates an account sharing request for the account "zhangsan" he owns, the account sharing device queries the source password "3456789" corresponding to the account "zhagnsan" from the database.

[0070] Step S302: Obtain usage control information of the shared password set by the first user.

[0071] In an optional implementation, when the first user initiates an account sharing request, in addition to inputting the source password corresponding to the account that the first user wants to share through the terminal device, the use control information of the shared password is also set through the terminal device. After receiving the account sharing request, the account sharing device not only parses the source password from the account sharing request, but also parses the use control information of the shared password set by the first user from the account sharing request.

[0072] In another optional implementation, when the first user initiates an account sharing request, the first user enters the name of the account he wants to share through the terminal device. After receiving the account sharing request, the account sharing device not only queries the pre-stored source password corresponding to the first user's account according to the account name carried in the account sharing request, but also queries the use control information of the shared password pre-set by the first user.

[0073] Exemplarily, the shared password usage control information includes the validity period of the shared password, and / or whether to verify the mobile phone verification code during shared login, etc. In specific implementation, the first user can set unified shared password usage control information for different second users, and can also set different shared password usage control information for different second users.

[0074] Furthermore, an embodiment of the present invention may also include the following steps: when the usage control information of the shared password set by the first user cannot be obtained, obtaining the usage control information of the shared password set by the system by default, so as to subsequently determine the misalignment according to the usage control information of the shared password set by the system by default.

[0075] Step S303: convert the source password into a corresponding Hamming check code.

[0076] Exemplarily, step S303 specifically includes: parsing the source password into corresponding ASCII codes, performing binary conversion on the ASCII codes, and then processing the binary conversion result according to the Hamming check code encoding rule to obtain the corresponding Hamming check code.

[0077] ASCII (American Standard Code for Information Interchange) is a computer coding system based on the Latin alphabet, mainly used to display modern English and other Western European languages. It is the most common standard for information exchange. ASCII was first published as a standard in 1967 and the last update was in 1986. So far, a total of 128 characters have been defined.

[0078] Furthermore, in the above example, considering that there are 128 ASCII codes in total, seven-bit binary numbers can represent all situations. Therefore, when performing binary conversion on the ASCII code obtained by parsing the source password, it can be converted into multiple seven-bit binary numbers, and then the multiple seven-bit binary numbers are converted into corresponding Hamming check codes according to the Hamming check code encoding rules. In addition, in the specific implementation, in addition to converting the source password into ASCII code, other conversion methods can also be used, such as converting the source password using a custom conversion rule.

[0079] Further, in the above example, processing the binary conversion result according to the Hamming check code encoding rule to obtain the corresponding Hamming check code specifically includes:

[0080] Step a: Determine the number of bits of the Hamming check code.

[0081] When the number of data bits (or "information bits") is determined, it can be calculated by formula 2 r -1≥k+r (k is the number of data bits, r is the number of check bits) determines the number of check bits, and then determines the number of Hamming check bits. For example, if the ASCII code obtained by parsing the source password is converted into multiple seven-bit binary numbers, it can be concluded that the data bits of the Hamming check code are seven bits, and then through formula 2 r-1≥k+r shows that the minimum check digit of the Hamming check code is 4, so the number of bits of the Hamming check code can be set to 11.

[0082] Step b: determine the distribution positions of data bits and check bits.

[0083] In the Hamming check code, the check bits are distributed on the power of 2 bits, and the rest are data bits. In addition, the data bits are stored in order from high to low.

[0084] Step c, determine the position of the data bit of the check code verification.

[0085] Step d: perform XOR processing on the position of the data bit to be checked by the check code to obtain the value of the check bit, and then obtain the corresponding Hamming check code.

[0086] Step S304: determining the offset according to the usage control information of the shared password, and then performing an offset processing on the Hamming check code according to the offset.

[0087] In an optional example, the usage control information of the shared password includes: the validity period of the shared password. In this example, the misalignment can be determined according to the validity period of the shared password, and then the corresponding position in the Hamming check code is misaligned. For example, assuming that the source password is 6 bits, 6 11-bit Hamming check codes are obtained according to the source password, and assuming that the validity period of the shared password entered by the user is 21.09.01 (i.e., September 1, 2021), the second bit of the first Hamming check code, the first bit of the second Hamming check code, the 0th bit of the third Hamming check code, the 9th bit of the fourth Hamming check code, the 0th bit of the fifth Hamming check code, and the 1st bit of the sixth Hamming check code can be determined as misaligned. Among them, the 0th bit of the Hamming check code is misaligned, which can be understood as there is no error position in the Hamming check code.

[0088] In another optional example, the usage control information of the shared password includes: the validity period of the shared password, and whether the mobile phone verification code is verified during shared login. In this example, the dislocation can be determined based on the validity period of the shared password and whether the mobile phone verification code is verified during shared login. For example, assuming that the source password is 7 digits, and 7 11-digit Hamming check codes are obtained based on the source password, the dislocation of the first 6 Hamming check codes can be determined based on the validity period of the shared password, and the dislocation of the 7th Hamming check code can be determined based on whether the mobile phone verification code is verified during shared login. Furthermore, the need to verify the mobile phone verification code during shared login can be indicated by 1, and the need to verify the mobile phone verification code during shared login can be indicated by 0. For example, assuming that the validity period of the shared password entered by the user is 21.09.01 (i.e., September 1, 2021), and the mobile phone verification code is required for shared login, the second bit of the first Hamming check code, the first bit of the second Hamming check code, the 0th bit of the third Hamming check code, the 9th bit of the fourth Hamming check code, the 0th bit of the fifth Hamming check code, the 1st bit of the sixth Hamming check code, and the 1st bit of the seventh Hamming check code can be determined as misplaced. Among them, the 0th bit of the Hamming check code is misplaced, which can be understood as no error position in the Hamming check code.

[0089] Step S305: performing decimal conversion on the Hamming check code after the error processing, and using the conversion result as a shared password, so that the second user can log in to the account of the first user based on the shared password.

[0090] In the embodiment of the present invention, an account sharing scheme based on the Hamming check code is implemented through the above steps, which can be used to realize account sharing between different users. In this scheme, there is no need to provide the real password, i.e. the source password, to others. It is only necessary to provide others with a shared password generated by the source password, thereby ensuring the security of the account; moreover, this scheme is mainly implemented based on the automatic error correction of the Hamming check code, and does not require the platform to maintain a large amount of user shared data. It is only necessary to set certain encoding and decoding rules, and the investment cost is relatively low; further, this scheme can flexibly configure the use control information of the shared password through the above steps, and can generate multiple shared passwords for different users, each shared password has its own use control information, thereby making the account sharing scheme more flexible. Furthermore, this scheme solves the problems of security and flexibility existing in the existing account sharing scheme.

[0091] To further understand Figure 3 In the embodiment shown, the source password "abc123" is taken as an example to illustrate the process of generating a shared password based on the source password. Specifically, the example mainly includes the following steps:

[0092] Step (1): Convert the source password into a Hamming check code.

[0093] In this step, the source password abc123 is first parsed into the corresponding ASCII code to obtain "97-98-99-49-50-51". Among them, the ASCII code corresponding to the character a in the source password is 97, the ASCII code corresponding to the character b in the source password is 98, the ASCII code corresponding to the character c in the source password is 99, the ASCII code corresponding to the character 1 in the source password is 49, the ASCII code corresponding to the character 2 in the source password is 50, and the ASCII code corresponding to the character 3 in the source password is 51.

[0094] Next, convert the ASCII code "97-98-99-49-50-51" into binary data. Considering that the range of the ASCII code used in this example is 0-127, the corresponding binary number is 0000000-1111111, that is, 7 bits can represent all the ASCII codes. Therefore, when converting the ASCII code into binary, 7 bits of binary numbers can be used to represent it, and then the binary data "1100001-1100010-1100011-110001-110010-110011" is obtained. Then, convert the obtained binary data into a Hamming check code. Among them, the core process of converting the binary data "1100001-1100010-1100011-110001-110010-110011" into a Hamming check code is as follows:

[0095] First, when the number of data bits (or "information bits") is 7, by formula 2 r -1≥k+r (k is the number of data bits, r is the number of check bits) shows that the minimum check bit of the Hamming check code is 4 bits, so the number of bits of the Hamming check code can be set to 11.

[0096] Secondly, determine the distribution positions of data bits and check bits, as shown in Table 1. In the Hamming check code, the check bits are distributed on the power of 2 bits, and the rest are data bits. In addition, the data bits are stored in order from high to low.

[0097] Table 1

[0098] Number of digits 1 2 3 4 5 6 7 8 9 10 11 Check digit r1 r2 r3 r4 Data(a)1100001 1 0 0 0 0 1 1 Data(b)1100010 0 1 0 0 0 1 1 Data(c)1100011 1 1 0 0 0 1 1 Data(1)0110001 1 0 0 0 1 1 0 Data(2)0110010 0 1 0 0 1 1 0 Data(3)0110011 1 1 0 0 1 1 0

[0099] Next, determine the location of the data bit that the checksum checks.

[0100] Table 2

[0101]

[0102] As shown in Table 2, the data bit positions checked by the determined check code are as follows: the data bit positions checked by check bit r1 are 3, 5, 7, 9, 11; the data bit positions checked by check bit r2 are 3, 6, 7, 10, 11; the data bit positions checked by check bit r3 are 5, 6, 7, 11; and the data bit positions checked by check bit r4 are 9, 10, 11.

[0103] Finally, the data bit position of the check code is XORed to obtain the value of the check bit, and then the corresponding Hamming check code is obtained.

[0104] Among them, XOR processing is a mathematical operation rule. If the values ​​of a and b are different, the XOR result is 1; if the values ​​of a and b are the same, the XOR result is 0. In this step, the XOR processing is performed on the position of the data bit checked by the check code to obtain the value of the check bit, and then the corresponding Hamming check code is obtained (as shown in Table 3). For example, the XOR operation is performed on the values ​​of the data bit positions 3, 5, 7, 9, and 11 in the data a checked by the check bit r1, that is, 1^0^0^0^1=0, and the XOR result is 0.

[0105] Table 3

[0106]

[0107] Step (2): The Hamming check code generated in step (1) is subjected to error processing according to the validity period of the shared password input by the user, the Hamming check code after error processing is converted into decimal, and the conversion result is used as the shared password.

[0108] For example, assuming that the validity period of the shared password entered by the user is 21.09.01 (i.e., September 1, 2021), the second bit of the first Hamming check code, the first bit of the second Hamming check code, the 0th bit of the third Hamming check code, the 9th bit of the fourth Hamming check code, the 0th bit of the fifth Hamming check code, and the 1st bit of the sixth Hamming check code obtained in step (1) can be determined as misplaced (as shown in Table 4), and the Hamming check code is misplaced according to the misplaced information. Among them, the 0th bit of the Hamming check code is misplaced, which can be understood as there is no error position in the Hamming check code, that is, the Hamming check code is not misplaced. Afterwards, the Hamming check code after the misplaced processing is converted into decimal to obtain the shared password 387-1091-1859-258-710-454.

[0109] Table 4

[0110]

[0111] In the above example, the shared password is mainly generated by using the automatic error correction feature of the Hamming check code. Generally, a real password has multiple digits. For example, a bank payment password is generally 6 digits. Each digit can be mapped to a binary Hamming check code. If we make a mistake in each Hamming check code, a new password can be formed. Different error positions will form different new passwords, that is, a 6-digit source password can correspond to multiple shared passwords. Since there is a corresponding relationship between the source password and the shared password, the system can convert between the two according to certain conversion rules. Therefore, there is no need to store the shared password in the storage medium, nor is there any need to maintain the data of the shared password, which reduces the investment cost of account sharing. In addition, when using the automatic error correction feature of the Hamming check code to generate a shared password, some business meanings are implied in the shared password, such as the validity period of the shared password, whether the shared login requires verification of the mobile phone verification code, etc., to improve the flexibility of account sharing.

[0112] Figure 4 FIG. 2 is a schematic diagram of the main flow of the account login method according to the third embodiment of the present invention. Figure 4 As shown, the account login method of the embodiment of the present invention includes:

[0113] Step S401: In response to a shared login request from a second user, the account name and shared password of the first user are parsed from the shared login request.

[0114] Exemplarily, the second user may input the first user's account and shared password on the terminal device and then issue a shared login request. In response to the second user's shared login request, the account login device parses the first user's account name and shared password from the shared login request.

[0115] Furthermore, before step S401, the method of the embodiment of the present invention may further include the following steps: determining whether the login request of the second user is a shared login request or a common login request. If it is a shared login request, step S401 is executed; if it is a common login request, login verification is performed in a common login manner.

[0116] Among them, the common login method refers to the method in which the user enters the account number and source password to log in, and the shared login method refers to the method in which the user enters the account number and shared password to log in. In specific implementation, different login pages can be developed for the common login method and the shared login method to distinguish the user's login method.

[0117] Step S402: Convert the shared password into a source password.

[0118] In an optional example, the shared password is obtained by converting the source password into a Hamming check code, and then converting the Hamming check code from binary to decimal. In this optional example, step S402 specifically includes: performing binary conversion on the shared password, decoding the binary conversion result according to the Hamming check code decoding rule, and then obtaining the source password according to the decoding result.

[0119] In another optional example, the shared password is obtained by converting the source password into a Hamming check code, then performing an error on the Hamming check code, and then performing a decimal conversion on the Hamming check code after the error. In this optional example, step S402 specifically includes: performing a binary conversion on the shared password, then performing an error correction on the binary conversion result according to a Hamming check code error correction rule, then decoding the corrected binary conversion result according to a Hamming check code decoding rule, and then obtaining the source password according to the decoding result.

[0120] Step S403: Perform login verification on the second user according to the account name and the source password of the first user.

[0121] For example, in this step, the source password obtained in step S402 may be compared with the source password corresponding to the account of the first user stored in advance. If the two are consistent, the second user passes the login verification. Next, the second user may continue to be verified through other login verification logics, or a prompt message indicating a successful login may be directly returned to the second user; if the two are inconsistent, a prompt message indicating a failed login may be directly returned to the second user.

[0122] In the embodiment of the present invention, a new account login method is implemented through the above steps. In the account login solution provided by the present invention, since it is not necessary to provide the real password, i.e., the source password, to others, only a shared password generated by the source password is needed to log in, thereby ensuring the security of account sharing, and further, being able to well solve the security problems existing in the existing account sharing method and improve the user experience.

[0123] Figure 5 FIG. 4 is a schematic diagram of the main flow of the account login method according to the fourth embodiment of the present invention. Figure 5 As shown, the account login method of the embodiment of the present invention includes:

[0124] Step S501: In response to a shared login request from a second user, the account name and shared password of the first user are parsed from the shared login request.

[0125] Exemplarily, the second user may input the first user's account and shared password on the terminal device and then issue a shared login request. In response to the second user's shared login request, the account login device parses the first user's account name and shared password from the shared login request.

[0126] Furthermore, before step S501, the method of the embodiment of the present invention may further include the following steps: determining whether the login request of the second user is a shared login request or a common login request. If it is a shared login request, step S501 is executed; if it is a common login request, login verification is performed in a common login manner.

[0127] Among them, the common login method refers to the method in which the user enters the account number and source password to log in, and the shared login method refers to the method in which the user enters the account number and shared password to log in. In specific implementation, different login pages can be developed for the common login method and the shared login method to distinguish the user's login method.

[0128] Step S502: performing binary conversion on the shared password.

[0129] In the embodiment of the present invention, the shared password is obtained by converting the source password into a Hamming check code, then missetting the Hamming check code, and then performing a decimal conversion on the misset Hamming check code. Therefore, when converting the shared password into the source password, it is first necessary to convert the shared password from decimal to binary to obtain a binary conversion result, that is, the misset Hamming check code. For example, assuming that the shared password parsed by step S501 is 387-1091-1859-258-710-454, and the Hamming check code converted from the source password is 11 bits, then the shared password is converted into data represented by six 11-bit binary numbers.

[0130] Step S503: Correct the binary conversion result according to the Hamming check code error correction rule, and determine the use control information of the shared password according to the misplacement information.

[0131] The basic principle of Hamming check code, also known as Hamming check code, is to add r check bits to the k data bits to form a new code word of k+r bits, so that the code distance of the new code word is relatively evenly enlarged. Each binary bit of the data is assigned to a combination of several different even check bits. When a certain bit is wrong, it will cause the values ​​of several related check bits to change. This can not only detect the error, but also point out which bit is wrong, providing a basis for further automatic error correction.

[0132] In this step, the error-placed Hamming check code obtained in step S502 is corrected according to the Hamming check code error correction rule, and the Hamming check code and the misplacement information can be obtained. Further, the use control information of the shared password can be determined according to the misplacement information. Exemplarily, the use control information of the shared password includes: the validity period of the shared password, and / or whether the shared login verifies the mobile phone verification code.

[0133] For example, for the shared password 387-1091-1859-258-710-454, it is converted into six 11-bit binary numbers, i.e., six misplaced Hamming check codes, through step S502, and then the corresponding error position (i.e., misplacement) is calculated through step S503. According to the misplacement, the data can be restored by position to obtain six Hamming check codes. For example, for "387", "1091", and "258" in the shared password, the binary data obtained through step S502 are "00110000011", "10001000011", and "00100000010", and the core calculation data of the Hamming check code error correction is shown in Table 5.

[0134] Table 5

[0135]

[0136]

[0137] Furthermore, for the six 11-bit binary numbers obtained by binary conversion of the shared password 387-1091-1859-258-710-454, the error correction process shown in Table 5 can be used to determine that the misplaced bits in each binary number are the 2nd bit, the 1st bit, the 0th bit (that is, there is no error bit in the binary number), the 9th bit, the 0th bit, and the 1st bit. Next, these misplaced bits are restored to obtain the binary conversion result after error correction. In addition, if the misplaced bits are predefined to indicate the validity period of the shared password, the validity period of the shared password can be determined to be September 1, 21 years based on the misplaced bit information obtained by error correction.

[0138] Step S504: Decode the binary conversion result after error correction according to the Hamming check code decoding rule, and then obtain the source password according to the decoding result.

[0139] In an embodiment of the present invention, the shared password is obtained by first converting the source password into ASCII code, then converting the ASCII code into binary data, then converting the binary data into an error-corrected Hamming check code, and then performing a decimal conversion on the error-corrected Hamming check code. Therefore, in step S504, the error-corrected binary conversion result is first decoded according to the Hamming check code decoding rule, and then the binary to decimal conversion is performed to obtain the corresponding ASCII code, and finally the source password is obtained by the ASCII code parsing rule. For example, assuming that the shared password is 387-1091-1859-258-710-454, the source password can be obtained as abc123 through the above steps.

[0140] Step S505: Perform login verification on the second user according to the account name and the source password of the first user.

[0141] For example, in this step, the source password obtained in step S504 can be compared with the source password corresponding to the account of the first user stored in advance. If the two are consistent, step S506 can be performed next; if the two are inconsistent, a prompt message indicating a login failure can be directly returned to the second user.

[0142] Step S506: Perform login verification on the second user according to the usage control information of the shared password.

[0143] In an optional example, the use control information of the shared password is specifically the validity period of the shared password. In this example, whether the shared password has expired can be determined based on the validity period of the shared password. If the shared password has expired, a prompt message indicating a login failure can be directly returned to the second user; if the shared password has not expired, a prompt message indicating a successful login can be directly returned to the second user.

[0144] Furthermore, the method of the embodiment of the present invention may further include the following steps: after the second user passes the login verification, the data access rights of the second user are controlled. For example, after the second user passes the login verification, the user may be restricted from querying or modifying the account password, the mobile phone number bound to the account, and other related information.

[0145] In the embodiment of the present invention, a new shared login solution is implemented through the above steps. This solution can well solve the security, privacy and flexibility problems existing in the existing account sharing solution, and this solution is based on the automatic error correction processing of the Hamming check code, does not require the platform to maintain a large amount of user sharing data, and only needs to set certain decoding rules, and the investment cost is relatively low.

[0146] Specifically, the technical solution provided by the embodiment of the present invention has the following advantages over the prior art: (1) it is not necessary to provide the real password to others, but only to provide others with a shared password generated from the source password, thereby improving the security of account sharing; (2) the generation of the shared password only requires the configuration of the rules, and the service provider does not need to maintain the data, thereby reducing the investment cost; (3) by setting different login channels (ordinary login channel, shared login channel), the permissions are divided according to the login channels. For example, the shared login channel does not allow browsing of personal information, hobbies, etc., thereby protecting the privacy of users with accounts;

[0147] (4) Multiple shared passwords can be generated for multiple users, and each shared password can be set with its own expiration date, making account sharing more flexible.

[0148] Figure 6 FIG. 4 is a schematic diagram of the main modules of the account sharing device according to the fifth embodiment of the present invention. Figure 6 As shown, the account sharing device 600 according to the embodiment of the present invention includes: an acquisition module 601 and a conversion module 602 .

[0149] The acquisition module 601 is used to acquire the source password corresponding to the account of the first user.

[0150] The source password is the password that the first user needs to enter when logging into his account in a normal login mode.

[0151] In an optional implementation, when the first user initiates an account sharing request, the source password corresponding to the account that the first user wants to share is input through the terminal device. After receiving the account sharing request, the acquisition module 601 parses the source password input by the first user from the account sharing request. For example, when the first user initiates an account sharing request for the account "zhangsan" owned by the first user, the source password "3456789" is input through the mobile phone, and the account sharing device obtains the source password "3456789" input by the first user.

[0152] In another optional implementation, when the first user initiates an account sharing request, the first user enters the name of the account he wants to share through the terminal device. After receiving the account sharing request, the acquisition module 601 queries a storage module such as a cache or database according to the account name carried in the account sharing request to obtain the source password corresponding to the first user's account. For example, when the first user initiates an account sharing request for the account "zhangsan" he owns, the account sharing device queries the source password "3456789" corresponding to the account "zhagnsan" from the database.

[0153] The conversion module 602 is used to convert the source password into a shared password, so that the second user can log in to the account of the first user based on the shared password.

[0154] Exemplarily, the conversion module 602 may convert the source password into a shared password according to a pre-configured password conversion rule. The shared password is a password used by the second user to log in to the account of the first user under a shared login channel. Exemplarily, the password conversion rule is a Hamming check code encoding rule or other password conversion rules.

[0155] Hamming check code, also known as Hamming check code, is based on the principle of adding r check bits to k data bits to form a new code word of k+r bits, so that the code distance of the new code word is relatively evenly enlarged. Each binary bit of the data is assigned to a combination of several different even check bits. When a certain bit is wrong, it will cause the values ​​of several related check bits to change. This can not only detect the error, but also point out which bit is wrong, providing a basis for further automatic error correction.

[0156] In an optional implementation, the password conversion rule is a Hamming check code encoding rule, and the conversion module 602 converts the source password into a shared password, including: converting the source password into a corresponding Hamming check code according to the Hamming check code encoding rule; performing a decimal conversion on the Hamming check code, and using the conversion result as the shared password.

[0157] In another optional implementation, the password conversion rule is a Hamming check code encoding rule, and the conversion module 602 converts the source password into a shared password including: converting the source password into a corresponding Hamming check code according to the Hamming check code encoding rule, performing error processing on the Hamming check code, and then performing decimal conversion on the Hamming check code after the error processing, and using the decimal conversion result as the shared password.

[0158] Furthermore, the apparatus of the embodiment of the present invention may also include a sending module. The sending module is used to send the shared password to the first user for display, and / or send the shared password to the second user. For example, after generating the shared password, the sending module may send the shared password to the terminal device corresponding to the first user, and display the shared password to the first user through the terminal device, after which the first user may inform the second user of the shared password through various forms such as mobile phone text messages, voice calls, and video calls. For example, after generating the shared password, the sending module may send the shared password to the second user by mobile phone text messages, emails, and the like.

[0159] In an embodiment of the present invention, the source password corresponding to the account of the first user is obtained by the acquisition module, and the source password is converted into a shared password by the conversion module, so that the second user can log in to the account of the first user based on the shared password, thereby realizing a new account sharing method. In the account sharing scheme provided by the present invention, it is not necessary to provide the real password, i.e., the source password, to others, but only to provide others with a shared password generated by the source password, thereby ensuring the security of account sharing, and further being able to well solve the security problems existing in the existing account sharing method and improve the user experience.

[0160] Figure 7 Schematic diagram of the main modules of the account login device according to the sixth embodiment of the present invention. Figure 7 As shown, the account login device 700 of the embodiment of the present invention includes: a parsing module 701, a conversion module 702, and a login verification module 703.

[0161] The parsing module 701 is used to respond to a shared login request from a second user and parse the shared login request to obtain the account name and shared password of the first user.

[0162] Exemplarily, the second user may send a shared login request after inputting the first user's account and shared password on the terminal device. In response to the shared login request of the second user, the parsing module 701 parses the first user's account name and shared password from the shared login request.

[0163] Furthermore, the device of the embodiment of the present invention may further include a judgment module, which is used to judge whether the login request of the second user is a shared login request or a normal login request. If it is a shared login request, the shared login request is responded to by the parsing module; if it is a normal login request, the login verification is performed in a normal login manner.

[0164] Among them, the common login method refers to the method in which the user enters the account number and source password to log in, and the shared login method refers to the method in which the user enters the account number and shared password to log in. In specific implementation, different login pages can be developed for the common login method and the shared login method to distinguish the user's login method.

[0165] The conversion module 702 is used to convert the shared password into a source password.

[0166] In an optional example, the shared password is obtained by converting the source password into a Hamming check code, and then converting the Hamming check code from binary to decimal. In this optional example, the conversion module 702 converts the shared password into the source password specifically including: performing binary conversion on the shared password, decoding the binary conversion result according to the Hamming check code decoding rule, and then obtaining the source password according to the decoding result.

[0167] In another optional example, the shared password is obtained by converting the source password into a Hamming check code, then performing an error on the Hamming check code, and then performing a decimal conversion on the Hamming check code after the error. In this optional example, step S402 specifically includes: performing a binary conversion on the shared password, then performing an error correction on the binary conversion result according to a Hamming check code error correction rule, then decoding the corrected binary conversion result according to a Hamming check code decoding rule, and then obtaining the source password according to the decoding result.

[0168] The login verification module 703 is used to perform login verification on the second user according to the account name and the source password of the first user.

[0169] For example, in this step, the source password obtained by the conversion module 702 can be compared with the source password corresponding to the account of the first user stored in advance. If the two are consistent, the second user passes the login verification. Next, the second user can continue to be verified through other login verification logics, or a prompt message indicating a successful login can be directly returned to the second user; if the two are inconsistent, a prompt message indicating a failed login can be directly returned to the second user.

[0170] In the embodiment of the present invention, a new account login method is realized through the above device. In the account login solution provided by the present invention, since it is not necessary to provide the real password, i.e., the source password, to others, only a shared password generated by the source password is needed to log in, thereby ensuring the security of account sharing, and further being able to well solve the security problems existing in the existing account sharing method and improve the user experience.

[0171] Reference below Figure 8 , which shows a schematic diagram of the structure of a computer system 800 of an electronic device suitable for implementing an embodiment of the present invention. Figure 8 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0172] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0173] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.

[0174] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above-mentioned functions defined in the system of the present invention are executed.

[0175] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0176] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0177] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes an acquisition module and a conversion module. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, the acquisition module may also be described as a "module for acquiring a source password corresponding to the account of the first user".

[0178] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device executes the following account sharing process: obtaining the source password corresponding to the account of the first user; converting the source password into a shared password for the second user to log in to the account of the first user based on the shared password. Alternatively, the above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device executes the following account login process: in response to the shared login request of the second user, parsing the account name and shared password of the first user from the shared login request; converting the shared password into a source password; and performing login verification on the second user according to the account name and the source password of the first user.

[0179] According to the technical solution of the embodiment of the present invention, by providing a new account sharing and login solution, at least one of the security, privacy and flexibility problems existing in the existing account sharing method can be well solved, thereby improving the user experience.

[0180] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. An account sharing method, characterized in that: The method comprises: Obtaining the source password corresponding to the first user's account and the usage control information of the shared password set by the first user; The source password is converted into a shared password so that the second user can log in to the first user's account based on the shared password; specifically including: converting the source password into a corresponding Hamming check code; determining the misplacement according to the use control information of the shared password, and then misplacement processing the Hamming check code according to the misplacement; performing decimal conversion on the Hamming check code, and using the conversion result as the shared password.

2. The method according to claim 1, characterized in that The method further comprises: When the use control information of the shared password set by the first user cannot be obtained, the setting offset is determined according to the use control information of the shared password set by the system by default.

3. The method according to claim 1 or 2, characterized in that: The shared password usage control information includes: the validity period of the shared password, and / or whether to verify the mobile phone verification code during shared login.

4. The method according to claim 1, characterized in that: The converting the source password into a corresponding Hamming check code comprises: The source password is parsed into corresponding ASCII codes, the ASCII codes are converted into binary codes, and then the binary conversion results are processed according to Hamming check code encoding rules to obtain the corresponding Hamming check code.

5. An account login method, characterized in that: The method comprises: In response to a shared login request from a second user, parsing the account name and shared password of the first user from the shared login request; Converting the shared password into a source password; specifically comprising: performing binary conversion on the shared password, correcting the binary conversion result according to a Hamming check code error correction rule, then decoding the binary conversion result according to a Hamming check code decoding rule, and then obtaining the source password according to the decoding result; The second user is logged in and verified according to the account name and the source password of the first user; the usage control information of the shared password is determined according to the misplacement information obtained by the error correction, and the second user is logged in and verified according to the usage control information of the shared password.

6. The method according to claim 5, characterized in that The shared password usage control information includes: the validity period of the shared password, and / or whether to verify the mobile phone verification code during shared login.

7. The method according to claim 5, characterized in that The method further comprises: After the second user passes the login verification, the data access permission of the second user is controlled.

8. An account sharing device, characterized in that: The device comprises: An acquisition module, used to acquire the source password corresponding to the first user's account and usage control information of the shared password set by the first user; A conversion module is used to convert the source password into a shared password so that the second user can log in to the account of the first user based on the shared password; specifically used to: convert the source password into a corresponding Hamming check code; determine the misplacement according to the use control information of the shared password, and then perform misplacement processing on the Hamming check code according to the misplacement; perform decimal conversion on the Hamming check code, and use the conversion result as the shared password.

9. An account login device, characterized in that: The device comprises: A parsing module, configured to respond to a shared login request from a second user and parse the shared login request to obtain an account name and a shared password of the first user; A conversion module, used to convert the shared password into a source password; specifically used to: perform binary conversion on the shared password, perform error correction on the binary conversion result according to a Hamming check code error correction rule, then decode the binary conversion result according to a Hamming check code decoding rule, and then obtain the source password according to the decoding result; A login verification module is used to perform login verification on the second user based on the account name and the source password; specifically, it is used to determine the usage control information of the shared password based on the misplacement information obtained by the error correction, and perform login verification on the second user based on the usage control information of the shared password.

10. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

11. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Account password changing method and device, computer equipment and storage medium

    CN110399704A