Made function to deduce probable keysize. Not sure if it works properly yet. Am going to encode my own thingy and see if it guesses right.
Almost managed to break my own string. Hurray! :3