Validating with Password(1-way-encrypted) and Plain text
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2018 08:57 PM
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 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2018 10:38 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2019 07:14 AM
Hi,
please this below thread, it might help you.
thank you.
Please mark the answer as correct if it is really helpful and solved your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2019 07:16 AM
Please check this documentation
https://developer.servicenow.com/app.do#!/api_doc?v=madrid&id=GlideEnc-GlideEncrypter