Here are some ways to encrypt and decrypt a securestring using powershell

edit: I saved this so I could come back and reference it, and after doing so I found this page while googling for my own page which is SO similar it makes me sad that I even wrote mine. =)