Implement readpassphrase function, which read a passphrase from console, on Windows.