encrypt / decrypt ALMOST working