public static byte[] encrypt(byte[] content, SecretKeySpec password)
			throws NoSuchAlgorithmException, NoSuchPaddingException,
			UnsupportedEncodingException, InvalidKeyException,
			IllegalBlockSizeException, BadPaddingException {
		byte[] result;
		try {
			Cipher cipher = Cipher.getInstance("AES");
			byte[] byteContent = content;
			cipher.init(Cipher.ENCRYPT_MODE, password);
			result = cipher.doFinal(byteContent);
			return result;
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}