/** * Reveal the original contents of a string concealed by the <code>conceal</code> method. * * @see conceal */ public static final String reveal(String text) { if (text == null) { return null; } Assert.noBlanks(text); if (!isConcealed(text)) { return text; } Assert.concealed(text); String substring = removePrefix(text, CONCEALED_PREFIX); char[] chars = substring.toCharArray(); StringBuilder sb = new StringBuilder(); for (char c : chars) { sb.append(Ascii.flip(c)); } return sb.toString(); }