2020
09-27
09-27
Python实现密钥密码(加解密)实例详解
密钥密码'''如密钥短语密码为:university->universty明文:abcdefghijklmnopqrstuvwxyz密文:jklmopqwxzuniverstyabcdfgh'''构造映射字典#构造映射asc--->cryptdefdic(x):list_x=[]list_z=[]foriinx:list_x.append(ord(i))foriinrange(97,123):ifinotinlist_x:list_x.append(i)list_=list_x[26-len(x)-1:]cr=list_+list_x[:26-len(list_)]foriinrange(97,123):list_z...
继续阅读 >