This will hide passwords implemented as a writer.
the example in main will create two writer one to stdout and one to a file, and hide a list of passwords
It tries to be a bit smart to print the characters as soon as possible
% cat test.txt
hello this is a password that string should be hidden now!!
I hope the string anotherpassword2 will be kept secret