enhance: bump token keyspace to >128 bits

This commit is contained in:
Yumechi
2026-03-28 22:41:43 +08:00
parent 061053711f
commit 1051f3ff47

View File

@@ -7,7 +7,7 @@ import (
var (
tokenCharacters = []byte("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_")
randomTokenLength = 14
randomTokenLength = 22 // ~2^132.5 keyspace (7.65e+39)
applicationPrefix = "A"
clientPrefix = "C"
pluginPrefix = "P"