/** * Return true if the text is enclosed with <code>ENC()</code> or starts with <code>enc--</code> */ public static boolean isEncrypted(String text) { if (text == null) { return false; } return Str.matches(text, PREFIX, SUFFIX) || text.startsWith(MAGIC_PREFIX); }