01 · Custody
The token in our database is useless without your secret.
Amazon refresh tokens are sealed with AES-256-GCM and a scrypt-derived key. The key material arrives on the request as x-amazon-token-secret and is never written down.
- version
- 1 byte
- salt
- 32 bytes
- iv
- 16 bytes
- auth tag
- 16 bytes
- ciphertext
- variable