title: How to ensure the encrypted length are same as the given string
body: <p>Hi is it possible to encrypt the string with the certain length that i want? for example: i want to encrypt this string <code>BI000001</code> to something like hex value <code>A3D5F2ARD3</code>(random) fixed it at 10 length. Therefore when user enter this value <code>A3D5F2ARD3</code>, system will based on this value and decrypt it to get back the value <code>BI000001</code> .</p>
  
  <p>is it possible to do this in java? </p>
  
  <p>I tried a lot of method but all encrypted length are way too long.</p>