Validating with Password(1-way-encrypted) and Plain text

kivous
Kilo Contributor

I have one scenario where I need to validate a plain text against a password(1-way encrypted) field. For example for resetting password we need to provide security answer as string and that matches with the value stored in backend database. We are using Password type 1 field in servicenow for storing the value and validate the plain text entered by the user to validate it. Need help me with a solution how Servicenow enables logging  in for a local user using the same concept. I read somewhere it converts the entered password into hash but is there any specific algorithm used to generate the hash that matches every time with the encrypted hash of the password.

Thanks in advance 🙂

3 REPLIES 3

Jace Benson
Mega Sage

To my knowledge you can't do much with the password 1 fields.  You can ensure the previous value != the new value. But outside of that, any checks would have to be client side before submission.

2 way password fields you can decrypt and do what you want, but then again they are decryptable.

harishdasari
Tera Guru

Hi,

please this below thread, it might help you.

https://community.servicenow.com/community?id=community_question&sys_id=1391576ddbdcdbc01dcaf3231f96...

thank you.

Please mark the answer as correct if it is really helpful and solved your issue.

harishdasari
Tera Guru