encrypt post data