/** * Returns the {@link BCrypt} hash tool with given rounds number for salt generation. */ public static HashEngine bcrypt(final int rounds) { return bcrypt(BCrypt.gensalt(rounds)); }
@Test void testBcrypt() { HashEngine hashEngine = HashEngine.bcrypt(7); String hash = hashEngine.hash("Jodd"); assertTrue(hashEngine.check("Jodd", hash)); }
/** * Returns the {@link BCrypt} hash tool with given rounds number for salt generation. */ public static HashEngine bcrypt(final int rounds) { return bcrypt(BCrypt.gensalt(rounds)); }