How can we encrypt password and send via rest message?

swathigangadhar
Tera Expert

How can we encrypt password and send via rest message?

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Swathi,



Create a system property with type as password or password2 and give your password in the value field. While sending the password to REST end point pick it from this system property and send. The password is automatically encrypted since it is of type password



Here is the wiki link saying what password and password2 fields or passwords are


http://wiki.servicenow.com/index.php?title=Introduction_to_Fields#gsc.tab=0



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur,



Actually, i am just passing password from login page and passing to rest message, so while passing i need to encrypt, i don't want to store in DB.


Hi Swathi,



Can you explain the requirement in details?



Regards


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

for authentication of user am passing user id and password to third party via REST message, so while sending i need to encrypt the password. And send it as a parameter in REST.