Complex sentence: Choosing a different message key was a security measure: it avoided having all the day's messages sent using the same polyalphabetic key which would have made the messages vulnerable to a polyalphabetic attack.
Split into simpler sentences: Choosing a different message key was a security measure: it avoided having all the day's messages sent using the same polyalphabetic key. That would have made the messages vulnerable to a polyalphabetic attack.