fixiing encryption to interact with php app