import java.util.regex.Pattern;
import org.sonatype.plexus.components.cipher.PBECipher;
import org.sonatype.plexus.components.cipher.PlexusCipher;
import org.sonatype.plexus.components.cipher.PlexusCipherException;
public class MavenPlexusCipher implements PlexusCipher {
<BUG>private static final Pattern ENCRYPTED_STRING_PATTERN = Pattern.compile(".*?[^\\\\]?\\{(.*?[^\\\\])\\}.*");
private final PBECipher cipher;</BUG>
public MavenPlexusCipher() throws IllegalStateException {
try {
cipher = new PBECipher();

import java.util.regex.Pattern;
import org.sonatype.plexus.components.cipher.PBECipher;
import org.sonatype.plexus.components.cipher.PlexusCipher;
import org.sonatype.plexus.components.cipher.PlexusCipherException;
public class MavenPlexusCipher implements PlexusCipher {
private static final Pattern ENCRYPTED_PATTERN_WITH_PRECEDING_STRING =
Pattern.compile("[^\\\\$]\\{(.*?[^\\\\])\\}.*", Pattern.DOTALL);
private static final Pattern ENCRYPTED_PATTERN_WITHOUT_PRECEDING_STRING =
Pattern.compile("^\\{(.*?[^\\\\])\\}.*", Pattern.MULTILINE + Pattern.DOTALL);
private final PBECipher cipher;
public MavenPlexusCipher() throws IllegalStateException {
try {
cipher = new PBECipher();
