Password fields

2 posts by 2 authors in: Forums > CMS Builder
Last Post: August 3, 2012   (RSS)

By ht1080z - August 3, 2012


The option in the Admin Panel > Section Editors > XYZ section > Field Editor > Advance options --> Password Field (that hide the characters) is also create encryption to the data?

If not, can i create encrypted password field when i input data from the Admin panel (not from any front php script) and store in the MySQL?

Please advise,

Re: [ht1080z] Password fields

By Jason - August 3, 2012

Hi Karls,

Setting a field to "password" will not automatically encrypt the values entered into it. To do that, you'll need to create a custom plugin to encrypt these values.

In CMS Builder, we use the function getPasswordDigest() to encrypt passwords.


$encryptedPassword = getPasswordDigest($nonEncryptedPassword);

It's important to note when using this, is that there isn't a reverse function to decrypted a value. So when doing comparisons, you'll need to encrypt the values entered first.

Hope this helps
Jason Sauchuk - Project Manager

Hire me! Save time by getting our experts to help with your project.