title: Cordova plugin error on Android - cordova-plugin-secure-key-store
body: <p>I'm having issues storing an Oauth web token using the cordova-plugin-secure-key-store plugin.
  <a href="https://www.npmjs.com/package/cordova-plugin-secure-key-store" rel="nofollow noreferrer">https://www.npmjs.com/package/cordova-plugin-secure-key-store</a></p>
  <p>When I'm setting a key I get the following:-</p>
  <pre><code>cordova.plugins.SecureKeyStore.set(function (res) {
      console.log('success: ' + res);
  }, function (error) {
      console.log('Error: ' + error);
  }, &quot;sessionToken&quot;, JSON.stringify(token));
  </code></pre>
  <p>index.js?v=1.0.2:90 Error: {&quot;code&quot;:1,&quot;api-level&quot;:23,&quot;message&quot;:Error while finalizing cipher}</p>
  <p>When I try to retrieve the key (that obviously doesn't exist), I get:-</p>
  <pre><code>cordova.plugins.SecureKeyStore.get(function (res) {
      savedToken = JSON.parse(res);
      console.log('success: ' + savedToken);
  }, function (error) {
      console.log('Error: ' + error);
  }, &quot;sessionToken&quot;);
  </code></pre>
  <p>Error: {&quot;code&quot;:9,&quot;api-level&quot;:23,&quot;message&quot;:null}</p>
  <p>I'm probably doing something stupid but I can't seem to find any answers. Cheers for any help or pointers!</p>