Code example for IllegalBlockSizeException

Methods: printStackTrace

0
			Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding");
			cipher.init(Cipher.ENCRYPT_MODE, skeySpec);
			result = cipher.doFinal(src);
		} catch (IllegalBlockSizeException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} catch (BadPaddingException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} catch (InvalidKeyException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} catch (NoSuchAlgorithmException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} catch (NoSuchPaddingException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} 
		return result;
	}