Thanks for the great book. After spending fruitless hours with cryptic (pun intended) JCE documentation, your book makes JCE concepts crystal clear.
Chapter 3 gives a utility class for byte->string->byte conversions, however:
Code:
// where s is a UTF-8 string
chapter3.Utils.toString(chapter3.Utils.toByteArray(s));
mangles non-ascii characters where as
Code:
new String(s.getBytes());
returns the original string s as expected. Can you please explain?
thanks
tom