Skip to content

Commit

Permalink
Fix PASERK string lengths in README
Browse files Browse the repository at this point in the history
  • Loading branch information
francislavoie authored Feb 27, 2024
1 parent 0f19029 commit 0981512
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,14 @@ The PASETO spec dictates that you use Ed25519 keys, which are 64 bytes long. To

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

### Public key format

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

#### Generate a secret/public key pair
Expand Down

0 comments on commit 0981512

Please sign in to comment.