@Test public void masterPasswordCreatedWithMaven322Cli() { String passPhrase = "settings.security"; String plaintext = "123321"; String encrypted = "{eO8Yc66/I/IHaeg4CoF+/o5bwS5IIyfWcgsYhS0s9W8=}"; assertThat(testSubject.decrypt(encrypted, passPhrase), equalTo(plaintext)); }
@Override public String decrypt(final String str, final String passPhrase) { checkNotNull(str); checkNotNull(passPhrase); return doDecrypt(peel(str), passPhrase).toString(); }
MavenCipherImpl implements MavenCipher { @Override public String decrypt(final String str, final String passPhrase) { checkNotNull(str); checkNotNull(passPhrase); return doDecrypt(peel(str), passPhrase).toString(); } }
MavenCipherImpl implements MavenCipher { @Override public String decrypt(final String str, final String passPhrase) { checkNotNull(str); checkNotNull(passPhrase); return doDecrypt(peel(str), passPhrase).toString(); } @Inject  MavenCipherImpl(final CryptoHelper cryptoHelper); }
MavenCipherImpl implements MavenCipher { @Override public String decrypt(final String str, final String passPhrase) { checkNotNull(str); checkNotNull(passPhrase); return doDecrypt(peel(str), passPhrase).toString(); } @Inject  MavenCipherImpl(final CryptoHelper cryptoHelper); @Override String encrypt(final CharSequence str, final String passPhrase); @Override String decrypt(final String str, final String passPhrase); @Override char[] decryptChars(final String str, final String passPhrase); @Override boolean isPasswordCipher(final CharSequence str); }
MavenCipherImpl implements MavenCipher { @Override public String decrypt(final String str, final String passPhrase) { checkNotNull(str); checkNotNull(passPhrase); return doDecrypt(peel(str), passPhrase).toString(); } @Inject  MavenCipherImpl(final CryptoHelper cryptoHelper); @Override String encrypt(final CharSequence str, final String passPhrase); @Override String decrypt(final String str, final String passPhrase); @Override char[] decryptChars(final String str, final String passPhrase); @Override boolean isPasswordCipher(final CharSequence str);  }