Cipher cipher = Cipher.getInstance(AES);
SecretKeySpec skeySpec = new SecretKeySpec(raw, AES);
cipher.init(opMode, skeySpec);
return cipher.doFinal(input);
} catch (NoSuchAlgorithmException e) {
throw new UnexpectedException(e);
} catch (NoSuchPaddingException e) {
throw new UnexpectedException(e);
} catch (InvalidKeyException e) {
throw new UnexpectedException(e);
} catch (IllegalBlockSizeException e) {
throw new UnexpectedException(e);
} catch (BadPaddingException e) {
throw new UnexpectedException(e);
}
}