Password fields

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

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.