Registry / auth / o1egl-paseto

o1egl-paseto

JSON →
library1.0.0gogounverified

Package paseto provides a Go implementation of PASETO, a secure alternative to the JOSE standards (JWT, JWE, JWS).

go get github.com/o1egl/paseto
INSTALL
IMPORT
SIG · O1EGL-PASETO
O
o1egl-paseto
authgov1.0.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
github.com/o1egl/paseto

Creates a PASETO v2 token using symmetric encryption.

package main import ( "fmt" "github.com/o1egl/paseto" ) func main() { v2 := paseto.NewV2() token, err := v2.Encrypt([]byte("symmetric-key"), "payload", nil) if err != nil { panic(err) } fmt.Println(token) }
Debug
Known issues
gotchaVersion 1.0.0 uses PASETO v1 and v2; v2 is recommended for new projects.
fix
Use paseto.NewV2() for modern PASETO tokens.
affects: >=1.0.0
Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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