CraigStuntz / paseto4j

Paseto implementation for Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java implementation of PASETO: Platform-Agnostic Security Tokens

License Build Status

WARNING: IMPLEMENTATION IS A PRE-RELEASE.

Implementation of PASETO library written in Java

Paseto is everything you love about JOSE (JWT, JWE, JWS) without any of the many design deficits that plague the JOSE standards.

Contents

What is Paseto?

Paseto (Platform-Agnostic SEcurity TOkens) is a specification and reference implementation for secure stateless tokens.

Key Differences between Paseto and JWT

Unlike JSON Web Tokens (JWT), which gives developers more than enough rope with which to hang themselves, Paseto only allows secure operations. JWT gives you "algorithm agility", Paseto gives you "versioned protocols". It's incredibly unlikely that you'll be able to use Paseto in an insecure way.

Caution: Neither JWT nor Paseto were designed for stateless session management. Paseto is suitable for tamper-proof cookies, but cannot prevent replay attacks by itself

Supported Paseto Versions

Version 2

Version 2 (the recommended version by the specification) is supported for signing.

Version 1

Not supported

About

Paseto implementation for Java

License:MIT License


Languages

Language:Java 100.0%