Jump to content
  • Hello visitors, welcome to the Hacker World Forum!

    Red Team 1949  (formerly CHT Attack and Defense Team) In this rapidly changing Internet era, we maintain our original intention and create the best community to jointly exchange network technologies. You can obtain hacker attack and defense skills and knowledge in the forum, or you can join our Telegram communication group to discuss and communicate in real time. All kinds of advertisements are prohibited in the forum. Please register as a registered user to check our usage and privacy policy. Thank you for your cooperation.

    TheHackerWorld Official

置换密码 Permutation Cipher

 Share


Recommended Posts

之前讨论的密码体制都是代换密码,即明文字母被不同的密文字母所代替。置换密码的特点是保持明文的所有字母不变,只是利用置换打乱明文字母的位置和次序。

2199250-20211208221157337-525000421.png

例如,设m=6,密钥为如下的置换π:

2199250-20211208221701178-242446727.png

 置换π-1

2199250-20211208221710337-1172411782.png

若明文是:shesellsseashellsbytheseashore,则首先将明文字母分成为每6个一组:shesel lsseas hellsb ythese ashore,然后对每组的六个字母使用加密变换π,得:EESLSH SALSES LSHBLE HSYEET HRAEOS

则密文是:EESLSHSALSESLSHBLEHSYEETHRAEOS

Link to post
Link to comment
Share on other sites

 Share

discussion group

discussion group

    You don't have permission to chat.
    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...