I have a text file (test.txt) containing the below:
User : MikeyMouse
Pswd : mycrazypswd
connectionstring : serverepor:80,pass=809hjhlkusfasdf,somepropert=somevalue
I need to use PS to update the above file's key value to mask passwords as shown below with "---"
sser : MikeyMouse
pswd : my---wd
connectionstring : serverepor:80,pass=80---df,somepropert=somevalue
Any suggestions on how bet to do that?
Thanks