MCPcopy Create free account
hub / github.com/MertJSX/folderhost / GenerateJWTKey

Function GenerateJWTKey

utils/generate_unique_string.go:18–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func GenerateJWTKey() (string, error) {
19 bytes := make([]byte, 64) // 512 bit
20 if _, err := rand.Read(bytes); err != nil {
21 return "", fmt.Errorf("random read failed: %w", err)
22 }
23 return hex.EncodeToString(bytes), nil
24}

Callers 1

GetConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected