code: private Cipher getCipher(int mode) throws InvalidKeyException, InvalidAlgorithmParameterException,
              UnsupportedEncodingException, NoSuchAlgorithmException, NoSuchPaddingException {
          Cipher c = Cipher.getInstance(ALGORYITHM);
  
          byte[] iv = CoreConstants.IV.getBytes(CoreConstants.ENCODE_UTF8);
  
          c.init(mode, cryptKey, new IvParameterSpec(iv));
          return c;
      }
docs: Gets the cipher.
  
  @param mode the mode
  @return the cipher
  @throws InvalidKeyException the invalid key exception
  @throws InvalidAlgorithmParameterException the invalid algorithm parameter exception
  @throws UnsupportedEncodingException the unsupported encoding exception
  @throws NoSuchAlgorithmException the no such algorithm exception
  @throws NoSuchPaddingException the no such padding exception