Code example for InvalidKeyException

Methods: toString

0
			} catch (NoSuchAlgorithmException e) {
				Log.e(TAG,e.toString());
			} catch (NoSuchPaddingException e) {
				Log.e(TAG,e.toString());
			} catch (InvalidKeyException e) {
				Log.e(TAG,e.toString());
			} catch (IllegalBlockSizeException e) {
				Log.e(TAG,e.toString());
			} catch (BadPaddingException e) {
				Log.e(TAG,e.toString());
			} catch (UnsupportedEncodingException e) {
				Log.e(TAG,e.toString());
			} 
		} 
		return null; 
	} 
 
	protected String Encrypt(String data) {
		if ((mSecretKey != null) && (data != null)) {
			try { 
Connect your IDE to all the code out there  Get Codota for Java