I\'m using cipher to encrypt and decrypt messages:
public String encrypt(String string) throws InvalidKeyException, IllegalBlockSizeException, BadPaddingExce
You need to convert Base-64 first.
CODEED = encrypt(Base64.encode(MYSTRING, Base64.DEFAULT));
MYSTRING = Base64.decode(decrypt(CODEED), Base64.DEFAULT);
here is a link http://androidcodemonkey.blogspot.com/2010/03/how-to-base64-encode-decode-android.html