How to Encrypt Custom Settings

Hello -

I am trying to figure out if it’s possible to encrypt data in the Custom Settings field of a Connection (MS SQL in this case). I’d like to use this value as a part of a custom preSavePage Hook script. The screenshot below shows what I’ve tried but the value never seems to get encrypted.

Thanks in advance.

That’s not currently possible. The only place to store custom encrypted values is in the encrypted field section of HTTP connections and even then it’s not accessible via script (only in request body, header, parameters).

Thank you @tylerlamparter for the quick response!