title: Where Can I store a hard-coded password on a Windows Phone 8 App?
body: <p>I am making an internal Windows Phone 8 app that needs to connect to an email service to send mail. However, in order to send mail, an email address and password is required. I was provided with an email address and password to be used for sending mail. </p>
  
  <p>My question is, what is the best way for saving the email and password in the app? Since it's hard-coded, is it advisable to put it on the code-behind? Is the code safe from decompiling? Or should I save it on App.xaml? or App.xaml.cs? Should I encrypt the password? But I think that's futile if it's in the app and you can decompile the code to decrypt it.</p>
  
  <p>I know the best way would be to set up our own web service that the app communicates with. Then send the data to be emailed and let that web service handle the authentication for email. However, my supervisor does not want to set up an external web service. He wants a stand-alone WP8.</p>
  
  <p>Do you have any recommendations or suggestions?</p>
  
  <p>Thanks</p>