The present application relates to the technical field of
information security, in particular to a Chinese character
encryption and decryption method and device based on nine-square grid
pinyin; the present application uses nine-square grid
pinyin input method to correspond any
encryption symbol with nine-square grid; when
plaintext is sent by spelling
pinyin, the output is the position and order of each time pressing the corresponding nine-square grid; the
encryption symbol on the corresponding nine-square grid is matched according to the position and order of the corresponding nine-square grid; the pinyin of the
plaintext is separated according to single Chinese character or word by combining the separation bit, and the
ciphertext is formed; when the private key is known by both the sending and receiving parties, the corresponding pinyin and
sentence content are determined according to the encryption symbol matching the letter on the corresponding character bit, combining the separation bit, and combining the meaning of the
word group or the meaning of the
sentence, and the decryption is realized. The whole method is based on nine-square grid pinyin, which reduces the learning cost and difficulty, and also reduces the decryption difficulty; meanwhile, the position is used for positioning, which increases the encryption type and possibility, and also increases the decryption difficulty.