This appears to fix the encrypt/decrypt issues with the new phpseclib.
Merge pull request #1741 from xrobau/1.8/bugfix-1739

This appears to fix the encrypt/decrypt issues with the new phpseclib.