panva / paseto

PASETO (Platform-Agnostic SEcurity TOkens) for Node.js with no dependencies
MIT License
409 stars 26 forks source link

Characters that Paseto uses to create tokens #12

Closed 6lackcoral closed 3 years ago

6lackcoral commented 3 years ago

Hi, so this is what a common paseto token looks like: v2.local.rRfHP25HDj5Pda40FwdTsGcsEMoQAKM6ElH6OhCon6YzG1Pzmj1ZPAHORhPaxKQo0XLM5LPYgaevWGrkEy2Os3N68Xee_Me9A0LmbMlV6MNVt-UZMos7ETha

The characters used are:

I was wondering if a token could contain a slash (/, \), maybe even other characters? Thanks

panva commented 3 years ago

No. And the why you’ll find in the source specification.