Got encryption to work,

have to tweak it a bit still