当我尝试解码加密的消息时,我遇到了问题。它可以解密几乎所有的东西,但是当我尝试解密'w x y z‘(全部小写)时,它不能正常工作。它只对大写字母进行解密。我做错什么了?public static void main(String[] args) {
System.out.println(message);
我对vigenere密码的编码/解码编程有问题。我应该只使用列表,字典和循环。编辑:我在我有的解密中添加了。GetCharList()只获取包含字母表的列表。我不知道有什么问题,它使解码的输出,而不是原始消息。 alphabet = getCharList() #Get char list is another function which creates a list containing a - z keyIndex = 0
当我运行我的代码时,我现在看到了与OpenSSL相关的弃用警告:
warning: argumtents for OpenSSL::Cipher::Cipher#encrypt and OpenSSL::Cipher::Cipher#decrypt were deprecated; use OpenSSL::Cipher::Cipher#pkcs5_keyivgen to derive key andencryptor = OpenSSL::Cipher::Ci
我是一个绝对的初学者,所以请原谅我在编码方面的愚蠢。忽略法国人min='abcdefghijklmnopqrstuvwxyz' crypt='' #string pour message crypté for c in txt: #pour chaque caractere
index=min.find(c) #regarder s'il appa