You need to transfer data in an encrypted way with php but the server you are using does not support a suitable crytografic extension? - Then have a look at this article. Here you will find a way how to send and receive encrypted messages using pure php code with the phpseclib package.
Download eBookLink updated in 2017 Maybe you will be redirected to source's website