code: public String encryptOrNull(String data) {
          try {
              return encrypt(data);
          } catch (Exception e) {
              e.printStackTrace();
              return null;
          }
      }
docs: This is a sugar method that calls encrypt method and catch the exceptions returning
  {@code null} when it occurs and logging the error
  
  @param data the String to be encrypted
  
  @return the encrypted String or {@code null} if you send the data as {@code null}