A visitor management method and system for community access control

The key and encoding table are generated through the chaotic mapping function, and the visitor information is encrypted using simple operations such as multiplication operations, which solves the problem of high complexity of the AES encryption algorithm, achieves efficient and secure visitor information encryption, and resists known plaintext attacks.

CN118646532BActive Publication Date: 2024-10-15WUHAN TAIMING HENGCHUANG INFORMATION TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411117201.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-10-15
Estimated Expiration
2044-08-15

AI Technical Summary

Technical Problem

When the existing AES encryption algorithm encrypts smart community visitor information, the algorithm complexity is high and requires multiple complex operations, resulting in low efficiency.

Method used

The chaotic mapping function is used to generate the key and coding table, and the plaintext sequence is encrypted through simple operations such as multiplication, deletion and search to generate the ciphertext sequence. The unpredictability and randomness of the chaotic mapping function are used to improve encryption security.

Benefits of technology

It reduces the complexity of the encryption process, improves encryption efficiency, can effectively resist known plaintext attacks, and enhances the security of visitor information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118646532B_ABST
    Figure CN118646532B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of security devices for protecting computer data to prevent unauthorized behavior, and specifically relates to a visitor management method and system for community access control, the method comprising: using the encoding result of visitor information as a plaintext sequence, constructing four keys according to a chaotic mapping function, generating two encoding tables, a length sequence and a chaotic sequence according to the four keys, encrypting the plaintext sequence according to the length sequence, the chaotic sequence and the two encoding tables, obtaining a ciphertext binary sequence and a supplementary ciphertext sequence, storing the ciphertext binary sequence and the supplementary ciphertext sequence in a computer, and using the four keys as authorization verification information for access behavior to authorize a user to access the encryption result and supplementary information of the first visitor information stored in the computer. The present invention can resist known plaintext attacks with strong offensiveness and has a simple encryption process, preventing unauthorized access behavior from affecting the security of data in the computer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of security devices for protecting computer data against unauthorized actions. More specifically, the present invention relates to a visitor management method and system for community access control. Background Art

[0002] With the acceleration of urbanization and the increase in population density in residential areas, ensuring the safety of residents and protecting their privacy have become important challenges for community management. The visitor management system of community access control is a key component of modern community security management. The visitor management system of community access control is designed to effectively control and monitor the entry and exit of external visitors while ensuring the convenience of visitors and the sense of security of residents.

[0003] The visitor management system of the community access control stores sensitive data such as visitors' facial information, identity information, and visit information. The leakage of sensitive data will lead to security risks. Therefore, it is necessary to encrypt the visitor information stored in the visitor management system of the community access control, and use the key as the authorization verification information for the access behavior to prevent unauthorized access from affecting the security of visitor information.

[0004] In the related technology, visitor information is encrypted and stored using the AES encryption algorithm. For example, the patent application document with the authorization announcement number CN117197935A discloses a security information collection device for community security management services. The community visitor information is registered and stored. After registration, access permissions are obtained from the target residents. The target access control is managed according to the received permission information, thereby effectively improving the convenience of community access control management and the safety of community security.

[0005] Although the AES encryption algorithm can resist known plaintext attacks, the encryption process requires multiple complex operations, including byte replacement, row shift, column confusion, and other multiple operations, and the algorithm complexity is relatively high. Summary of the invention

[0006] In order to solve the technical problem that in the process of encrypting the visitor information of the smart community through the AES encryption algorithm, multiple complex operations are required and the algorithm complexity is high, the present invention provides solutions in the following aspects.

[0007] In the first aspect, the present invention provides a visitor management method for community access control, comprising: taking the encoding result of the first visitor information as a plaintext sequence; constructing three keys according to the parameters and initial values ​​of the chaotic mapping function; generating a first frequency sequence, a length sequence and a chaotic sequence respectively according to the three keys and the chaotic mapping function; generating a first coding table according to the first frequency sequence and preset characters; encrypting the plaintext sequence according to the first coding table, the length sequence and the chaotic sequence to obtain a ciphertext sequence composed of multiple ciphertext data, the encryption step comprising: taking the first length in the length sequence as the target length and denoting it as C, The product of any third chaotic value among C third chaotic values ​​and the length of the plaintext sequence is rounded, and the rounded result is used as the position; the plaintext data corresponding to the position is selected from the plaintext sequence, and the plaintext data is composed of plaintext binary data. In response to the existence of the plaintext binary data in the encoding result of the first encoding table, the preset characters corresponding to the plaintext binary data in the first encoding table are used as ciphertext data, and the target length, the first C third chaotic values ​​and the plaintext data are deleted from the length sequence, the chaotic sequence and the plaintext sequence respectively; conversely, the length in the length sequence that is not equal to C and has the smallest serial number is used as the mark length, and all lengths before the mark length are deleted from the length sequence.

[0008] Whether the ciphertext data can be obtained depends on whether the plaintext binary data exists in the encoding result of the first encoding table, and the acquisition of the plaintext binary data depends on the position and the distribution of the plaintext data in the plaintext sequence, wherein the position is obtained according to the length in the length sequence, the third chaotic value in the chaotic sequence and the length of the plaintext sequence, and when the plaintext binary data does not exist in the encoding result of the first encoding table, the length sequence will be updated, and whether the plaintext binary data exists in the encoding result of the first encoding table depends on the distribution of the plaintext data in the plaintext sequence, that is, the distribution of the plaintext data in the plaintext sequence also affects the generated position; therefore, in the present invention, the distribution of the plaintext data in the plaintext sequence is an important factor in determining the encryption result of the plaintext sequence, and the encryption result of the plaintext sequence is highly sensitive to the plaintext sequence, and the encryption method of the present invention can resist known plaintext attacks with strong aggressiveness.

[0009] Furthermore, in the encryption process of the encryption method of the present invention, the essence of determining the position is to perform a multiplication operation, and the target length, the first C third chaotic values ​​and the plaintext data are deleted from the length sequence, the chaotic sequence and the plaintext sequence respectively, and all lengths before the mark length are deleted from the length sequence, which also only involves a deletion operation. To determine whether the plaintext binary data exists in the encoding result of the first encoding table, it is only necessary to perform a search operation in the first encoding table. Compared with the multiple complex operations such as byte replacement, row shift, column confusion, etc. in the encryption process of the AES encryption algorithm, the encryption method of the present invention only involves simple operations such as multiplication, deletion, and search. Therefore, the encryption method of the present invention has lower complexity and a simpler encryption process.

[0010] In one embodiment, the encryption step also includes: repeating the encryption step until the length of the plaintext sequence is less than the minimum length of the encoding result in the first encoding table, stopping the iteration, and using the plaintext sequence whose length is less than the minimum length at this time as a supplementary ciphertext sequence.

[0011] In one embodiment, the three keys include a first key, and the method further includes: constructing a fourth key based on the parameters and initial values ​​of the chaotic mapping function, wherein the fourth key is different from the first key; generating a second frequency sequence based on the fourth key and the chaotic mapping function; assigning each second frequency in the second frequency sequence to each preset character in turn; constructing a second Huffman tree based on the second frequency corresponding to each preset character, and obtaining a second coding table based on the second Huffman tree; encoding the ciphertext sequence according to the second coding table to obtain a ciphertext binary sequence.

[0012] Due to the unpredictability and randomness of the chaotic mapping function, the second frequency sequence constructed based on the chaotic mapping function makes the encryption algorithm of the present invention have high security.

[0013] In one embodiment, the method further includes: the ciphertext binary sequence and the supplementary ciphertext sequence represent the encryption result of the first visitor information, and the ciphertext binary sequence and the supplementary ciphertext sequence are stored in a memory of a computer.

[0014] The complementary ciphertext sequence is stored in the computer's memory to ensure the integrity of the visitor's information.

[0015] In one embodiment, a first coding table is generated according to the first frequency sequence and preset characters, including: allocating each first frequency in the first frequency sequence to each preset character in turn; constructing a first Huffman tree according to the first frequency corresponding to each preset character, and obtaining a first coding table according to the first Huffman tree, wherein the first coding table includes a first coding result for each preset character.

[0016] In one embodiment, the method for obtaining the length sequence includes: using the second key as the initial value and parameter of the chaotic mapping function, iterating the chaotic mapping function, and obtaining a plurality of second chaotic values; each length in the length sequence satisfies the relationship: ; In the formula, represents the i-th length in the length sequence, represents the i-th second chaotic value, Indicates rounding up. Indicates the minimum length of the encoding result in the first encoding table, Indicates the maximum length of the encoding result in the first encoding table.

[0017] Due to the unpredictability and randomness of the chaotic mapping function, the length sequence obtained based on the chaotic mapping function makes the encryption algorithm of the present invention have high security.

[0018] In one embodiment, the method for obtaining the first frequency sequence includes: using the first key as the initial value and parameter of the chaotic mapping function, iterating the chaotic mapping function N times, and obtaining N first chaotic values; recording the sum of all the first chaotic values ​​as the first numerical value, and taking the ratio of each first chaotic value to the first numerical value as the first frequency; taking the sequence composed of all the first frequencies as the first frequency sequence; wherein N represents a preset number.

[0019] Due to the unpredictability and randomness of the chaotic mapping function, the encryption algorithm of the present invention has high security based on the first frequency sequence obtained by the chaotic mapping function.

[0020] In one embodiment, the method further includes: using four keys as authorization verification information of the access behavior, and saving the authorization verification information of the access behavior on a first offline device; distributing the first offline device to authorized persons, wherein the authorized persons are persons authorized to access the encrypted result and supplementary information of the first visitor information stored in the computer.

[0021] The key is used as the authorization verification information for access behavior to prevent unauthorized access from affecting the security of visitor information in the computer.

[0022] In a second aspect, the present invention provides a visitor management system for community access control, which adopts the following technical solution:

[0023] A visitor management system for community access control includes: a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the above-mentioned visitor management method for community access control is implemented.

[0024] By adopting the above technical solution, the above-mentioned community access control visitor management method is generated into a computer program and stored in a memory so as to be loaded and executed by a processor, thereby making a terminal device based on the memory and the processor for easy use.

[0025] The beneficial effects of the present invention are:

[0026] In the present invention, the distribution of plaintext data in the plaintext sequence is an important factor in determining the encryption result of the plaintext sequence. Therefore, the encryption result of the plaintext sequence is highly sensitive to the plaintext sequence and can resist known plaintext attacks with strong offensiveness. Therefore, the visitor information is encrypted by the encryption method of the present invention, thereby improving the security of the visitor information.

[0027] Furthermore, compared with the multiple complex operations such as byte replacement, row shift, column confusion, etc. in the encryption process of the AES encryption algorithm, the encryption method of the present invention only involves simple operations such as multiplication, deletion, and search. Therefore, the encryption method of the present invention is less complex and the encryption process is simpler. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0029] Figure 1 is a flow chart schematically illustrating a method for managing visitors of a community access control system in the present invention;

[0030] Figure 2 is a schematic diagram showing a first coding table obtained according to a first key in the present invention;

[0031] Figure 3 Schematically illustrates the second coding table obtained according to the fourth key in the present invention. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0033] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0034] The embodiment of the present invention discloses a method for managing visitors to a community access control system. Figure 1, comprising steps S1 to S6:

[0035] S1. Encode the first visitor information, and use the encoding result of the first visitor information as a plaintext sequence.

[0036] It should be noted that the visitor management system of community access control is a key component of modern community security management. The visitor management system of community access control stores sensitive data such as visitors' facial information, identity information, and visit information. The leakage of sensitive data will lead to security risks. Therefore, it is necessary to encrypt the visitor information stored in the visitor management system of community access control, and use the key as authorization verification information for access behavior to prevent unauthorized access behavior from affecting the security of data in the visitor management system.

[0037] Specifically, the first visitor information includes face information, identity information, visit information, etc. The first visitor information is encoded using UTF16 encoding, and the encoding result of the first visitor information is used as a plaintext sequence.

[0038] Among them, the facial information is the facial image of the visitor obtained by the facial collection device at the access control station; the identity information includes the visitor's name, gender, contact information, ID number, etc., and the visit information includes the visitor's visiting object, purpose of visit, visit start time, expected visit end time, actual visit end time, etc.

[0039] S2. According to the chaotic mapping function, four keys are constructed, which are respectively recorded as the first key, the second key, the third key and the fourth key.

[0040] It should be noted that the Logistic chaotic mapping function is pseudo-random, sensitive to initial conditions, non-periodic and long-term unpredictable, and is often used as a key generator; Within the range and the parameters are When the value of the Logistic chaotic mapping function is within the range of , the Logistic chaotic mapping function enters a chaotic state and generates chaotic values ​​between [0,1]. Therefore, when generating a key according to the Logistic chaotic mapping function, the initial value is required to be in the range of , the parameter value range is .

[0041] Specifically, within the value range of the initial value of the Logistic chaotic mapping function and the value range of the parameter, four groups of initial value and parameter combinations are randomly generated as the first key, the second key, the third key and the fourth key respectively.

[0042] It should be particularly noted that the fourth key is different from the first key.

[0043] The present invention is described only by taking the Logistic chaotic mapping function as an example. In other embodiments, other chaotic mapping functions may be used to construct a key for subsequent operations, such as the Singer chaotic mapping function, the Tent chaotic mapping function, etc.

[0044] It should be noted that the key constructed based on the chaotic mapping function makes the encryption algorithm of the present invention have high security.

[0045] S3. Generate two frequency sequences according to the first key and the fourth key respectively, and construct two coding tables according to the two frequency sequences and preset characters.

[0046] Specifically, N characters are selected without duplication from all uppercase English letters, all lowercase English letters and numbers from 0 to 9 as the preset characters.

[0047] Further, the first key is used as the initial value and parameter of the Logistic chaotic mapping function, the Logistic chaotic mapping function is iterated N times, and N first chaotic values ​​are obtained; the sum of all the first chaotic values ​​is calculated and recorded as the first numerical value; the ratio of the first chaotic value to the first numerical value is used as the first frequency; the sequence composed of all the first frequencies is used as the first frequency sequence;

[0048] Further, each first frequency in the first frequency sequence is assigned to each preset character in turn; a first Huffman tree is constructed according to the first frequency of each preset character, and a first coding table is obtained according to the first Huffman tree, wherein the first coding table includes a first coding result of each preset character, and the first coding result is binary data.

[0049] Wherein, N represents a preset number, and in the present invention, N=30.

[0050] Further, the fourth key is used as the initial value and parameter of the Logistic chaotic mapping function, the Logistic chaotic mapping function is iterated N times, and N fourth chaotic values ​​are obtained; the sum of all fourth chaotic values ​​is calculated and recorded as the second value; the ratio of the fourth chaotic value to the second value is used as the second frequency; the sequence composed of all second frequencies is used as the second frequency sequence;

[0051] Furthermore, each second frequency in the second frequency sequence is assigned to each preset character in turn; a second Huffman tree is constructed according to the second frequency of each preset character, and a second coding table is obtained according to the second Huffman tree, wherein the second coding table includes a second coding result of each preset character, and the second coding result is binary data.

[0052] It should be noted that, due to the unpredictability and randomness of the chaotic mapping function, the first frequency sequence and the second frequency sequence constructed based on the chaotic mapping function make the encryption algorithm of the present invention have high security.

[0053] S4. Generate a length sequence according to the second key and the minimum length and maximum length of the encoding result in the first encoding table; generate a chaotic sequence according to the third key.

[0054] Specifically, a length sequence is generated according to the second key and the minimum length and the maximum length of the encoding result in the first encoding table, including: using the second key as the initial value and parameter of the Logistic chaotic mapping function, iterating the Logistic chaotic mapping function, and obtaining multiple second chaotic values; each length in the length sequence satisfies the relationship:

[0055]

[0056] In the formula, represents the i-th length in the length sequence, represents the i-th second chaotic value, Indicates rounding up. Indicates the minimum length of the encoding result in the first encoding table, Indicates the maximum length of the encoding result in the first encoding table.

[0057] Further, a chaotic sequence is generated according to the third key, including: using the third key as the initial value and parameter of the Logistic chaotic mapping function, iterating the Logistic chaotic mapping function to obtain multiple third chaotic values, and using a sequence composed of all the third chaotic values ​​as the chaotic sequence.

[0058] It should be noted that, due to the unpredictability and randomness of the chaotic mapping function, the length sequence and chaotic sequence constructed based on the chaotic mapping function make the encryption algorithm of the present invention have high security.

[0059] S5. Encrypt the plaintext sequence according to the length sequence, the chaotic sequence, the first coding table and the second coding table to obtain a ciphertext binary sequence and a supplementary ciphertext sequence, wherein the ciphertext binary sequence and the supplementary ciphertext sequence represent the encryption result of the first visitor information, and store the ciphertext binary sequence and the supplementary ciphertext sequence.

[0060] It should be noted that resistance to known plaintext attacks means that the encryption method can prevent attackers from using known plaintext and corresponding ciphertext to infer the encryption algorithm's key or other sensitive information; this is an important test of the security of the encryption algorithm, because if the encryption algorithm cannot resist known plaintext attacks, then attackers can use known plaintext and corresponding ciphertext to crack other unknown ciphertexts, thereby undermining the security of the encryption system.

[0061] It should be further explained that, although the AES encryption algorithm can resist known plaintext attacks, the encryption process requires multiple complex operations, including byte replacement, row shift, column confusion and other multiple operations, so the algorithm complexity is relatively high; therefore, there is an urgent need for an encryption algorithm that can resist known plaintext attacks and has a simple encryption process to encrypt the first visitor information; the ability of the encryption method to resist known plaintext attacks depends on the sensitivity of the ciphertext sequence to the plaintext sequence. The stronger the sensitivity, the stronger the ability of the data encryption method to resist known plaintext attacks. Therefore, the encryption method of the present invention increases the dependence of the encryption result of the plaintext sequence on the distribution of the plaintext data in the plaintext sequence, thereby enhancing the sensitivity of the ciphertext sequence to the plaintext sequence, so that the encryption method of the present invention has the ability to resist known plaintext attacks.

[0062] Specifically, according to the length sequence, the chaotic sequence, the first coding table and the second coding table, the plaintext sequence is encrypted to obtain a ciphertext binary sequence and a supplementary ciphertext sequence, including:

[0063] Step 1: Take the first length in the length sequence as the target length and record it as C;

[0064] Step 2, calculating the product of any third chaotic value among the first C third chaotic values ​​in the chaotic sequence and the length of the plaintext sequence, and taking the integer result of the product as the position; selecting the plaintext data corresponding to the position from the plaintext sequence, and composing the plaintext data into plaintext binary data;

[0065] Step 3, in response to the plaintext binary data existing in the encoding result of the first encoding table, using the preset characters corresponding to the plaintext binary data in the first encoding table as ciphertext data; using the decoding result of the plaintext binary data as ciphertext data; deleting the target length from the length sequence; deleting the first C third chaotic values ​​from the chaotic sequence, and deleting the plaintext data from the plaintext sequence;

[0066] In response to the plaintext binary data not existing in the encoding result of the first encoding table, taking the length in the length sequence that is not equal to C and has the smallest sequence number as the mark length, and deleting all lengths before the mark length from the length sequence;

[0067] Step 4, repeat steps 1 to 3 until the length of the plaintext sequence is less than the minimum length of the encoding result in the first encoding table, then stop iterating; take a sequence composed of all ciphertext data in the order in which they are obtained as a ciphertext sequence; and take the plaintext sequence whose length is less than the minimum length at this time as a supplementary ciphertext sequence.

[0068] Further, the ciphertext sequence is encoded according to the second encoding table, and the encoding result of the ciphertext sequence is used as the ciphertext binary sequence.

[0069] It should be noted that whether the ciphertext data can be obtained depends on whether the plaintext binary data exists in the encoding result of the first encoding table, and the acquisition of the plaintext binary data depends on the position and the distribution of the plaintext data in the plaintext sequence, wherein the position is obtained based on the length in the length sequence, the third chaotic value in the chaotic sequence and the length of the plaintext sequence, and when the plaintext binary data does not exist in the encoding result of the first encoding table, the length sequence will be updated, and whether the plaintext binary data exists in the encoding result of the first encoding table depends on the distribution of the plaintext data in the plaintext sequence, that is, the distribution of the plaintext data in the plaintext sequence also affects the generated position; therefore, in the present invention, the distribution of plaintext data in the plaintext sequence is an important factor in determining the encryption result of the plaintext sequence, and the encryption result of the plaintext sequence is more sensitive to the plaintext sequence, and the encryption method of the present invention can resist known plaintext attacks with strong aggressiveness.

[0070] It should be further explained that in the encryption process of the encryption method of the present invention, the essence of determining the position is to perform a multiplication operation, and the target length, the first C third chaotic values ​​and the plaintext data are deleted from the length sequence, the chaotic sequence and the plaintext sequence respectively, and all lengths before the mark length are deleted from the length sequence. It only involves a deletion operation. To determine whether the plaintext binary data exists in the encoding result of the first encoding table, it is only necessary to perform a search operation in the first encoding table. Compared with the multiple complex operations such as byte replacement, row shift, column confusion, etc. in the encryption process of the AES encryption algorithm, the encryption method of the present invention only involves simple operations such as multiplication, deletion, and search. Therefore, the encryption method of the present invention has lower complexity and a simpler encryption process.

[0071] Exemplarily, when the first visitor information is encoded in UTF-16 encoding, the encoding result is {1,0,1,1,0,1,1,1,0,0,1,1,1,0,0,1,0,0,0,0,0,0,0,0,1,0,1,1,0,0,0,0,0,…,0,1,1,0,0,0,0,0}, then the plaintext sequence is {1,0,1,1,0,1,1,1,0,0,1,1,1,0,0,1,0,0,0,0,0,0,0,0,1,0,1,1,0,0,0,0,0,0,…,0,1,1,0,0,0,0,0}, and the length of the plaintext sequence is 112;

[0072] The first encoding table obtained according to the first key is as follows Figure 2 As shown in the first coding table, the minimum length of the coding result is 2, and the maximum length of the coding result is 5; the second coding table obtained according to the fourth key is as follows Figure 3 As shown; according to the minimum length and maximum length of the encoding result in the second key and the first encoding table, the length sequence obtained is {2,4,4,4,3,5,5,2,…}, and the chaotic sequence obtained according to the third key is {0.2297,0.8374,0.4956,0.7136,0.9620,0.0333,0.8101,0.2739,…};

[0073] According to the length sequence, the chaotic sequence, the first coding table and the second coding table, the specific process of encrypting the plaintext sequence is as follows:

[0074] 1. Take the first length C1=2 in the length sequence as the target length;

[0075] 2. According to the first two third chaotic values ​​of the chaotic sequence, 0.2297 and 0.8374, and the length of the plaintext sequence is 112, the position is determined to be {26,94}; the 26th and 94th plaintext data "1" and "0" are selected from the plaintext sequence according to the position, and the binary data "10" composed of the plaintext data is recorded as plaintext binary data; since the plaintext binary data "10" exists in the encoding result of the first encoding table, the preset character "D" corresponding to the plaintext binary data in the first encoding table is used as the ciphertext data;

[0076] 3. Delete the target length from the length sequence. The length sequence after deletion is {4,4,4,3,5,5,2,…}. Delete the first two third chaotic values ​​0.2297 and 0.8374 from the chaotic sequence. The chaotic sequence after deletion is {0.4956,0.7136,0.9620,0.0333,0.8101,0.2739,…}. Delete the 26th and 94th plaintext data "1" and "0" from the plaintext sequence. The length of the plaintext sequence after deletion is 110.

[0077] 4. Take the first length C1=4 in the deleted length sequence {4,4,4,3,5,5,2,…} as the target length;

[0078] 5. According to the first four third chaotic values ​​of the deleted chaotic sequence, 0.4956, 0.7136, 0.9620 and 0.0333, and the length of the plaintext sequence, 110, the position is determined to be {55, 79, 106, 4}; according to the position, the 55th, 79th, 106th and 4th plaintext data "1", "1", "1" and "0" are selected from the deleted plaintext sequence, and the binary data "1110" composed of the plaintext data is recorded as plaintext binary data; at this time, the plaintext binary data "1110" exists in the encoding result of the first encoding table;

[0079] 6. In the length sequence {4,4,4,3,5,5,2,…} after deletion, the first three lengths are equal to the target length. The fourth length C4=3 is the length that is not equal to the target length and has the smallest sequence number in the length sequence after deletion. Therefore, the fourth length C4=3 is used as the marker length, and all lengths before the marker length are deleted from the length sequence. The length sequence after deletion is {3,5,5,2,…};

[0080] 7. Take the first length C1=3 in the deleted length sequence {3,5,5,2,…} as the target length;

[0081] 8. According to the first three third chaotic values ​​of the deleted chaotic sequence, 0.4956, 0.7136, and 0.9620, and the length of the plaintext sequence, 110, the position is determined to be {55, 79, 106}; according to the position, the 55th, 79th, and 106th plaintext data "1", "1", and "1" are selected from the deleted plaintext sequence, and the binary data "111" composed of the plaintext data is recorded as plaintext binary data; since the plaintext binary data "111" exists in the encoding result of the first encoding table, the preset character "H" corresponding to the plaintext binary data in the first encoding table is used as the ciphertext data;

[0082] 9. Delete the target length from the length sequence. The length sequence after deletion is {5,5,2,…}. Delete the first three third chaotic values ​​0.4956, 0.7136, and 0.9620 from the chaotic sequence. The chaotic sequence after deletion is {0.8101, 0.2739,…}. Delete the 55th, 79th, and 106th plaintext data "1", "1", and "1" from the plaintext sequence. The length of the plaintext sequence after deletion is 107.

[0083] 10. Repeat this process until the length of the plaintext sequence is less than the minimum length of the encoding result, then stop iterating, and take a sequence consisting of all ciphertext data in the order in which they are obtained as the ciphertext sequence. The obtained ciphertext sequence is {D, H, D, …, C, E, B}. At this time, the plaintext sequence whose length is less than the minimum length of the encoding result is {1}, and the supplementary ciphertext sequence is {1}.

[0084] 11. Encode the ciphertext sequence {D, H, D, …, C, E, B} according to the second coding table, and take the encoding result of the ciphertext sequence {0, 0, 0, 0, 1, 1, 0, 0, 0, 0, …, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1} as the ciphertext binary sequence.

[0085] Furthermore, the ciphertext binary sequence and the supplementary ciphertext sequence represent the encryption result of the first visitor information, and the ciphertext binary sequence and the supplementary ciphertext sequence are stored in the computer's memory, and at the same time, the preset characters are stored in the computer's memory as supplementary information.

[0086] It should be noted that the storage of the supplementary ciphertext sequence in the computer's memory ensures the integrity of the visitor information.

[0087] S6. Use the four keys as authorization verification information for access behavior.

[0088] Specifically, the four keys are used as authorization verification information of the access behavior, and the authorization verification information of the access behavior is stored on the first offline device; the first offline device is distributed to authorized persons, and the authorized persons are persons who are authorized to access the encrypted result and supplementary information of the first visitor information stored in the computer.

[0089] It should be noted that the key is used as authorization verification information for access behavior to prevent unauthorized access behavior from affecting the security of visitor information in the computer.

[0090] The offline device has a storage function and can be connected to a USB port of a computer, including but not limited to a USB flash drive, an external hard drive, a solid state drive (SSD), etc.

[0091] Furthermore, when a person wants to access the visitor information of the smart community stored in the computer, the person is required to connect the second offline device owned by the person to the USB port of the computer. In response to the authorization verification information stored in the second offline device owned by the person, the person is authorized to access the encrypted result and supplementary information of the first visitor information stored in the computer, specifically: according to the four keys in the authorization verification information and the character sequence in the supplementary information, the ciphertext binary sequence and the supplementary ciphertext sequence are decrypted to obtain the second visitor information, and the person can view the second visitor information; in response to the authorization verification information not being stored in the second offline device owned by the person, the person is not authorized, and the person cannot access the encrypted result and supplementary information of the first visitor information stored in the computer.

[0092] Among them, according to the four keys and the preset characters, the ciphertext binary sequence and the supplementary ciphertext sequence are decrypted to obtain the second visitor information, including:

[0093] Generate a first coding table and a second coding table according to the first key and the fourth key respectively, generate a length sequence according to the minimum length and the maximum length of the coding result in the second key and the first coding table, and generate a chaotic sequence according to the third key;

[0094] Decoding the ciphertext binary sequence according to the second coding table to obtain a ciphertext sequence;

[0095] Encode the ciphertext data in the ciphertext sequence in sequence according to the first coding table; obtain the length in the length sequence that is equal to the length of the encoding result of the ciphertext data and has the smallest sequence number according to the length of the encoding result of the ciphertext data, as the target length C; determine the position according to any third chaotic value among the first C third chaotic values ​​of the chaotic sequence and the length of the plaintext sequence; set each data in the encoding result of the ciphertext data in the corresponding position in the plaintext sequence in sequence; delete the target length and all lengths before the target length from the length sequence, delete the first C third chaotic values ​​from the chaotic sequence, and delete the ciphertext data from the ciphertext sequence; repeat the operation until the ciphertext sequence is empty;

[0096] The data in the supplementary ciphertext sequence are sequentially set to the free positions in the plaintext sequence to obtain a final plaintext sequence; the final plaintext sequence is decoded by UTF16 encoding to obtain the second visitor information.

[0097] An embodiment of the present invention further discloses a visitor management system for community access control, including a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a visitor management method for community access control according to the present invention is implemented.

[0098] The above system also includes other components well known to those skilled in the art, such as a communication bus and a communication interface, and their configuration and functions are known in the art, so they will not be described in detail here.

[0099] In the description of this specification, "plurality" or "several" means at least two, such as two, three or more, etc., unless otherwise clearly and specifically defined.

[0100] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, alternatives to the embodiments of the present invention described herein may be employed.

Claims

1. A method for managing visitors to a community access control system, characterized in that: include: Using the encoding result of the first visitor information as a plaintext sequence; Construct three keys according to the parameters and initial values ​​of the chaos mapping function; According to the three keys and the chaotic mapping function, a first frequency sequence, a length sequence and a chaotic sequence are generated respectively; according to the first frequency sequence and the preset characters, a first coding table is generated; The method for obtaining the length sequence includes: using the second key as the initial value and parameter of the chaotic mapping function, iterating the chaotic mapping function, and obtaining a plurality of second chaotic values; each length in the length sequence satisfies the relation: ; In the formula, represents the i-th length in the length sequence, represents the i-th second chaotic value, Indicates rounding up. Indicates the minimum length of the encoding result in the first encoding table, Indicates the maximum length of the encoding result in the first encoding table; According to the first coding table, the length sequence and the chaotic sequence, the plaintext sequence is encrypted to obtain a ciphertext sequence consisting of a plurality of ciphertext data, wherein the encryption step comprises: The first length in the length sequence is taken as the target length and recorded as C, and the product of any third chaotic value among the first C third chaotic values ​​in the chaotic sequence and the length of the plaintext sequence is rounded, and the rounded result is taken as the position; the plaintext data corresponding to the position is selected from the plaintext sequence, and the plaintext data is composed of plaintext binary data. In response to the existence of the plaintext binary data in the encoding result of the first encoding table, the preset characters corresponding to the plaintext binary data in the first encoding table are taken as ciphertext data, and the target length, the first C third chaotic values ​​and the plaintext data are deleted from the length sequence, the chaotic sequence and the plaintext sequence respectively; conversely, the length in the length sequence that is not equal to C and has the smallest serial number is taken as the mark length, and all lengths before the mark length are deleted from the length sequence.

2. A method for managing visitors to a community access control system according to claim 1, characterized in that: The encryption step also includes: Repeat the encryption steps until the length of the plaintext sequence is less than the minimum length of the encoding result in the first encoding table, stop the iteration, and use the plaintext sequence whose length is less than the minimum length at this time as the supplementary ciphertext sequence.

3. A method for managing visitors of a community access control system according to claim 1, characterized in that: The three keys include a first key, and the method further includes: constructing a fourth key according to the parameters and the initial value of the chaotic mapping function, wherein the fourth key is different from the first key; Generate a second frequency sequence according to the fourth key and the chaotic mapping function; Allocating each second frequency in the second frequency sequence to each preset character in sequence; Construct a second Huffman tree according to the second frequencies corresponding to the preset characters, and obtain a second encoding table according to the second Huffman tree; The ciphertext sequence is encoded according to the second encoding table to obtain a ciphertext binary sequence.

4. A method for managing visitors to a community access control system according to claim 2 or 3, characterized in that: The method further comprises: The ciphertext binary sequence and the supplementary ciphertext sequence represent the encryption result of the first visitor information, and the ciphertext binary sequence and the supplementary ciphertext sequence are stored in a memory of a computer.

5. A method for managing visitors of a community access control system according to claim 1, characterized in that: Generating a first coding table according to the first frequency sequence and the preset character, including: Allocating each first frequency in the first frequency sequence to each preset character in sequence; A first Huffman tree is constructed according to the first frequencies corresponding to the preset characters, and a first coding table is obtained according to the first Huffman tree, wherein the first coding table includes first coding results of the preset characters.

6. A method for managing visitors of a community access control system according to claim 1, characterized in that: The method for acquiring the first frequency sequence includes: The first key is used as the initial value and parameter of the chaotic mapping function, the chaotic mapping function is iterated N times, and N first chaotic values ​​are obtained; the sum of all the first chaotic values ​​is recorded as the first numerical value, and the ratio of each first chaotic value to the first numerical value is used as the first frequency; the sequence composed of all the first frequencies is used as the first frequency sequence; wherein N represents a preset number.

7. A method for managing visitors of a community access control system according to claim 1, characterized in that: The method further comprises: Using the four keys as authorization verification information for the access behavior, and saving the authorization verification information for the access behavior on the first offline device; The first offline device is distributed to authorized persons, where the authorized persons are persons who are authorized to access the encrypted result of the first visitor information and the supplementary information stored in the computer.

8. A visitor management system for community access control, characterized in that: include: A processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a community access control visitor management method according to any one of claims 1-7 is implemented.

Citation Information

Patent Citations

  • Security information acquisition device for community security management service

    CN117197935A

  • Multi-chip parallel encryption method realized through frequency confusion

    CN115982786A

  • Chaotic flow encryption method and device based on Tent mapping, equipment and medium

    CN116032457A

  • System for scrambling and methods for use therewith

    US20120033809A1

  • Entrance system for transportation system and transportation system

    WO2019090784A1