We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Phalcon 2 \Phalcon\Security setDefaultHash() Method missing?

I've upgraded from Phalcon 1.3.4 to Phalcon 2.0.0

I've used this method to set the Default Hash of the Security Class

$security->setDefaultHash(\Phalcon\Security::CRYPT_BLOWFISH_Y);

But in Phalcon 2 this method seems missing. How do i set the Default Hash in Phalcon 2?

I don't think is possible anymore. I looked all over the code and can't find anything similar." setDefaultHash" and "getDefaultHash" function has been removed and also removed from docs. Now bcrypt is used as default.



4.7k

So there is no way to use Blowfish crypt anymore? So i also need to update all Passwords in order to still work with the "new" encryption?

since the phalcon developers are not answering, you can write a bug report on github. Maybe they left it out by mistake when porting to zephir.