The invention discloses a Chinese character
password encoding method based on image pixel coordinates. The
encryption process: (1) input a Chinese character string in
plain text, and take out the
string length K; (2) read the public key image f1 and the private key image f2 respectively, Generate the key image F, and take out the image size M×N; (3) Convert each Chinese character into binary data and divide it into high and low
byte blocks, and store them in the
cell arrays destr{i,1} and destr{ i, 2}; (4) cyclically search for the pixel values matching the
cell arrays destr{i,1} and destr{i,2} respectively in F, and read their pixel coordinates and store them in the two-dimensional matrix left[ x, y] and right[x, y]; (5) Randomly take out two coordinate values in left[x, y] and right[x, y] to replace the high
byte and low
byte blocks of the Chinese character ; (6) 4 values of these two coordinates are transposed by the agreed transposition order, and output in the four-dimensional matrix xyv[]; (7) when i=K, the
encryption process ends, and the output K row four-dimensional matrix xyv[] ] is the
ciphertext. The
encryption method has the advantages of good
confidentiality and flexible and convenient
key management, and is a safe Chinese character
password encoding method.