Skip to content

Commit 72c5fe0

Browse files
authored
Merge pull request #7 from francislavoie/patch-1
Fix PASERK string lengths in README
2 parents 0f19029 + 0981512 commit 72c5fe0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,14 @@ The PASETO spec dictates that you use Ed25519 keys, which are 64 bytes long. To
190190

191191
Type | Expected format | Length
192192
-------------|------------------------------------------------------------------|-----------------
193-
`PASERK` | `k4.secret.[key data as base64url]` | 52 characters
193+
`PASERK` | `k4.secret.[key data as base64url]` | 96 characters
194194
`Uint8Array` | `[0x6b, 0x34, 0x2e, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, ...key]` | 41 bytes
195195

196196
### Public key format
197197

198198
Type | Expected format | Length
199199
-------------|------------------------------------------------------------------|---------------
200-
`PASERK` | `k4.public.[key data as base64url]` | 52 characters
200+
`PASERK` | `k4.public.[key data as base64url]` | 53 characters
201201
`Uint8Array` | `[0x6b, 0x34, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, ...key]` | 41 bytes
202202

203203
#### Generate a secret/public key pair

0 commit comments

Comments
 (0)