I want to encode some value and pass it to the server. My concern is will my secret key be portable to the server side? For encode I want to get bytes as MyString.getBytes(), but server can keep Strings in a different way, so when he try to decode my message the result will be wrong.
Could you tell me please a right way how to make strings portable, independent from platforms?