diff --git a/CommonCore/SQL/src/de/steamwar/sql/SteamwarUser.kt b/CommonCore/SQL/src/de/steamwar/sql/SteamwarUser.kt index fdd8204c..b135ab97 100644 --- a/CommonCore/SQL/src/de/steamwar/sql/SteamwarUser.kt +++ b/CommonCore/SQL/src/de/steamwar/sql/SteamwarUser.kt @@ -186,10 +186,10 @@ class SteamwarUser(id: EntityID): IntEntity(id) { val salt = ByteArray(16) random.nextBytes(salt) - val saltString = Base64.getEncoder().encode(salt) + val saltString = Base64.getEncoder().encodeToString(salt) val hash = generateHash(value, salt) - val hashString = Base64.getEncoder().encode(hash) + val hashString = Base64.getEncoder().encodeToString(hash) useDb { passwordInternal = "$hashString:$saltString"