Password Encryption

Nishant Khandelwal asked on November 18, 2016 12:32

Hi team,

In form I am taking field password and choosing form control as password. But when I go to recorded data tab here I can see my password as it is(like - "Test@123") in the listing data.

Is there is any way in kentico so I can see my password in encrypted format not in alphanumeric format without custom coding.

Recent Answers


Jan Hermann answered on November 18, 2016 14:22

Regrettably, no. You need to let Kentico know, what to do with such an input, like making MD5 hash out of it, etc. So always some kind of custom code is needed I am afraid.

1 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on November 18, 2016 15:07 (last edited on November 18, 2016 15:08)

Since you can't do it without some custom code or hash, then, I'd not recommend this but, store it as plain text then create a schedule task to clean up that data after a given time frame.

1 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on November 18, 2016 15:24

Again it will be custom coded, but you can also use the Global System Events and catch when a form is submitted, to MD5 or encrypt or whatever you want to do with the password field.

https://docs.kentico.com/display/K9/Handling+object+events

https://docs.kentico.com/display/K9/Reference+-+Global+system+events

If this is a password though, are you trying to capture users? there are options in the user registration to make them not approved and you can use ALternative forms to preset a User registration form that has the information you want (that way when they enter the password, THAT is automatically encrypted since it's part of the user's module). Just checking.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.