2
自2010年問世以來,我一直在使用jBCrypt 0.3版本。我使用默認的getsalt()方法來設置「log_rounds」到10.鑑於密碼破解硬件和方法的進展,這個值是否仍然適合作爲默認值,或者我應該看一些更高的值。jBCrypt的默認log_rounds仍適用於2013
信息從javadoc中......
String pw_hash = BCrypt_v03.hashpw(plain_password, BCrypt_v03.gensalt());
String strong_salt = BCrypt_v03.gensalt(10)
String stronger_salt = BCrypt_v03.gensalt(12)
的工作成倍增加(2個** log_rounds)的量,使每個增量既是工作的兩倍。默認log_rounds是10,有效範圍是4到31.