Password fields
2 posts by 2 authors in: Forums > CMS Builder
Last Post: August 3, 2012 (RSS)
By ht1080z - August 3, 2012
Hello,
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,
Karls
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,
Karls
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.
EXAMPLE:
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
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.
EXAMPLE:
$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
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/