From 495dd35b4848f1585858b62e3b2711d3f9dbb22d Mon Sep 17 00:00:00 2001
From: DmitryRendov
Date: Sun, 6 Sep 2015 20:28:25 +0000
Subject: [PATCH 1/6] Updated PBKDF2 hasher to support Django 1.7+
---
.../xephi/authme/security/crypts/CryptPBKDF2.java | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/main/java/fr/xephi/authme/security/crypts/CryptPBKDF2.java b/src/main/java/fr/xephi/authme/security/crypts/CryptPBKDF2.java
index e6fb9bc5..426b36ee 100644
--- a/src/main/java/fr/xephi/authme/security/crypts/CryptPBKDF2.java
+++ b/src/main/java/fr/xephi/authme/security/crypts/CryptPBKDF2.java
@@ -4,17 +4,18 @@ import java.security.NoSuchAlgorithmException;
import fr.xephi.authme.security.pbkdf2.PBKDF2Engine;
import fr.xephi.authme.security.pbkdf2.PBKDF2Parameters;
+import javax.xml.bind.DatatypeConverter;
public class CryptPBKDF2 implements EncryptionMethod {
@Override
public String getHash(String password, String salt, String name)
throws NoSuchAlgorithmException {
- String result = "pbkdf2_sha256$10000$" + salt + "$";
- PBKDF2Parameters params = new PBKDF2Parameters("HmacSHA256", "ASCII", salt.getBytes(), 10000);
+ String result = "pbkdf2_sha256$15000$" + salt + "$";
+ PBKDF2Parameters params = new PBKDF2Parameters("HmacSHA256", "ASCII", salt.getBytes(), 15000);
PBKDF2Engine engine = new PBKDF2Engine(params);
-
- return result + String.valueOf(engine.deriveKey(password, 64));
+
+ return result + String.valueOf(DatatypeConverter.printBase64Binary(engine.deriveKey(password, 32)));
}
@Override
@@ -22,8 +23,8 @@ public class CryptPBKDF2 implements EncryptionMethod {
String playerName) throws NoSuchAlgorithmException {
String[] line = hash.split("\\$");
String salt = line[2];
- String derivedKey = line[3];
- PBKDF2Parameters params = new PBKDF2Parameters("HmacSHA256", "ASCII", salt.getBytes(), 10000, derivedKey.getBytes());
+ byte[] derivedKey = DatatypeConverter.parseBase64Binary(line[3]);
+ PBKDF2Parameters params = new PBKDF2Parameters("HmacSHA256", "ASCII", salt.getBytes(), 15000, derivedKey);
PBKDF2Engine engine = new PBKDF2Engine(params);
return engine.verifyKey(password);
}
From 7c2649abf51ed388805d89b4b2541454a27c4189 Mon Sep 17 00:00:00 2001
From: DmitryRendov
Date: Sun, 6 Sep 2015 20:32:58 +0000
Subject: [PATCH 2/6] Fix
---
src/main/java/fr/xephi/authme/security/crypts/CryptPBKDF2.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/fr/xephi/authme/security/crypts/CryptPBKDF2.java b/src/main/java/fr/xephi/authme/security/crypts/CryptPBKDF2.java
index 426b36ee..7e672ea7 100644
--- a/src/main/java/fr/xephi/authme/security/crypts/CryptPBKDF2.java
+++ b/src/main/java/fr/xephi/authme/security/crypts/CryptPBKDF2.java
@@ -14,7 +14,7 @@ public class CryptPBKDF2 implements EncryptionMethod {
String result = "pbkdf2_sha256$15000$" + salt + "$";
PBKDF2Parameters params = new PBKDF2Parameters("HmacSHA256", "ASCII", salt.getBytes(), 15000);
PBKDF2Engine engine = new PBKDF2Engine(params);
-
+
return result + String.valueOf(DatatypeConverter.printBase64Binary(engine.deriveKey(password, 32)));
}
From 395a514778b3afd7bd67c656c2345f5c1a6352b9 Mon Sep 17 00:00:00 2001
From: Alexandre Vanhecke
Date: Mon, 7 Sep 2015 12:33:24 +0200
Subject: [PATCH 3/6] Update README.md
---
README.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/README.md b/README.md
index 2f12855f..02e6a9d3 100644
--- a/README.md
+++ b/README.md
@@ -125,6 +125,10 @@ typing commands or use the inventory. It can also kick players with uncommon lon
EUR:
USD: 
+#####Sponsor
+GameHosting.it is leader in Italy in Game Server Provider. With its own DataCenter offers Anti-DDoS solutions at affordable prices. Game Server of Minecraft based on Multicraft are equipped with the latest technology in hardware.
+[](http://www.gamehosting.it)
+
#####Credits
Team members: Xephi(Main Developer, Author), Maxetto(Contributor) and sgdc3(Contributor)
Credit for old version of the plugin to: d4rkwarriors, fabe1337 , Whoami2 and pomo4ka
From 1e9d7f879aad97c8f89f58f3c00644b37309b23c Mon Sep 17 00:00:00 2001
From: Alexandre Vanhecke
Date: Mon, 7 Sep 2015 12:35:49 +0200
Subject: [PATCH 4/6] Sponsor
---
src/main/java/fr/xephi/authme/AuthMe.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/main/java/fr/xephi/authme/AuthMe.java b/src/main/java/fr/xephi/authme/AuthMe.java
index 7ed3dd9f..08ab36a5 100644
--- a/src/main/java/fr/xephi/authme/AuthMe.java
+++ b/src/main/java/fr/xephi/authme/AuthMe.java
@@ -295,6 +295,7 @@ public class AuthMe extends JavaPlugin {
// Sponsor message
ConsoleLogger.info("AuthMe hooks perfectly with the VERYGAMES server hosting!");
+ ConsoleLogger.info("AuthMe builds are available on jenkins, thanks to our sponsor GameHosting.it - leader in Italy in Game Server Provider");
ConsoleLogger.info("AuthMe " + this.getDescription().getVersion() + " correctly enabled!");
}
From 8ec497a5e832459161426be79850fbee77552203 Mon Sep 17 00:00:00 2001
From: "Gabriele C."
Date: Mon, 7 Sep 2015 13:25:40 +0200
Subject: [PATCH 5/6] Update AuthMe.java
---
src/main/java/fr/xephi/authme/AuthMe.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/fr/xephi/authme/AuthMe.java b/src/main/java/fr/xephi/authme/AuthMe.java
index 7a817213..5e6e2cc0 100644
--- a/src/main/java/fr/xephi/authme/AuthMe.java
+++ b/src/main/java/fr/xephi/authme/AuthMe.java
@@ -308,7 +308,7 @@ public class AuthMe extends JavaPlugin {
// Sponsor message
ConsoleLogger.info("AuthMe hooks perfectly with the VERYGAMES server hosting!");
- ConsoleLogger.info("AuthMe builds are available on jenkins, thanks to our sponsor GameHosting.it - leader in Italy in Game Server Provider");
+ ConsoleLogger.info("Development builds are available on our jenkins, thanks to our sponsor GameHosting.it - leader in Italy as Game Server Provider");
ConsoleLogger.info("AuthMe " + this.getDescription().getVersion() + " correctly enabled!");
}
From 0bab99b2fdf2fd92a21429fcc3e0d8cd2ac94480 Mon Sep 17 00:00:00 2001
From: "Gabriele C."
Date: Mon, 7 Sep 2015 13:29:22 +0200
Subject: [PATCH 6/6] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 02e6a9d3..3f12a0cc 100644
--- a/README.md
+++ b/README.md
@@ -126,7 +126,7 @@ EUR:
#####Sponsor
-GameHosting.it is leader in Italy in Game Server Provider. With its own DataCenter offers Anti-DDoS solutions at affordable prices. Game Server of Minecraft based on Multicraft are equipped with the latest technology in hardware.
+GameHosting.it is leader in Italy as Game Server Provider. With its own DataCenter offers Anti-DDoS solutions at affordable prices. Game Server of Minecraft based on Multicraft are equipped with the latest technology in hardware.
[](http://www.gamehosting.it)
#####Credits