title: Android Rijndael-256 not working
body: <p>I've got this code to decrypt a php (mcrypt) token.</p>
  
  <p>The problem is, that the decode method always uses Rijndael-128 not -256. When I encode on the php side with -128, I can decode in Android. When using 256 its not working. (getHash returns a SHA-256 hashed key):</p>
  
  <pre><code>    String key = "987654321";
      SecretKeySpec keyspec = new SecretKeySpec(getHash(key), "AES");
      Cipher cipherDecode = Cipher.getInstance("AES/ECB/ZeroBytePadding");
      byte[] text = Base64.decode(
              "wdRe00YxTFGQ65QmWukPxFLlZRSPqmRY8tHufikBHW0=",
              Base64.DEFAULT);
      cipherDecode.init(Cipher.DECRYPT_MODE, keyspec);
  
      final byte[] decrypted = cipherDecode.doFinal(text);
  
      String decyptedText = new String(decrypted);
  </code></pre>
  
  <p>This should give the Text 'wdRe00YxTFGQ65QmWukPxFLlZRSPqmRY8tHufikBHW0=', but it doesn't.</p>
  
  <p>How can I specifiy or force the correct code to be used?</p>