title: aes 256 encryption on PHP and decryption with ios pannding
body: <p>I'm trying to encrypt strings on my server and send it to my iPhone.</p>
  
  <p>When I'm encrypting on my iphone and send it to decryption on my server, every thing is OK. </p>
  
  <p>But when I'm trying to encrypt on my server (<code>php page</code>) I can't decrypt it on my iPhone.</p>
  
  <p>e.g.: When I encrypt "True" on my PHP, I am getting: </p>
  
  <blockquote>
    <p>ca 82 66 c8 be 5a a9 fb d8 7f 25 b6 1e f0 fb 68 54 72 75 65 0 0 0 0 0
    0 0 0 0 0 0 0</p>
  </blockquote>
  
  <p>then I'm doing some - base64</p>
  
  <blockquote>
    <p>yoJmyL5aqfvYfyW2HvD7aA==
    when im sending it to my iphone i cant decrypt it right .. </p>
  </blockquote>
  
  <p>But when I'm trying to encrypt "True" on my Iphone I'm getting: </p>
  
  <blockquote>
    <p>ca 82 66 c8 be 5a a9 fb d8 7f 25 b6 1e f0 fb 68 54 72 75 65 c c c c c
    c c c c c c c</p>
  </blockquote>
  
  <p>base64-</p>
  
  <blockquote>
    <p>fwqkKsopev3Xmu4BF4OE5Q==</p>
  </blockquote>
  
  <p>Can someone guide me towards a solution?</p>