Code example for IllegalBlockSizeException

Methods: getMessage

0
		} catch (InvalidKeyException e) { 
			throw new SecurityException(e.getMessage()); 
		} catch (IllegalStateException e) { 
			throw new SecurityException(e.getMessage()); 
		} catch (IllegalBlockSizeException e) { 
			throw new SecurityException(e.getMessage()); 
		} catch (BadPaddingException e) { 
			throw new SecurityException(e.getMessage()); 
		} 
	} 
 
	/** 
	 * 对字符串进行可逆加密 
 
	 *  
	 * @param algorithm 
	 *            加密模式 
	 * @param src 
	 *            待加密的字符串 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE