encrypted: ?HX?631ffe50353ddda632a7e8fa11136d6ffaa584eb43b34c96005b6256f9dc 4121c7a8545d79887b900672e5870d702441?H
encrypted: ?HX?dfea4d1d30ebd5fc871c7c92d0230baf9e5298b19c3cfa0770fe2d2035f8 dad0116f2963b115c85c9d4725be505fca54?H
and so on....
To unit test this, one way I can think of is to also implement the decrypt function in java and then decrypt the output of the encryption function. If the decryption yields the original text then the encryption is correct.
encrypted = Encrypt_text(word); assertEquals(word,Decrypt_text(encrypted);
Any other suggestions...?