What Is The Difference Between Cpasswordhelper And Csecuritymanager Class

I use CSecurityManager to protect my user accounts but in the blog’s tutorial they use the CPasswordHelper class.

What is the difference and which one is the most secure ?

It looks like CPasswordHelper offers stronger protection by default, but has a much narrower scope. If you’re specifically dealing with passwords and your target system meets the requirements listed on the API page, you should probably use CPasswordHelper. For any other encryption and hashing requirements, use CSecurityManager.

OK, thanks but could you explain why the scope is narrower

Because it focuses on passwords, while CSecurityManager offers many other features including encryption and random string generation.