Solution to the decryption problem.