Skip to content

Commit 1434380

Browse files
enhance: bump token keyspace to >128 bits (#939)
1 parent 0610537 commit 1434380

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

auth/token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
var (
99
tokenCharacters = []byte("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_")
10-
randomTokenLength = 14
10+
randomTokenLength = 22 // ~2^132.5 keyspace (7.65e+39)
1111
applicationPrefix = "A"
1212
clientPrefix = "C"
1313
pluginPrefix = "P"

0 commit comments

Comments
 (0)