title: string encoding error from delphi 7 to xe
body: <p>i found on internet some source for crypt string and i saw that on delphi 7 the string is crypted and decrypted well, and when i try to do the same things with delphi xe2,xe3,xe4,xe5 the encryption end decryption fail with this error "invalid buffer size for decryption" </p>
  
  <p>i'm using aes.pas and eiaes.pas from here: <a href="http://code.google.com/p/jalphi-lib/source/browse/trunk/codemyth/delphi/dontuseit/?r=7" rel="nofollow">http://code.google.com/p/jalphi-lib/source/browse/trunk/codemyth/delphi/dontuseit/?r=7</a>  </p>
  
  <p>i think that the problem is the enconding of string. </p>
  
  <p>Is it possible to solve this problem?</p>