title: AES Encryption 256 ECB Mode
body: <p>I tried to encrypt my plain data <code>"hello"</code> with key <code>"01234567891234567890123456789012"</code> but the problem is my encrypted code is not the same with <a href="http://aes.online-domain-tools.com/" rel="nofollow">the online reference</a>.</p>
  
  <p>Here is my android code written:</p>
  
  <pre><code>String smykey = "01234567891234567890123456789012";
  String hellos = "hello";
  
  SecretKeySpec key = new SecretKeySpec(smykey.getBytes(), "AES");
  
  Cipher cipher =  Cipher.getInstance("AES");//("AES/ECB/PKCS7Padding");//("ECB");//("AES");
  cipher.init(Cipher.ENCRYPT_MODE, key);
  
  byte[] encrypted = cipher.doFinal(hellos.getBytes());
  </code></pre>
  
  <p>code produce,</p>
  
  <pre><code>android: 0x25 0x66...0x2d 0x87 (32 bytes)
  ref:     0xa3 0xef...0x68 0x9f (16 bytes)
  </code></pre>
  
  <p>What's wrong with this Android code? someone I appreciate your help please?</p>