Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,004
Community Members
 
Community Events
184
Community Groups

Masking/Hashing/Hidding Passwords in Scriptrunner

I have a script that is making a REST call to another platform(ServiceNow). Currently I'm just using basic authentication in my script which is fine but the username and password are being stored in plain text in the script.

I would like to have the password encrypted somehow but don't really know how to go about it.

Any help would be great!

1 answer

1 vote
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jan 23, 2018

I think you could save the username and the password in a file somewhere in the server where your Jira instance is installed and read the file during your script execution. It would let you not to save password in your script which is not good considering that the script must be saved in a version control system.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events