title: Hide user input on password prompt
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1413445/read-a-password-from-stdcin">Read a password from std::cin</a>  </p>
  </blockquote>
  
  
  
  <p>I don't work normally with the console, so my question is maybe very easy to answer or impossible to do .</p>
  
  <p>Is it possible to "decouple" <code>cin</code> and <code>cout</code>, so that what I type into the console doesn't appear directly in it again?</p>
  
  <p>I need this for letting the user typing a password and neither me nor the user normally wants his password appearing in <code>plaintext</code> on the screen.</p>
  
  <p>I tried using <code>std::cin.tie</code> on a <code>stringstream</code>, but everything I type is still mirrored in the console.</p>