title: Storing a password
body: <p>I'm creating a app to store encrypted data.</p>
  
  <p>In <a href="https://stackoverflow.com/questions/1925486/android-storing-username-and-password">this</a> question, the OP si advised to store user's credential in clear.</p>
  
  <p>But what if I'd like to store an encrypted password created with SecretKeySpec (the one used to encrypt data)? From my understanding the secret key is itself encrypted.</p>
  
  <p>So I can I store and retrieve it.</p>
  
  <p>Note: I'm not asking how to store preferences, just if my understanding of how SecretKeySpec works and how to, sort of, serialize and retrieve the encrypted password.</p>
  
  <p><strong>EDIT</strong>: Sorry, I forgot to specify it needs to be compatible with API level 4.</p>