diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Startup.cs | 4 |
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; } |
