![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
密码学
yi把菜刀
菜狗一枚,多多包涵
展开
-
python仿射密码加解密实现
Keys1=9Keys2=2first = 97temp=0dir={}for i in range(26): dir[chr(first)]=i first=first+1PlainText ='In several distributed systems a user should only be able to access data if a user posses a certain set of credentials or attributes Currently原创 2021-03-13 13:59:04 · 445 阅读 · 0 评论 -
python希尔(Hill)密码加解密实现
encryptionKeys=[[10,5,12,0,0],[3,14,21,0,0],[8,9,11,0,0],[0,0,0,11,8],[0,0,0,3,7]]decryptionKeys=[[21,15,17,0,0],[23,2,16,0,0],[25,4,3,0,0],[0,0,0,7,18],[0,0,0,23,11]]first = 97temp=0num=0dir = {}for i in range(26): dir[chr(first)]=i first=fi原创 2021-03-13 13:57:06 · 2106 阅读 · 1 评论 -
python周期置换密码
学校的实验之一,找个地方保存一下自己的战利品。Plaintext ="In several distributed systems a user should only be able to access data if a user posses a certain set of credentials or attributes Currently the only method for enforcing such policies is to employ a trusted server to原创 2021-03-13 13:55:02 · 833 阅读 · 1 评论