title: How to have a constant initialization vector and secret key in java?
body: <p>I'm trying to decrypt an <code>access token</code> (it's a <code>String</code>), which is used to default access an Dropbox account and uploading files into it. So right now, I always need that <code>access token</code> to make file uploadings. </p>
  
  <p>Until now, I've been generating a new <code>initialization vector</code> (<code>IV</code>) and a new <code>secret key</code> to encrypt and decrypt the <code>access token</code>. However, I want to store these two in the source code, as constant variables/attributes. The reason why I want them to remain the same ? Because I will give a crypted <code>access token</code> (always the same encoded one) to the users, and the app should keep the <code>IV</code> and the <code>secret key</code> inside the source code.</p>
  
  <p>How can I store them in my source code ?</p>
  
  <p>I tried to write the string values of the <code>IV</code> and of the <code>secret key</code> in files. I use the string from the files, and I assign the string values to string constants in my code. Then i use my constants to create <code>byte</code> arrays for converting into the IV and into the secret key. I'm not sure if this will work yet, it's still in development.</p>