aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-12-17 16:32:03 -0600
committerJP Dillingham <jp@dillingham.me>2023-12-17 16:32:03 -0600
commitf37b99eb40e30475b228235341b74b5055db3ecd (patch)
treeb386be694bc2f44d66b918a2c153594ed4c9b5de /src
parent4f4385475b100c7e86d2281ae685741c21abebc2 (diff)
downloadslskd-f37b99eb40e30475b228235341b74b5055db3ecd.tar.gz
generate 32 bytes for default JWT key instead of 16
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Core/Options.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 1eb92449..077ecf74 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1653,7 +1653,7 @@ namespace slskd
[StringLength(255, MinimumLength = 16)]
[Secret]
[RequiresRestart]
- public string Key { get; init; } = Cryptography.Random.GetBytes(16).ToBase62();
+ public string Key { get; init; } = Cryptography.Random.GetBytes(32).ToBase62();
/// <summary>
/// Gets the TTL for JWTs, in milliseconds.