Added 3 new password hashing schemes
Support for bcrypt, sha256, pbkdf2 and plain text ofc. This makes password-based auth actually secure.
This commit is contained in:
@@ -60,6 +60,7 @@ public class PublicKeyAuthenticator implements PublickeyAuthenticator
|
||||
if (this.FailCounts.get(username) >= tries)
|
||||
{
|
||||
this.FailCounts.put(username, 0);
|
||||
SshdPlugin.instance.getLogger().info("Too many failures for " + username + ", disconnecting.");
|
||||
session.close(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user