Fixed encryption issue. All working