CSecurityManager password...

this code return every time something else… why?




Yii::app()->getSecurityManager()->setEncryptionKey('t');

        $t = '12131415' .'x';

        echo base64_encode(Yii::app()->getSecurityManager()->encrypt($t));



I want to create a validation using the encryption… but it don’t work…

every time different hash

Problem solved :rolleyes:

My foalt, massed up the base64 order