title: how to deal with passwords securely within your application
body: <p>I have found a similar question here <a href="https://stackoverflow.com/questions/1484440/saving-passwords-inside-an-application">Saving passwords inside an application</a> but it didn't really answer my concerns.</p>
  
  <p>I am dealing with an application that will receive a password (securely) from the user. Once I receive the password I would need store it in some variable and send it through transactions to other systems (this logic is safe and secure and already implemented).</p>
  
  <p>My worry is that I don't want to be able to see the password in a core dump so I would like to encrypt any password before saving it to any variable.</p>
  
  <p>Questions:</p>
  
  <ul>
  <li><p>Is encrypting it before saving it to a variable enough? Or am I missing some security loopholes?</p></li>
  <li><p>Is there a simple header only libraries that can do encryption? Can you guide me to where I can start looking?</p></li>
  </ul>
  
  <p>Note to answer commenters:</p>
  
  <ul>
  <li><p>The password will not be stored long term; Only for the lifespan of the transactions.</p></li>
  <li><p>Unfortunately, the participants of the transactions cannot decrypt the password, therefore I would need to decrypt it before I send it to them.</p></li>
  <li><p>My main concern right now  is to find a way to encrypt and decrypt the password locally - in an easy manner...</p></li>
  <li><p>I found OpenSSL library and crypto++ but it seams that I would need to link with them, I can't just include and call them (i.e. not header only libraries)...</p></li>
  </ul>
  
  <p>Thanks,</p>