Finally!! managed to solve challenge 6... had to brute force the key length though...
Needs cleaning up, and the key length 'finder' needs fixing.