Late at night, the Shuntian Mansion Office in the north of the inner city of Beijing is brightly lit.
Late at night, the Ministry of War Yamen in the Qianbu Corridor in the south of the inner city is brightly lit.
However, when the Ministry of War yamen in the south learned who was fighting at night in the Shuntian government yamen in the north, Lu Wan, the secretary of the Ministry of war, couldn't help but drop the pen in his hand for the first time.
Then, after following him for more than ten years, one of Lu Wan's confidants, who had been promoted from doctor to minister, gave some tactful words of advice and was actually kicked out of the house. Others did not dare to speak.
"He, the king, can invite all the cats and dogs to his Shuntian Mansion Yamen for help, but my Ministry of War Yamen is clean and does not allow outsiders to trespass!" With these righteous words in his mouth, Lu Shangshu was filled with anger.
The key point was pointed out by Zhang Shou in the Zhi Gong Building before. It was not that he had not made plans to sneak his son Lu Sanlang over to decrypt it. However, in such an important place as the Ministry of War Yamen, even he, the minister, could not just take his son away.
Bring him in! The result was good. Because of his hesitation and not instructing his family to ground Lu Sanlang, Wang Datou cut him off!
That unfilial son actually went out of his way to help Wang Datou!
He took a deep breath and said in a cold but stern tone: "Dr. Zhang has clearly identified the joints of those secret letters, and all the junior officials from the Ministry of War who are best at numbers and calculations have gathered here. If before dawn
If we can figure it out, then everyone can take credit for it. If it can't be figured out, I will certainly ask the emperor for forgiveness. You all have done it too! This time the Ministry of War will be embarrassed!"
The Ministry of War Yamen needed to decipher thirteen secret letters at once, but there was a Fuyin Wang Datou in the Shuntian Prefecture Yamen who was very good at arithmetic. Therefore, Zhang Shou plus three students had only one secret letter that needed to be solved.
However, it was this letter that Qi Liang and Lu Sanlang, who had arrived earlier, read over and over many times, pondering over it, but they were still confused.
After Zhang Shou took over, he first examined the twelve letters that were previously unsolved, and finally looked at the last letter that had not yet been unraveled, and then he began to think deeply.
Probably because they were afraid that the secret letters would be inspected or otherwise, so as to avoid arousing suspicion, the contents of the twelve letters were all plain letters from home. These secret letters were represented by whether there were horizontal lines between the words.
and zero, and then separated them with punctuation marks, so binary numbers were introduced, and combined with the thousand-character script as a codebook, it can be easily solved.
And the last letter, a simple piece of paper with dozens of words, turned out to have no preface and follower, and could not be called a sentence at all. The writing style was like a child's graffiti, and there was a line of notes in beautiful handwriting at the end.
, it is said that the child randomly practiced writing according to the words in the Thousand Character Essay. Although it was a bit childish, it looked interesting, so I sent it to my husband who is in the army to have a look.
Seeing the three words "Thousand-Character Script", Zhang Shou immediately smiled slightly, thinking that this was probably another letter that used Thousand-Character Script as a codebook, but the encoding method was different from the previous twelve letters. Although it used a "Thousand-Character Script",
There are a lot of messy words, but if you follow the seemingly complicated but actually simple coding methods of the previous twelve letters, this secret letter is not much more complicated in theory.
After all, even if it is relatively simple, there are already huge flaws in the secret messages, and the recipient actually calculates the date wrong...
This is probably the most inexplicable and saddest incident. No wonder it caused both the sender and the recipient to commit suicide.
If this encryption is very simple, the shift cipher is the most likely.
In other words, replace the initial word with the word after a certain interval. According to the logic of simple passwords, there must be some obvious pattern in this interval. Just replace each word with the word after the same interval.
, that is the most convenient, but also the easiest to crack. In this case, the shift formula might as well be set to the simplest y=ax+b, no matter how complicated it is...
If it is more complicated, it will be a more complicated quadratic equation, but since the shift distance must be an integer, this x is definitely an integer, so it is not really difficult, so let’s start with the simple calculation.
According to the rules of simple passwords, the first character on the secret message is the character that corresponds to the original character and is separated by a + b positions, and the second character is the character that is separated by 2a + b and corresponds to the original character.
word, the third word is 3a+b...
Because there are only a few dozen words in the letter, not many words. However, when shifting, you must also consider the factor of circulation. After all, the number corresponding to a thousand-character text is only one thousand, from more than nine hundred
If the character is shifted by two or three hundred, it will be back to the beginning of the thousand-character text.
Now he only needs to check the first four numbers, and the calculation intensity is still within the acceptable range.
While Zhang Shou was thinking, he was writing and drawing on the paper. He didn't realize that the head of Yin Wang of Shuntian Prefecture was quietly standing behind him. He didn't even notice how much time he spent, and he calculated that simple
Encrypted equation y=2x+3.
But when he worked backwards to calculate the first four words of the original text, he was really speechless...because he was still a bachelor of Confucius University!
It seems that Academician Kong Da is really the most unlucky person this time...
x=1,2,3... representing the shift variable
The y=5,7,9 that represents the result of the shift...that is to say, just subtract 5,7,9 from these words on the secret message, and then find the words at the corresponding positions.
According to the uncoded numbers, Zhang Shou checked his memory against the corresponding number table in the thousand-character script that Wang Fuyin personally ordered to copy, and then wrote a line of dozens of words on the paper.
On the day when the Confucian scholar passed the Linhai camp, he ordered Du Heng, the commander-in-chief, to send out all the rebel troops to trap Confucius. If the imperial capital was frightened, he would attack without justice and change the world.
"Arrogant!"
Zhang Shou had just finished writing all the words when he heard an angry shout from behind him. He turned his head and saw Yin Wangjie of Shuntian Mansion behind him, furious. When he saw Lu Sanlang, who was looking at him with a frown on his face, jumped up and rushed over, he stretched out his hand.
After stopping Lu Sanlang, he picked up the piece of paper with one hand and said to Wang Jie: "Although the words have been connected to form a sentence, doesn't Wang Dayin think it's strange?"
After getting angry, Wang Jie immediately calmed down. He took the piece of paper from Zhang Shou and looked at it carefully for a while before he said in a deep voice: "Could it be that the person who wrote the letter is obviously a traitor?
But you call yourself a rebel?"
"This is one of them. I also think that if they were real rebels, they might call themselves rebels instead."
Wang Jie couldn't help but raise his eyebrows slightly: "Oh, you mean, there is another one?"
"This is just a feeling I have." Zhang Shou smiled slightly and said nonchalantly, "The twelve letters were all written in one cipher, but this one was written in another cipher.
I was afraid that people would not be able to decipher it, so I added a note: This is a thousand-character essay copied by a child. But imagine which child would copy a thousand-character essay from one word to the other, instead of a whole sentence?"
Lu Sanlang, who still sneaked up and came over, suddenly realized: "That's right, that's right, doing this is like telling others directly that there is something wrong with this letter!"
Qi Liang and Deng Xiaodai put down their pens and looked at each other. Qi Liang also said thoughtfully: "I also think that the words that look like children's graffiti on the letter are a bit deliberate, as if adults imitated children's handwriting.
of."
Deng Xiaodai suddenly had an idea: "Could it be that the person who wrote this letter didn't understand the mystery of the twelve letters, but knew that the reference for the secret letter was a thousand-character text, so he racked his brains to replace it with
Did you find a way to encrypt it and write such a letter?"
Reminded by everyone's words, Wang Jie narrowed his eyes slightly and was shocked in his heart: "If I just report the letter you deciphered to Dr. Zhang, Du Heng, the commander of the Linhai camp, will
He will be regarded as the traitor who is the mastermind. But the doubts you mentioned alone are not enough to clear his suspicion."
"But it's not enough to confirm his suspicion." Zhang Shou finally couldn't help but yawned, and then said lazily, "Maybe, the so-called people who committed suicide on both sides are actually just scapegoats. Maybe, someone wants to
Pull down the general who is getting in the way and take his place, maybe...anything is possible anyway. But in my opinion, the biggest doubt is the sudden change in the secret message encoding method."
"This letter that Wang Dayin has not decrypted before is one of the letters arranged according to date. There is no reason why the subsequent letters have not been changed to the end and still use the original encryption method. In short, this is my calculation from a mathematical point of view
Opinions, rights and wrongs need to be decided by Wang Dayin yourself."
"Okay, very good. Finally, I didn't help Zhao Guogong's house to take care of those two guys who were cheating on them. Otherwise, the madam may not agree to let you go."
A smile appeared on Wang Jie's stern face, and then he said lightly, "Dr. Zhang has worked hard tonight, but the night is too dark. I feel sorry for you to stay with them in my Shuntian Yamen. I have already ordered people to clean the guest room, and the late night snack is hot."
Water and so on are also being prepared. Please don’t misunderstand that I’m keeping you all under house arrest. It’s a very important matter. When I report the joints to the court tomorrow, I won’t forget your contribution!”