[Solved]Using Variable Keys Part Reason Unicode Code Point Conversation Easy Decode Character Alwa Q37243374

Using Variable Keys Part of the reason the unicode code point conversation can be easy to decode is that character always get encoded to the same output. So, if you know a pattern of the language, for example that ‘e’ is usually the most common letter, you can use this to make an educated guess that the most common character in the encoded message is probable ‘e’, and from there figure out the encoding key. One way around this is to use a procedure to use different transforms for each character, or, basically, use a different key for each time you encode a character. This breaks the 1-to-1 mapping between original and encoded characters, and makes the encoding harder to crack. As long as the decoder knows a pattern of how update keys, then it is still decodable, by knowing the first key, and the pattern to get to the next keys. Q18- Encodings with variable keys (0.5 points) Here we will write an encoder that using a variable keys, whereby each time a key is applied, the key itself is also updated, by adding a number. This code will presume two numbers, start_key and key_increment. This code will look very similar to the code for the encoder in Q15. Copy that code in and you are going to key start-key before the loop. The loop will contain the same code to encode each character, and you need to add a line within the loop, after the encoding, that update the key variable to increment it by the value stored in key_increment. In :writefile A2Code/variable_encoder py YOUR CODE HERE In message”By the way, what we’re doing here basically the same as encryption” start_key 150 key increment 3 run -i ./A2Code/variable_encoder.py assert isinstance (encoded, str) assert encoded”DEkecCEGdTàxihgkalioñioboNCoCfftsesšwuatzžokabbiRDRYeutso!siS print(‘Inoriginal Message: It’, message) print(nEncoded Message: t, encoded, ‘n) Show transcribed image text Using Variable Keys Part of the reason the unicode code point conversation can be easy to decode is that character always get encoded to the same output. So, if you know a pattern of the language, for example that ‘e’ is usually the most common letter, you can use this to make an educated guess that the most common character in the encoded message is probable ‘e’, and from there figure out the encoding key. One way around this is to use a procedure to use different transforms for each character, or, basically, use a different key for each time you encode a character. This breaks the 1-to-1 mapping between original and encoded characters, and makes the encoding harder to crack. As long as the decoder knows a pattern of how update keys, then it is still decodable, by knowing the first key, and the pattern to get to the next keys. Q18- Encodings with variable keys (0.5 points) Here we will write an encoder that using a variable keys, whereby each time a key is applied, the key itself is also updated, by adding a number. This code will presume two numbers, start_key and key_increment. This code will look very similar to the code for the encoder in Q15. Copy that code in and you are going to key start-key before the loop. The loop will contain the same code to encode each character, and you need to add a line within the loop, after the encoding, that update the key variable to increment it by the value stored in key_increment. In :writefile A2Code/variable_encoder py YOUR CODE HERE In message”By the way, what we’re doing here basically the same as encryption” start_key 150 key increment 3 run -i ./A2Code/variable_encoder.py assert isinstance (encoded, str) assert encoded”DEkecCEGdTàxihgkalioñioboNCoCfftsesšwuatzžokabbiRDRYeutso!siS print(‘Inoriginal Message: It’, message) print(nEncoded Message: t, encoded, ‘n)
Expert Answer
Answer to Using Variable Keys Part of the reason the unicode code point conversation can be easy to decode is that character alway… . . .
OR

