@darrenhillconsulting when the user input they key, you can keep the id generated form that secret on a record somewhere, to use/decrypt the key, it looks like this
response =
HTTPS.post({
credentials : [ '111111111111111bbbbbbbbbbbbbbb' ],
url : '
https://your.system?token={111111111111111bbbbbbbbbbbbbbb}
where 111111111111111bbbbbbbbbbbbbbb is the id generated from encrypting the password in netsuite