At last working with encryption and decrpytion, I have made a mess of the git and will sort it out later today, but there has been progress made :)