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:
Justin Crawford
2019-10-06 00:08:34 -07:00
parent 73c30f5214
commit 4a39525809
12 changed files with 1152 additions and 64 deletions

View File

@@ -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);
}