布兰卡 branca是JWT的安全替代方案,此实现是用纯Go语言编写的(无cgo依赖项),并且实现了。 要求 转到1.13+ 安装 go get -u github.com/hako/branca 例 package main import ( "fmt" "github.com/hako/branca" ) func main () { b := branca . NewBranca ( "supersecretkeyyoushouldnotcommit" ) // This key must be exactly 32 bytes long. // Encode String