Hotfix java 11 exception
Dieser Commit ist enthalten in:
Ursprung
7f6302a0ce
Commit
23ff60b241
@ -19,7 +19,8 @@
|
|||||||
|
|
||||||
package de.steamwar.sql;
|
package de.steamwar.sql;
|
||||||
|
|
||||||
import javax.xml.bind.DatatypeConverter;
|
import com.google.common.io.BaseEncoding;
|
||||||
|
|
||||||
import java.security.MessageDigest;
|
import java.security.MessageDigest;
|
||||||
import java.security.NoSuchAlgorithmException;
|
import java.security.NoSuchAlgorithmException;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
@ -48,7 +49,7 @@ public class DownloadSchematic {
|
|||||||
}
|
}
|
||||||
cript.reset();
|
cript.reset();
|
||||||
cript.update((Instant.now().toString() + schem.getSchemOwner() + schem.getSchemID()).getBytes());
|
cript.update((Instant.now().toString() + schem.getSchemOwner() + schem.getSchemID()).getBytes());
|
||||||
String hash = DatatypeConverter.printHexBinary(cript.digest());
|
String hash = BaseEncoding.base16().encode(cript.digest());
|
||||||
SQL.update("INSERT INTO SchemDownload (SchemID, Link) VALUES (?, ?)", schem.getSchemID(), hash);
|
SQL.update("INSERT INTO SchemDownload (SchemID, Link) VALUES (?, ?)", schem.getSchemID(), hash);
|
||||||
return BASE + hash;
|
return BASE + hash;
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren