Code example for Cipher

Methods: update

0
		return null; 
	} 
	 
	public void ping() { 
		String msg = "TX: MP-0 A";
		mOutputstream.println(Base64.encodeToString(mTxCipher.update(msg.getBytes()), Base64.NO_WRAP));
		Log.d(TAG, msg);
	} 
 
	public void connClose() { 
		try { 
			Log.d(TAG, "connClose() requested");
			isShuttingDown = true;
			if ((mSocket != null) && mSocket.isConnected()) {
				mSocket.close();
			} 
		} catch (Exception e) {
			e.printStackTrace();
		} 
	}