@Test public void encrypt() throws Exception { String enc = testSubject.encrypt(plaintext, passPhrase); assertThat(enc, notNullValue()); }
@Override public String encrypt(final CharSequence str, final String passPhrase) { checkNotNull(str); checkNotNull(passPhrase); return SHIELD_BEGIN + doEncrypt(str, passPhrase) + SHIELD_END; }
MavenCipherImpl implements MavenCipher { @Override public String encrypt(final CharSequence str, final String passPhrase) { checkNotNull(str); checkNotNull(passPhrase); return SHIELD_BEGIN + doEncrypt(str, passPhrase) + SHIELD_END; } }
MavenCipherImpl implements MavenCipher { @Override public String encrypt(final CharSequence str, final String passPhrase) { checkNotNull(str); checkNotNull(passPhrase); return SHIELD_BEGIN + doEncrypt(str, passPhrase) + SHIELD_END; } @Inject  MavenCipherImpl(final CryptoHelper cryptoHelper); }
MavenCipherImpl implements MavenCipher { @Override public String encrypt(final CharSequence str, final String passPhrase) { checkNotNull(str); checkNotNull(passPhrase); return SHIELD_BEGIN + doEncrypt(str, passPhrase) + SHIELD_END; } @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 encrypt(final CharSequence str, final String passPhrase) { checkNotNull(str); checkNotNull(passPhrase); return SHIELD_BEGIN + doEncrypt(str, passPhrase) + SHIELD_END; } @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);  }