如何改变CakePHP 2.0 AuthComponent哈希算法?以及如何为不同的控制器设置不同的算法(例如,users使用sha1,customers使用md5)Fatal error: Cannotuse object of type User as array in *******\lib\Cake\Controller\Component\AuthComponent.php on line
我正在更新一个网站,从Rails到PHP。我需要生成密码,这些密码是由Rails中的Devise生成的。我必须知道用PHP创建相同方法的密码哈希方法是什么。Devise also supports encryptors from others1) sha1('--'.的:sha1"Encryption方法”,当您转到下面的文件时,您将看到算法代码:\Ruby191\lib\ruby\gems\1.9.1\g