The message must be much larger than the key (at least 20 times, maybe more) and must be English text - this probably won't work on Lua code, unless you change rateText. The running time is approximately O(size of key * size of message).
Download
Screenshots at different key lengths:







(the last ones show why I said the message must be many times the key length)











