Secure Credentials Function
This particular function rose out of another script I wrote a little while back, the Restart Computers with Firm Confirmation. I wanted to make a particular piece of it available for others to use in their own scripts or at least something I can always refer to within my own.