if you use powershell there is a function called encrypted-string that will store the variable in an encrypted string so that if it is printed, or echo'ed you get the encrypted string. but if you pass it as an argumrnt to a command or anything like that it prints the unecrypted string. Also you get *****'s when its entered into the console.
$mypassword = encrypted-string "please enter your password"
I havent used it in a while, but its something like the above.
|