aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-10-20 20:59:42 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-10-20 20:59:42 -0500
commit8cb9c8de52b65207ef35236c2c7d0de6f28ec082 (patch)
treef29fa49555d8eba0a369ec2aa0a867cddb40223a
parent4cb8d7836c7910432bccfee7959e3e833c6e19b1 (diff)
downloadslskd-8cb9c8de52b65207ef35236c2c7d0de6f28ec082.tar.gz
remove pbkdf2 of jwt key
-rw-r--r--src/slskd/Startup.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Startup.cs b/src/slskd/Startup.cs
index 322d8ed8..0ac5c437 100644
--- a/src/slskd/Startup.cs
+++ b/src/slskd/Startup.cs
@@ -20,6 +20,7 @@ namespace slskd
using System;
using System.IO;
using System.Linq;
+ using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication.JwtBearer;
@@ -36,7 +37,6 @@ namespace slskd
using Serilog;
using slskd.Authentication;
using slskd.Core.API;
- using slskd.Cryptography;
using slskd.Integrations.FTP;
using slskd.Integrations.Pushbullet;
using slskd.Messaging;
@@ -71,7 +71,7 @@ namespace slskd
ContentPath = Path.GetFullPath(OptionsAtStartup.Web.ContentPath);
- JwtSigningKey = new SymmetricSecurityKey(Pbkdf2.GetKey(OptionsAtStartup.Web.Authentication.Jwt.Key));
+ JwtSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(OptionsAtStartup.Web.Authentication.Jwt.Key));
}
private IConfiguration Configuration { get; }