whats the best way to store a password I need to do base64Encoding against?

snow_steve
Giga Contributor

so I need to send credentials to an external API, but their API requires the key and secret are base64Encoded. so I need to be able to store the secret somewhere so that I can still do this encoding to it. Regular password fields don't work because SeviceNow does their own encoding to passwords there. Any ideas?

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hello @snow_steve 

You can use a password field and set the value as needed, then when you need to access it, you can use the GlideEncrypter API to decode it, and go from there. This helps keep it more secure than in perhaps a system property, for example. Otherwise, you could try that too...

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

2 REPLIES 2

Allen Andreas
Administrator
Administrator

Hello @snow_steve 

You can use a password field and set the value as needed, then when you need to access it, you can use the GlideEncrypter API to decode it, and go from there. This helps keep it more secure than in perhaps a system property, for example. Otherwise, you could try that too...

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

awesome, thank you.