Revision #5 has been created by nkd on Oct 3, 2012, 5:50:51 AM with the memo:
Notice that this is not a good method of doing it
« previous (#4)
Using phpseclib with Yii
I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module ([securityManager](http://www.yiiframework.com/doc/api/1.1/CApplication#securityManager "securityManager")). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does not requite mcrypt to be installed in the phpserver!
Installing phpseclib is not as straightforward as you could imagine. Yii lazy loading (I think it is called like that) is not compatible with phpseclib files because classes are not called the same as the file names they are in.
-Steps to install phpseclib-**
(written on 2/Oct/2012, using Yii version 1.1.12. and phpseclib 0.3.0)
(see phplib documentation for more details)