[Solved] Warning 512 Invalid Salt on CakePHP when Use Blowfish Encryption


CakePHP has a complete feature to create a simple authentication or system login / logout. Although simple, but the quality of security sufficient for modern websites. If you want to learn to make the authentication system, please follow the tutorials available on this page. I also followed him, and succeeded perfectly.

However, there is a bit of a problem, that is, when you use a hash or encryption method different password other than blowfish. Yes, on the tuturial, cakephp using blowfish hash method. If you fill in the password by methods other than blowfish, then you will get an error like this.

cakephp blowfish error

Dont worry, the problem is not your system or cakephp or PHP version. However, for the PHP version, make sure you are using version 5.3 and above. I am using PHP version 5.5.3 and no problems.

The problem is, you use a different password hash method with blowfish, for example md5. I’m using MD5 and there was an error as above.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.