mirror of
https://github.com/gotify/server.git
synced 2026-05-06 21:42:07 +08:00
enhance: bump token keyspace to >128 bits
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user