选择明文攻击的核心是如何构造出最优的明文和密文。利用构造的明文和密文对得到最好的置乱秘钥估计结果。文献【1】给出构造明文的最佳方法,具体过程给出一个例子:
构造方法同样用例子来说明:
该明文构造方法可以百分百估计置乱秘钥,从而证明 仅置乱加密无法抵抗选择明文攻击。
【1】Jolfaei A, Wu X W, Muthukkumarasamy V. On the Security of Permutation-Only Image Encryption Schemes[J]. IEEE Transactions on Information Forensics & Security, 2015, 11(2):235-246.