code: public String encrypt(String raw) throws IllegalBlockSizeException, BadPaddingException,
              UnsupportedEncodingException, InvalidKeyException, InvalidAlgorithmParameterException,
              NoSuchAlgorithmException, NoSuchPaddingException {
          Cipher c = getCipher(Cipher.ENCRYPT_MODE);
  
          byte[] encryptedVal = c.doFinal(raw.getBytes(CoreConstants.ENCODE_UTF8));
          return new String(Base64Coder.encode(encryptedVal));
      }
docs: Encrypt.
  
  @param raw the raw
  @return the string
  @throws IllegalBlockSizeException the illegal block size exception
  @throws BadPaddingException the bad padding exception
  @throws UnsupportedEncodingException the unsupported encoding exception
  @throws InvalidKeyException the invalid key exception
  @throws InvalidAlgorithmParameterException the invalid algorithm parameter exception
  @throws NoSuchAlgorithmException the no such algorithm exception
  @throws NoSuchPaddingException the no such padding exception