An example on how to use javascript (jsbn) to encrypt data and decrypt it in PHP using phpseclib.