forked from Tutorialwork/ProfessionalBans-Reloaded
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
413 additions
and
503 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
// Copyright (c) 2006 Damien Miller <[email protected]> | ||
// | ||
// Permission to use, copy, modify, and distribute this software for any | ||
// purpose with or without fee is hereby granted, provided that the above | ||
// copyright notice and this permission notice appear in all copies. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
|
||
package de.tutorialwork.utils; | ||
|
||
import java.io.UnsupportedEncodingException; | ||
|
@@ -365,8 +379,8 @@ public class BCrypt { | |
* | ||
* @param d the byte array to encode | ||
* @param len the number of bytes to encode | ||
* @return base64-encoded string | ||
* @throws IllegalArgumentException if the length is invalid | ||
* @return base64-encoded string | ||
*/ | ||
private static String encode_base64(byte d[], int len) | ||
throws IllegalArgumentException { | ||
|
@@ -421,8 +435,8 @@ private static byte char64(char x) { | |
* | ||
* @param s the string to decode | ||
* @param maxolen the maximum number of bytes to decode | ||
* @return an array containing the decoded bytes | ||
* @throws IllegalArgumentException if maxolen is invalid | ||
* @return an array containing the decoded bytes | ||
*/ | ||
private static byte[] decode_base64(String s, int maxolen) | ||
throws IllegalArgumentException { | ||
|
@@ -746,4 +760,4 @@ public static String gensalt() { | |
public static boolean checkpw(String plaintext, String hashed) { | ||
return (hashed.compareTo(hashpw(plaintext, hashed)) == 0); | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/kotlin/de/tutorialwork/main/Main.kt → src/main/kotlin/de/tutorialwork/Main.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package de.tutorialwork.sql | ||
|
||
import org.jetbrains.exposed.sql.Table | ||
|
||
object Chat : Table() { | ||
val id = integer("id").autoIncrement().primaryKey() | ||
var uuid = varchar("uuid", 36) | ||
var server = varchar("server", 64) | ||
var message = varchar("message", 2500) | ||
var sendDate = long("senddate") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.