CN116228508A - Password generation and authentication system and method - Google Patents
Password generation and authentication system and method Download PDFInfo
- Publication number
- CN116228508A CN116228508A CN202310521687.2A CN202310521687A CN116228508A CN 116228508 A CN116228508 A CN 116228508A CN 202310521687 A CN202310521687 A CN 202310521687A CN 116228508 A CN116228508 A CN 116228508A
- Authority
- CN
- China
- Prior art keywords
- image
- groups
- blocks
- source image
- password
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/0021—Image watermarking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20021—Dividing image into blocks, subimages or windows
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Bioethics (AREA)
- Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Storage Device Security (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
The invention is applicable to the technical field of data processing, and particularly relates to a password generation and authentication system and method, wherein the method comprises the following steps: acquiring the number of account passwords and security level information, and determining the resolution of an image to be acquired; image acquisition is carried out to obtain a data source image, and the data source image is segmented to obtain a plurality of groups of independent block pairs; performing superposition processing to obtain a mixed image block; cutting the mixed image blocks to obtain a plurality of groups of image blocks to be converted, converting the image blocks to be converted into texts to obtain corresponding account numbers and passwords, and independently storing the data source images. According to the method, the image is divided according to the image acquired randomly, a plurality of blocks acquired by dividing are converted into data to acquire data in a text format, and accordingly the account and the password are synthesized.
Description
Technical Field
The invention belongs to the technical field of data processing, and particularly relates to a password generation and authentication system and method.
Background
Passwords are a technique used for confusion, where a user wishes to transform normal (identifiable) information into unrecognizable information. But this unidentifiable portion of the information can be reworked and recovered and broken.
In the current enterprises, there is usually an own internal system, and in order to facilitate the access of staff, the staff is usually provided with respective account numbers and passwords, but the account passwords are created one by one, which is time-consuming and labor-consuming, and the security is not enough.
Disclosure of Invention
The embodiment of the invention aims to provide a password generation and authentication method, which aims to solve the problems that the time and the labor are wasted and the safety is insufficient when the account passwords are set for staff one by one.
The embodiment of the invention is realized in such a way that a password generation and authentication method comprises the following steps:
acquiring the number of account passwords and security level information to be generated, and determining the resolution of an image to be acquired based on the number of the account passwords and the security level information;
image acquisition is carried out according to the resolution of an image to be acquired to obtain a data source image, the data source image is segmented according to the number of account passwords to obtain a plurality of groups of independent image block pairs, the data source image comprises two groups of independent image block pairs which are respectively a first source image and a second source image, the independent image block pairs comprise two groups of image blocks, and the two groups of image blocks are respectively derived from corresponding positions of the first source image and the second source image;
superposing two groups of independent image blocks in each group of independent image block pairs to obtain a mixed image block;
cutting the mixed image blocks according to the security level information to obtain a plurality of groups of image blocks to be converted, converting the image blocks to be converted into texts to obtain corresponding account numbers and passwords, and independently storing the data source images.
Preferably, the step of acquiring the image according to the resolution of the image to be acquired to obtain a data source image, and dividing the data source image according to the number of the account passwords to obtain a plurality of groups of independent block pairs specifically includes:
performing equipment detection to obtain available network cameras in a current local area network, and randomly selecting two groups of network cameras through a random function;
acquiring images through the network cameras to obtain data source images, wherein the images acquired by the two groups of network cameras are a first source image and a second source image respectively;
equally dividing the data source image into a number of blocks equal to the number of account passwords, wherein the blocks from the corresponding positions of the first source image and the second source image are an independent block pair.
Preferably, the step of superposing the two independent image blocks in each independent image block pair to obtain a mixed image block specifically includes:
performing binarization processing on two independent image blocks in each pair of opposite image block groups to obtain two sets of binarized images;
determining a matching relation between pixels in the binarized image, and identifying a gray value of each pixel;
and generating a blank mixed image block, calculating an average value of gray values of corresponding pixels in the two groups of binarized images, and taking the average value as the gray value of the corresponding pixels in the mixed image block.
Preferably, the step of cutting the mixed image block according to the security level information to obtain a plurality of groups of image blocks to be converted, converting the image blocks to be converted into texts to obtain corresponding account numbers and passwords, and independently storing the data source images specifically includes:
determining the cutting number and the cutting proportion of the mixed image blocks based on the security level information, and cutting to obtain a plurality of groups of image blocks to be converted;
carrying out data conversion on the block to be converted according to different conversion modes to obtain a plurality of groups of text data, and combining the text data to obtain a corresponding account number and a corresponding password;
and storing the first source image and the second source image separately to generate an account password list.
Preferably, the account numbers and the passwords corresponding to each staff are recorded in the account number and password list, and the account number and password list is deleted after the account numbers and the passwords are sent to the corresponding staff.
Preferably, both the first source image and the second source image are encrypted when stored.
It is another object of an embodiment of the present invention to provide a password generation and authentication system, the system comprising:
the information acquisition module is used for acquiring the number of the account passwords and the security level information which need to be generated, and determining the resolution of the image to be acquired based on the number of the account passwords and the security level information;
the system comprises a source image acquisition module, a first image acquisition module and a second image acquisition module, wherein the source image acquisition module is used for carrying out image acquisition according to the resolution of an image to be acquired to obtain a data source image, dividing the data source image according to the number of account passwords to obtain a plurality of groups of independent image block pairs, the data source image comprises two groups of independent image block pairs which are respectively a first source image and a second source image, the independent image block pairs comprise two groups of image blocks, and the two groups of image blocks are respectively derived from the corresponding positions of the first source image and the second source image;
the block superposition module is used for superposing two groups of independent blocks in each group of independent block pairs to obtain a mixed block;
the data generation module is used for cutting the mixed image blocks according to the security level information to obtain a plurality of groups of image blocks to be converted, converting the image blocks to be converted into texts to obtain corresponding account numbers and passwords, and independently storing the data source images.
Preferably, the source image acquisition module includes:
the device detection unit is used for performing device detection, acquiring available network cameras in the current local area network, and randomly selecting two groups of network cameras through a random function;
the image acquisition unit is used for acquiring images through the network cameras to obtain data source images, and the images acquired by the two groups of network cameras are a first source image and a second source image respectively;
the image dividing unit is used for equally dividing the data source image into a plurality of image blocks with the number equal to the number of account passwords, and the image blocks from the corresponding positions of the first source image and the second source image are an independent image block pair.
Preferably, the tile superposition module includes:
the binarization processing unit is used for carrying out binarization processing on two independent image blocks in each set of opposite image block groups to obtain two sets of binarized images;
a pixel identification unit for determining a matching relationship between each pixel in the binarized image and identifying a gray value of each pixel;
and the mixed image block generating unit is used for generating a blank mixed image block, calculating the average value of the gray values of the corresponding pixels in the two groups of binarized images, and taking the average value as the gray value of the corresponding pixels in the mixed image block.
Preferably, the data generating module includes:
the image block cutting unit is used for determining the cutting number and the cutting proportion of the mixed image blocks based on the security level information, and cutting to obtain a plurality of groups of image blocks to be converted;
the text conversion unit is used for converting the data of the to-be-converted image blocks according to different conversion modes to obtain a plurality of groups of text data, and obtaining corresponding account numbers and passwords according to the text data combination;
and the data storage unit is used for separately storing the first source image and the second source image and generating an account password list.
According to the password generation and authentication method provided by the embodiment of the invention, the image is acquired randomly, the image is divided according to the image acquired randomly, a plurality of blocks acquired by dividing are converted into data, so that the data in a text format are obtained, and the account and the password are synthesized according to the data.
Drawings
FIG. 1 is a flowchart of a method for generating and authenticating a password according to an embodiment of the present invention;
FIG. 2 is a flowchart of a step of acquiring an image according to the resolution of an image to be acquired to obtain a data source image, and dividing the data source image according to the number of account passwords to obtain a plurality of independent block pairs according to the embodiment of the invention;
FIG. 3 is a flowchart illustrating steps for superposing two independent blocks in each independent block pair to obtain a mixed block according to an embodiment of the present invention;
fig. 4 is a flowchart of a step of cutting a mixed image block according to security level information to obtain a plurality of groups of image blocks to be converted, converting the image blocks to be converted into text to obtain a corresponding account number and a corresponding password, and independently storing a data source image, which is provided by the embodiment of the invention;
FIG. 5 is a block diagram of a password generation and authentication system according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a source image acquisition module according to an embodiment of the present invention;
fig. 7 is a block diagram of a block stacking module according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a data generating module according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
It will be understood that the terms "first," "second," and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms unless otherwise specified. These terms are only used to distinguish one element from another element. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script, without departing from the scope of the present application.
As shown in fig. 1, a flowchart of a method for generating and authenticating a password according to an embodiment of the present invention is provided, where the method includes:
s100, acquiring the number of the account passwords and the security level information which need to be generated, and determining the resolution of the image to be acquired based on the number of the account passwords and the security level information.
In this step, the number of account passwords to be generated and the security level information are obtained, where the number of account passwords is the number of account password pairs to be generated this time, if the enterprise includes 100 employees, an account and a password need to be set for each of the 100 employees, the number of account passwords is 100, the security level information is data types included in each password, if one or more of numbers, characters and letters are limited to be included, the security is higher for the more data types included in the password, the security level information is divided into three types, namely primary (including one data type), medium (including two data types) and high (including three data types), when an account number or a password is generated according to an image, the number of characters corresponding to the account number is the same, for example, 200 pixels can generate a group of texts, one account number corresponds to one high-level password, four groups of texts are needed, four groups of texts correspond to texts and three types of passwords respectively, finally 800 pixels are needed, and if 100 pixels are needed, the image resolution is required to be obtained, and the final image resolution is 400, namely, the final image resolution is 200.
S200, image acquisition is carried out according to the resolution of an image to be acquired, a data source image is obtained, the data source image is segmented according to the number of account passwords, a plurality of groups of independent image block pairs are obtained, the data source image comprises two groups which are respectively a first source image and a second source image, the independent image block pairs comprise two groups of image blocks, and the two groups of image blocks are respectively derived from corresponding positions of the first source image and the second source image.
In this step, image acquisition is performed according to the resolution of An image to be acquired, during acquisition, in order to ensure randomness of acquired images, the number of network cameras currently available for acquisition is determined, a random function is utilized to determine the called network cameras, images are acquired through the corresponding network cameras, a data source image is obtained, the data source image comprises two groups, namely a first source image and a second source image, the first source image and the second source image come from different network cameras, the data source image is segmented according to the number of account passwords, an independent image block pair is obtained, the independent image block pair comprises two groups of image blocks, the two groups of image blocks are respectively derived from the corresponding positions of the first source image and the second source image, if the first source image and the second source image are divided into 100 image blocks, the numbers are An and Bn, and then An and Bn form the independent image block pair.
S300, superposing the two groups of independent image blocks in each group of independent image block pairs to obtain a mixed image block.
In this step, the two groups of independent image blocks in each group of independent image block pairs are overlapped, in order to ensure the safety of data, the independent image blocks in one group of independent image block pairs are combined into one group of mixed image blocks, at this time, the two groups of independent image blocks are stored separately, only two groups of image blocks are obtained at the same time to obtain the mixed image blocks, the account number and the password can be further calculated, the independent image blocks are subjected to binarization processing to obtain binarized images, and the average value of corresponding pixels is calculated to determine the gray value of each pixel point in the mixed image blocks, so that the final mixed image is obtained.
S400, cutting the mixed image blocks according to the security level information to obtain a plurality of groups of image blocks to be converted, converting the image blocks to be converted into texts to obtain corresponding account numbers and passwords, and independently storing the data source images.
In this step, the mixed image block is cut according to the security level information, for different security levels, the more the number of data types included in the password is, the more the required pixels are, if the mixed image block is cut into four groups of image blocks to be converted, if the mixed image block is a primary password, two groups of image blocks to be converted are reserved, if the mixed image block is a medium-level password, three groups of image blocks to be converted are reserved, if the mixed image block is a high-level password, four groups of image blocks to be converted are reserved, the image blocks to be converted are converted into texts, corresponding account numbers and passwords are obtained, and the data source images are stored independently.
As shown in fig. 2, as a preferred embodiment of the present invention, the step of performing image acquisition according to the resolution of the image to be acquired to obtain a data source image, and dividing the data source image according to the number of account passwords to obtain a plurality of groups of independent image block pairs specifically includes:
s201, device detection is carried out, available network cameras in the current local area network are obtained, and two groups of network cameras are randomly selected through a random function.
In this step, device detection is performed, in an enterprise, a plurality of cameras are generally provided, each camera is connected with a gateway, so that images collected by the cameras can be obtained through the gateway, all camera information in the local area network can be called out, available network cameras can be determined, a preset random function is utilized to generate numbers, specifically, two groups of numbers are generated, and network cameras corresponding to the two groups of numbers are determined.
S202, acquiring images through network cameras to obtain data source images, wherein the images acquired by the two groups of network cameras are a first source image and a second source image respectively.
In the step, images are acquired through the network cameras, and as two groups of network cameras are called, the two groups of images can be acquired through the two groups of network cameras, and the two groups of images are a first source image and a second source image.
S203, equally dividing the data source image into a plurality of blocks with the number equal to the number of account passwords, wherein the blocks from the corresponding positions of the first source image and the second source image are an independent block pair.
In this step, the data source image is equally divided into a number of tiles equal to the number of account passwords, and the first source image and the second source image are cut according to the number of account passwords to obtain tiles with equal size, and 100 tiles containing 200 pixels are required, so that the resolution of the tiles may be 10×20, and the tiles located at the same position form a group of independent tile pairs.
As shown in fig. 3, as a preferred embodiment of the present invention, the step of superposing two independent tiles in each independent tile pair to obtain a mixed tile specifically includes:
s301, binarizing the two independent image blocks in each pair of opposite image block groups to obtain two sets of binarized images.
In this step, two independent blocks in each pair of opposite block groups are binarized, and all blocks are composed of black and white pixels through binarization, specifically, the pixels can be represented by gray values, and the gray values range from 0 to 255.
S302, determining a matching relation among pixels in the binarized image, and identifying a gray value of each pixel.
In this step, the matching relationship between the pixels in the binarized image is determined, and since the two sets of binarized images have the same size, the pixels can also be mutually corresponding, and the mutually corresponding pixels are allocated together to determine the gray value of each pixel.
S303, generating a blank mixed block, calculating an average value of gray values of corresponding pixels in the two groups of binarized images, and taking the average value as the gray value of the corresponding pixels in the mixed block.
In this step, a blank mixed image block is generated, the size of the mixed image block is identical to that of the independent image block, if the resolution of the independent image block is 20 pixels×10 pixels, then the mixed image block is also 20 pixels×10 pixels, the pixels at the same position in the two sets of binarized images are one set, and the average value of the gray values of each set of pixels is calculated and is used as the gray value of the corresponding pixel in the mixed image block.
As shown in fig. 4, as a preferred embodiment of the present invention, the step of cutting the mixed image block according to the security level information to obtain a plurality of groups of image blocks to be converted, converting the image blocks to be converted into text, obtaining a corresponding account number and password, and independently storing the data source image specifically includes:
s401, determining the cutting number and the cutting proportion of the mixed image blocks based on the security level information, and cutting to obtain a plurality of groups of image blocks to be converted.
In this step, the number of cuts and the cutting ratio of the mixed image blocks are determined based on the security level information, the password level is determined according to the security level information, the higher the password level is, the greater the number of image blocks to be converted which are finally reserved is, if the data type is determined to contain three types in the security level information, the total number of cuts is four, that is, the number of data types is N, then n+1 is the number of cuts, the cutting ratio can be equal, and after finishing cutting, a plurality of groups of image blocks to be converted are obtained.
S402, carrying out data conversion on the to-be-converted image blocks according to different conversion modes to obtain a plurality of groups of text data, and combining the text data to obtain a corresponding account number and a corresponding password.
In the step, the image blocks to be converted are subjected to data conversion according to different conversion modes, such as numbers, letters and symbols, the image blocks to be converted are converted into binary data, then the binary data are converted into corresponding numbers, letters or symbols, an account number is obtained after one group of image blocks to be converted are converted, and texts obtained after the rest image blocks to be converted are combined into a password, such as 1111# # # # aaaa; if the enterprise needs to use a specific name as a user name, such as a user name or an employee number, a mapping table can be constructed, and the user name is mapped to the generated account, that is, the generated account can be input when the identity is verified, or the employee name or the employee number obtained by inquiring according to the mapping table can be obtained.
S403, the first source image and the second source image are stored separately, and an account password list is generated.
In this step, the first source image and the second source image are stored separately to avoid leakage of the account number and the password, if the situation of password modification occurs, binary data is obtained by back-pushing according to the password after the password modification, then a to-be-converted block is obtained by calculation, two groups of to-be-replaced blocks are generated according to the to-be-converted block, if the gray value of each pixel is randomly generated to be two gray values, if the gray value is P0, P1 and P2 are generated, P1 and P1 are both between 0 and 255, and (p1+p2)/2=p0 are generated, the gray value of each pixel can be obtained according to the gray value of each pixel, so as to obtain two groups of to-be-replaced blocks, the corresponding parts in the first source image and the second source image are replaced by the to-be-replaced blocks, an account number password list is generated, the account number and the password corresponding to each person are recorded in the account number password list, and the account number password list is deleted after the account number password is sent to the corresponding person.
As shown in fig. 5, a password generation and authentication system according to an embodiment of the present invention includes:
the information acquisition module 100 is configured to acquire the number of account passwords and security level information to be generated, and determine the resolution of the image to be acquired based on the number of account passwords and the security level information.
In the system, the information obtaining module 100 obtains the number of account passwords to be generated and security level information, the number of account passwords is the number of account password pairs to be generated this time, if an enterprise contains 100 employees, an account number and a password need to be set for each of the 100 employees, the number of account passwords is 100, the security level information is data types contained in each password, if one or more of numbers, characters and letters are limited, the security is higher for more data types contained in the password, the security level information is divided into three types, namely primary (containing one data type), medium (containing two data types) and high (containing three data types), when an account number or a password is generated according to an image, the number of characters corresponding to the account number is the same, for example, 200 pixels can generate a group of texts, one account number corresponds to one high-level password, four groups of texts respectively correspond to the account texts and three types of passwords, finally 100 pixels are required, and the image is required to be acquired with a final resolution of 400, namely, the image is required to be acquired with a final resolution of 400, and the final resolution of 400 is required to be 200.
The source image acquisition module 200 is configured to perform image acquisition according to an image resolution to be acquired to obtain a data source image, segment the data source image according to the number of account passwords to obtain a plurality of groups of independent image block pairs, where the data source image includes two groups of independent image block pairs, which are respectively a first source image and a second source image, and the independent image block pairs include two groups of image blocks, and the two groups of image blocks are respectively derived from corresponding positions of the first source image and the second source image.
In the system, a source image acquisition module 200 performs image acquisition according to the resolution of An image to be acquired, during acquisition, in order to ensure the randomness of acquired images, the number of network cameras which can be used for acquisition at present is determined, a random function is utilized to determine the called network cameras, the images are acquired through the corresponding network cameras, a data source image is obtained, the data source image comprises two groups, namely a first source image and a second source image, which are respectively from different network cameras, the data source image is divided according to the number of account passwords, an independent block pair is obtained, the independent block pair comprises two groups of blocks, the two groups of blocks are respectively derived from the corresponding positions of the first source image and the second source image, if the first source image and the second source image are respectively divided into 100 blocks, the numbers are respectively An and Bn, then An and Bn form the independent block pair.
The block superposition module 300 is configured to superimpose two groups of independent blocks in each group of independent block pairs to obtain a mixed block.
In the system, the block superposition module 300 performs superposition processing on two groups of independent blocks in each group of independent block pairs, in order to ensure the safety of data, the independent blocks in one group of independent block pairs are combined into one group of mixed blocks, at this time, the two groups of independent blocks are stored separately, only two groups of blocks are obtained at the same time to obtain the mixed blocks, the account number and the password can be further calculated, and here, the independent blocks are subjected to binarization processing to obtain a binarized image, and further, the average value of corresponding pixels is calculated to determine the gray value of each pixel point in the mixed blocks, so that the final mixed image is obtained.
The data generating module 400 is configured to cut the mixed image blocks according to the security level information to obtain a plurality of groups of image blocks to be converted, convert the image blocks to be converted into text, obtain a corresponding account number and a corresponding password, and independently store the data source images.
In the system, the data generating module 400 cuts the mixed image block according to the security level information, for different security levels, the number of data types contained in the password is different, the more the data types are, the more the required pixels are, for example, the mixed image block is cut into four groups of image blocks to be converted, if the mixed image block is a primary password, two groups of image blocks to be converted are reserved, if the mixed image block is a medium-level password, three groups of image blocks to be converted are reserved, if the mixed image block is a high-level password, four groups of image blocks to be converted are reserved, the image blocks to be converted are converted into texts, corresponding account numbers and passwords are obtained, and the data source images are independently stored.
As shown in fig. 6, as a preferred embodiment of the present invention, the source image acquisition module 200 includes:
the device detection unit 201 is configured to perform device detection, obtain available network cameras in the current local area network, and randomly select two groups of network cameras through a random function.
In this module, the device detection unit 201 performs device detection, in an enterprise, a plurality of cameras are generally provided, each camera is connected with a gateway, so that images collected by the cameras can be obtained through the gateway, all camera information in the local area network can be called out, available network cameras can be determined, numbers are generated by using a preset random function, specifically, two groups of numbers are generated, and network cameras corresponding to the two groups of numbers are determined.
The image acquisition unit 202 is configured to acquire images through the network cameras to obtain a data source image, where the images acquired by the two sets of network cameras are a first source image and a second source image respectively.
In this module, the image acquisition unit 202 acquires images through the network cameras, and as two sets of network cameras are called, two sets of images, which are a first source image and a second source image, can be obtained by performing image acquisition through the two sets of network cameras.
The image dividing unit 203 is configured to equally divide the data source image into a number of tiles equal to the number of account passwords, where the tiles from the corresponding positions of the first source image and the second source image are one independent tile pair.
In this module, the image dividing unit 203 equally divides the data source image into a number of tiles equal to the number of account passwords, cuts the first source image and the second source image according to the number of account passwords to obtain tiles with equal size, and needs 100 tiles with 200 pixels, so that the resolution of the tiles may be 10×20, and the tiles located at the same position form a group of independent tile pairs.
As shown in fig. 7, as a preferred embodiment of the present invention, the tile superposition module 300 includes:
the binarization processing unit 301 is configured to perform binarization processing on two independent blocks in each set of opposite block groups, so as to obtain two sets of binarized images.
In this module, the binarization processing unit 301 performs binarization processing on two independent blocks in each set of opposite block groups, and through the binarization processing, all blocks are composed of black and white pixels, specifically, the pixels can be represented by gray values, and the range of the gray values is 0-255.
A pixel identification unit 302, configured to determine a matching relationship between pixels in the binarized image, and identify a gray value of each pixel.
In this module, the pixel identification unit 302 determines a matching relationship between each pixel in the binarized image, and since the two sets of binarized images have the same size, the pixels can also correspond to each other, and the pixels corresponding to each other are allocated together to determine the gray value of each pixel.
The mixed tile generating unit 303 is configured to generate a blank mixed tile, calculate an average value of gray values of corresponding pixels in the two sets of binarized images, and use the average value as the gray value of the corresponding pixels in the mixed tile.
In this module, the mixed tile generating unit 303 generates a blank mixed tile, the size of the mixed tile is identical to that of the independent tile, if the resolution of the independent tile is 20×10 pixels, then the mixed tile is also 20×10 pixels, the pixels at the same position in the two sets of binarized images are one set, the average value of the gray values of each set of pixels is calculated, and the average value is taken as the gray value of the corresponding pixel in the mixed tile.
As shown in fig. 8, as a preferred embodiment of the present invention, the data generating module 400 includes:
the tile cutting unit 401 is configured to determine the cutting number and the cutting ratio of the mixed tiles based on the security level information, and perform cutting to obtain multiple groups of tiles to be converted.
In this module, the tile cutting unit 401 determines the number of cuts and the cutting ratio of the mixed tiles based on the security level information, determines the password level according to the security level information, and if the number of the finally reserved tiles to be converted is higher, if the security level information determines that the data types include three types, the total number of cuts is four, that is, the number of the data types is N, then n+1 is the number of cuts, the cutting ratio may be equal, and after finishing cutting, a plurality of groups of tiles to be converted are obtained.
The text conversion unit 402 is configured to perform data conversion on the to-be-converted block according to different conversion modes, obtain multiple sets of text data, and obtain a corresponding account number and password according to the text data combination.
In this module, the text conversion unit 402 converts the to-be-converted image blocks into binary data according to different conversion modes, such as numbers, letters and symbols, and then converts the binary data into corresponding numbers, letters or symbols, wherein an account number is obtained after a group of to-be-converted image blocks are converted, and texts obtained after the remaining to-be-converted image blocks are converted together to form a password, such as 1111# # # aaaa.
And the data storage unit 403 is configured to store the first source image and the second source image separately, and generate an account password list.
In this module, the data storage unit 403 stores the first source image and the second source image separately to avoid leakage of the account number and the password, if the situation of modifying the password occurs, binary data is obtained by back-pushing according to the modified password, then a to-be-converted block is calculated, two groups of to-be-converted blocks are generated according to the to-be-converted block, if the gray value of each pixel is randomly generated to two gray values, if the gray value is P0, P1 and P2 are generated, P1+p2 and P2 are both between 0 and 255, and (p1+p2)/2=p0, the gray value of each pixel can be obtained according to the gray value of each pixel, so as to obtain two groups of to-be-replaced blocks, the corresponding parts in the first source image and the second source image are replaced by the to-be-replaced block, a password account number and password list is generated, the account number and the password corresponding to each person are recorded in the account number password list, and the password is sent to the corresponding employee, and then the password list is deleted.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in various embodiments may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the invention and are described in detail herein without thereby limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.
Claims (10)
1. A method of password generation and authentication, the method comprising:
acquiring the number of account passwords and security level information to be generated, and determining the resolution of an image to be acquired based on the number of the account passwords and the security level information;
image acquisition is carried out according to the resolution of an image to be acquired to obtain a data source image, the data source image is segmented according to the number of account passwords to obtain a plurality of groups of independent image block pairs, the data source image comprises two groups of independent image block pairs which are respectively a first source image and a second source image, the independent image block pairs comprise two groups of image blocks, and the two groups of image blocks are respectively derived from corresponding positions of the first source image and the second source image;
superposing two groups of independent image blocks in each group of independent image block pairs to obtain a mixed image block;
cutting the mixed image blocks according to the security level information to obtain a plurality of groups of image blocks to be converted, converting the image blocks to be converted into texts to obtain corresponding account numbers and passwords, and independently storing the data source images.
2. The method for generating and authenticating a password according to claim 1, wherein the step of acquiring the image according to the resolution of the image to be acquired to obtain a data source image, and dividing the data source image according to the number of the account passwords to obtain a plurality of groups of independent block pairs specifically comprises:
performing equipment detection to obtain available network cameras in a current local area network, and randomly selecting two groups of network cameras through a random function;
acquiring images through the network cameras to obtain data source images, wherein the images acquired by the two groups of network cameras are a first source image and a second source image respectively;
equally dividing the data source image into a number of blocks equal to the number of account passwords, wherein the blocks from the corresponding positions of the first source image and the second source image are an independent block pair.
3. The method for generating and authenticating a password as recited in claim 1, wherein the step of superposing two independent blocks in each independent block pair to obtain a mixed block specifically comprises:
performing binarization processing on two independent image blocks in each pair of opposite image block groups to obtain two sets of binarized images;
determining a matching relation between pixels in the binarized image, and identifying a gray value of each pixel;
and generating a blank mixed image block, calculating an average value of gray values of corresponding pixels in the two groups of binarized images, and taking the average value as the gray value of the corresponding pixels in the mixed image block.
4. The method for generating and authenticating a password according to claim 1, wherein the step of cutting the mixed image block according to the security level information to obtain a plurality of groups of image blocks to be converted, converting the image blocks to be converted into text to obtain a corresponding account number and password, and independently storing the data source image comprises the following steps:
determining the cutting number and the cutting proportion of the mixed image blocks based on the security level information, and cutting to obtain a plurality of groups of image blocks to be converted;
carrying out data conversion on the block to be converted according to different conversion modes to obtain a plurality of groups of text data, and combining the text data to obtain a corresponding account number and a corresponding password;
and storing the first source image and the second source image separately to generate an account password list.
5. The password generation and authentication method according to claim 1, wherein an account number and a password corresponding to each person are recorded in an account number and password list, and the account number and password list is deleted after the account number and password are transmitted to the corresponding person.
6. The password generation and authentication method of claim 1, wherein the first source image and the second source image are both encrypted when stored.
7. A password generation and authentication system, the system comprising:
the information acquisition module is used for acquiring the number of the account passwords and the security level information which need to be generated, and determining the resolution of the image to be acquired based on the number of the account passwords and the security level information;
the system comprises a source image acquisition module, a first image acquisition module and a second image acquisition module, wherein the source image acquisition module is used for carrying out image acquisition according to the resolution of an image to be acquired to obtain a data source image, dividing the data source image according to the number of account passwords to obtain a plurality of groups of independent image block pairs, the data source image comprises two groups of independent image block pairs which are respectively a first source image and a second source image, the independent image block pairs comprise two groups of image blocks, and the two groups of image blocks are respectively derived from the corresponding positions of the first source image and the second source image;
the block superposition module is used for superposing two groups of independent blocks in each group of independent block pairs to obtain a mixed block;
the data generation module is used for cutting the mixed image blocks according to the security level information to obtain a plurality of groups of image blocks to be converted, converting the image blocks to be converted into texts to obtain corresponding account numbers and passwords, and independently storing the data source images.
8. The password generation and authentication system of claim 7, wherein the source image acquisition module comprises:
the device detection unit is used for performing device detection, acquiring available network cameras in the current local area network, and randomly selecting two groups of network cameras through a random function;
the image acquisition unit is used for acquiring images through the network cameras to obtain data source images, and the images acquired by the two groups of network cameras are a first source image and a second source image respectively;
the image dividing unit is used for equally dividing the data source image into a plurality of image blocks with the number equal to the number of account passwords, and the image blocks from the corresponding positions of the first source image and the second source image are an independent image block pair.
9. The password generation and authentication system of claim 7, wherein the tile superposition module comprises:
the binarization processing unit is used for carrying out binarization processing on two independent image blocks in each set of opposite image block groups to obtain two sets of binarized images;
a pixel identification unit for determining a matching relationship between each pixel in the binarized image and identifying a gray value of each pixel;
and the mixed image block generating unit is used for generating a blank mixed image block, calculating the average value of the gray values of the corresponding pixels in the two groups of binarized images, and taking the average value as the gray value of the corresponding pixels in the mixed image block.
10. The password generation and authentication system of claim 7, wherein the data generation module comprises:
the image block cutting unit is used for determining the cutting number and the cutting proportion of the mixed image blocks based on the security level information, and cutting to obtain a plurality of groups of image blocks to be converted;
the text conversion unit is used for converting the data of the to-be-converted image blocks according to different conversion modes to obtain a plurality of groups of text data, and obtaining corresponding account numbers and passwords according to the text data combination;
and the data storage unit is used for separately storing the first source image and the second source image and generating an account password list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310521687.2A CN116228508B (en) | 2023-05-10 | 2023-05-10 | Password generation and authentication system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310521687.2A CN116228508B (en) | 2023-05-10 | 2023-05-10 | Password generation and authentication system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116228508A true CN116228508A (en) | 2023-06-06 |
CN116228508B CN116228508B (en) | 2023-07-21 |
Family
ID=86570100
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310521687.2A Active CN116228508B (en) | 2023-05-10 | 2023-05-10 | Password generation and authentication system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116228508B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116611986A (en) * | 2023-07-19 | 2023-08-18 | 深圳奥联信息安全技术有限公司 | Data encryption method, system, computer equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040125959A1 (en) * | 2000-04-03 | 2004-07-01 | Beuque Jean-Bernard Gerard Maurice | Authentication of data transmitted in a digital transmission system |
EP2456245A1 (en) * | 2010-11-19 | 2012-05-23 | Research In Motion Limited | System, devices and method for secure authentication |
EP2624188A1 (en) * | 2012-01-31 | 2013-08-07 | Daon Holdings Limited | Methods and systems for increasing the security of electronic messages |
WO2013118302A1 (en) * | 2012-02-10 | 2013-08-15 | 株式会社クレスコ | Authentication management system, authentication management method, and authentication management program |
US20140053254A1 (en) * | 2012-08-17 | 2014-02-20 | Industrial Technology Research Institute | Graphical authentication system and method for anti-shoulder surfing attack |
US20170060399A1 (en) * | 2015-08-25 | 2017-03-02 | Evolution Optiks Limited | Vision correction system, method and graphical user interface for implementation on electronic devices having a graphical display |
US20200221086A1 (en) * | 2017-07-05 | 2020-07-09 | Orange | Method for encoding and decoding images, encoding and decoding device, and corresponding computer programs |
-
2023
- 2023-05-10 CN CN202310521687.2A patent/CN116228508B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040125959A1 (en) * | 2000-04-03 | 2004-07-01 | Beuque Jean-Bernard Gerard Maurice | Authentication of data transmitted in a digital transmission system |
EP2456245A1 (en) * | 2010-11-19 | 2012-05-23 | Research In Motion Limited | System, devices and method for secure authentication |
EP2624188A1 (en) * | 2012-01-31 | 2013-08-07 | Daon Holdings Limited | Methods and systems for increasing the security of electronic messages |
WO2013118302A1 (en) * | 2012-02-10 | 2013-08-15 | 株式会社クレスコ | Authentication management system, authentication management method, and authentication management program |
US20140053254A1 (en) * | 2012-08-17 | 2014-02-20 | Industrial Technology Research Institute | Graphical authentication system and method for anti-shoulder surfing attack |
US20170060399A1 (en) * | 2015-08-25 | 2017-03-02 | Evolution Optiks Limited | Vision correction system, method and graphical user interface for implementation on electronic devices having a graphical display |
US20200221086A1 (en) * | 2017-07-05 | 2020-07-09 | Orange | Method for encoding and decoding images, encoding and decoding device, and corresponding computer programs |
Non-Patent Citations (2)
Title |
---|
M. KHODAEI等: "New adaptive steganographic method using least-significant-bit substitution and pixel-value differencing", IET IMAGE PROCESSING, vol. 6, no. 6, pages 677 - 686, XP006040034, DOI: 10.1049/iet-ipr.2011.0059 * |
王洪君;马冬鹤;张恩绮;赵腾飞;: "一种无像素膨胀的(3,3)视觉密码方案", 武汉大学学报(工学版), no. 12, pages 1123 - 1128 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116611986A (en) * | 2023-07-19 | 2023-08-18 | 深圳奥联信息安全技术有限公司 | Data encryption method, system, computer equipment and storage medium |
CN116611986B (en) * | 2023-07-19 | 2024-01-02 | 深圳奥联信息安全技术有限公司 | Data encryption method, system, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN116228508B (en) | 2023-07-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7882363B2 (en) | Biometric authentication system | |
CN116228508B (en) | Password generation and authentication system and method | |
CN111008923B (en) | Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting device and watermark extracting equipment | |
CN111612476B (en) | Secondary check anti-counterfeiting method, device, equipment and storage medium | |
CN105550730A (en) | Safe two-dimensional code manufacture method and decoding method, and safe two-dimensional code identifier | |
CN115514585B (en) | Database security management method and system | |
CN111860727A (en) | Two-dimensional code generation method, verification method, device and computer-readable storage medium | |
CN114445253A (en) | Health code generation method and terminal | |
CN117354064B (en) | Distributed multi-party privacy processing method and system based on blockchain | |
US10176338B2 (en) | Secure distributed storage of documents containing restricted information, via the use of keysets | |
KR101901535B1 (en) | Method and device for generating anti-forgery image | |
EP1821450A1 (en) | Apparatus and method of measuring integrity | |
CN114880687A (en) | Document security protection method and device, electronic equipment and storage medium | |
US20110209053A1 (en) | Shuffling Documents Containing Restricted Information | |
CN116980534A (en) | Image processing method and system for video communication | |
JP7143626B2 (en) | Placement device, verification device, control method, data generation method and data structure | |
CN110968275A (en) | The anti-counterfeiting tracing system and method for the printed document | |
CN114500104A (en) | Data desensitization method, system, computer device and storage medium | |
CN114398647A (en) | Data encryption storage method, encryption terminal and decryption terminal | |
CN115718914A (en) | Electronic seal authentication and authorization method and system, computing device and storage medium | |
CN112100666A (en) | Text credit granting method, credit granting text verification method and system | |
RU2646341C1 (en) | Method of modification and identification the copy of the document for the installation the unauthorized distribution channel | |
CN116126998B (en) | File homology checking method and system | |
CN114579947B (en) | Identity verification method and system based on Internet of things and voiceprint recognition | |
CN115563655B (en) | User dangerous behavior identification method and system for network security |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |