Registry / crypto / go-paseto

go-paseto

JSON →
library1.6.0gogounverified

A Go implementation of PASETO, a secure alternative to JWT that avoids common design flaws.

go get aidanwoods.dev/go-paseto
INSTALL
IMPORT
SIG · GO-PASETO
G
go-paseto
cryptogov1.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

paseto
aidanwoods.dev/go-paseto

Creates and encrypts a PASETO token using a symmetric key.

package main import ( "fmt" "aidanwoods.dev/go-paseto" ) func main() { secretKey := paseto.NewV4SymmetricKey() token, err := paseto.NewToken().SetIssuedAt(nil).V4Encrypt(secretKey, nil, nil) if err != nil { panic(err) } fmt.Println(token) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.6.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
33 hits · last 30 days
node
28
OpenAI (training)
1
Resources
go-paseto — go get go-paseto · libregistry