PasswordUtils { public static String decryptPassword(String aPassword) throws IOException { return build(aPassword).decrypt(); } PasswordUtils(String aPassword); static String encryptPassword(String aPassword); static PasswordUtils build(String aPassword); static String decryptPassword(String aPassword); static boolean needsIv(String cryptoAlgo); static String generateIvIfNeeded(String cryptAlgo); String getCryptAlgo(); String getPassword(); int getIterationCount(); char[] getEncryptKey(); byte[] getSalt(); byte[] getIv(); String getIvAsString(); static String getDecryptPassword(String password); static final String PBE_SHA512_AES_128; static final String DEFAULT_CRYPT_ALGO; static final String DEFAULT_ENCRYPT_KEY; static final String DEFAULT_SALT; static final int DEFAULT_ITERATION_COUNT; static final byte[] DEFAULT_INITIAL_VECTOR; }
@Test public void testDecryptEmptyResultInNull() throws Throwable { String string0 = PasswordUtils.decryptPassword(""); assertNull(string0); }