What Are The Type Of Password In ServiceNow?

shubham92
Tera Contributor

What Are The Type Of Password In ServiceNow?

3 REPLIES 3

AnveshKumar M
Tera Sage
Tera Sage

Hi @shubham92 

Based on type of encryption,

There are two types of passwords based on their type of encryption, one way encrypted and two way encrypted.

 

The password field in sys_user table is one way encrypted field, which can not be decrypted by using GlideEncrypter.

 

On the other hand 2 way encrypted passwords can be decrypted by using GlideEncrypter, for example, client secret in oAuth config record or a password stored in credentials record etc.

 

Please mark my answer helpful and accept as a solution if it helped 👍

Thanks,
Anvesh

Tai Vu
Kilo Patron
Kilo Patron

Hi @shubham92 

There are 2 field types for password in ServiceNow.

Screenshot 2024-01-02 at 10.28.48.png

Password (1 Way Encrypted)Text field that stores passwords with one-way encryption. One-way encryption stores the password as a secure hash value that cannot be decrypted.
Password (2 Way Encrypted)Text field that stores passwords with two-way encryption. Two-way encryption stores the password as a secure encrypted value that can be decrypted programmatically within the instance. You can use Password 2 encryption with form variables. To encrypt text fields on forms, use Password2 encryption with KMF. The length for password2 field values must be at least 255 characters.
Cheers,
Tai Vu

Nivedita Patil
Mega Sage
Mega Sage

Hi @shubham92 ,

Please refer the below link.

https://www.servicenow.com/community/itsm-forum/is-there-info-available-on-password-password2-field-...

 

Mark my answer as accepted solution and helpful if helps you.

 

Thanks,

Nivedita Patil.