Skip to content

PII and encryption

For AU/NZ v2 payslips, use the SDK preparation helper for the payslip’s country by default. It selects the PII format and schema, then encrypts locally. If you use the low-level APIs, put PII in a pipe-delimited string before encryption. Use the format that matches the payslip’s country.

Country Schema PII format
Australia au.payslip.v2 AU2
New Zealand nz.payslip.v2 NZ2

Each format has 8 fields in a fixed sequence. Start the string with the format name and a pipe. Then add the 8 fields, with a pipe between each field. If a field has no value, keep the pipe and send an empty field. Then the position of each field stays the same. All fields are optional.

Send each value as the payslip shows it. Do not remove masks, spaces or hyphens.

  • Encode the complete string as UTF-8. Keep it at 1,024 bytes or less.
  • Fields must not contain |, control or formatting characters, or line or paragraph separators.
  • Put the address on one line.

AU2 and NZ2 use the character rules of the machine-readable PII text profile. The profile also gives test vectors.

Give the address to the SDKs in parts. The SDKs join the parts into one address field.

Encrypt the PII with AES-256-GCM (Galois/Counter Mode) and a 256-bit symmetric key. The fields below are the encryption metadata. Send this metadata with each registration.

Each issuer has a separate 256-bit key. You make your key on the Encryption keys page in Verifiabl.

One key encrypts and decrypts. You encrypt the PII with the key on your own infrastructure. The verification service holds a copy of the key, and decrypts the PII with it during a verification. The registration service holds no key.

Keep the key in a key management service (KMS) or a secrets manager. Do not put it in source code or logs. The SDK examples read the raw key bytes from VERIFIABL_ENCRYPTION_KEY_BASE64.

FieldValueEncoding
iv96-bit initialisation vector (nonce)base64url
tag128-bit authentication tagbase64url

Encode ciphertext, IV and tag as unpadded base64url, not standard base64. Use your platform’s base64url encoder; the SDKs handle this automatically.

Make a new random 96-bit IV for each record. Use a secure random source for the 12 bytes. Use each IV for one record only. Do not use a fixed IV.

The SDKs generate a fresh IV for every encryption. Reuse returns 409 IV_REUSED for a single registration or an error for that record in a batch. Encrypt the record again and rebuild its barcode before retrying.

An idempotent replay does not return IV_REUSED. If you send the same verifiabl_reference with the same content, the API returns the idempotent result. Refer to Idempotency and retries.

Rotate your key in Verifiabl at least every 24 months. A rotation makes a new active key. Encrypt new payslips with the new key.

Payslips that you encrypted with an earlier key continue to verify for 7 years after the rotation.

If another person may have your key, rotate it immediately. Then contact Verifiabl support.

The cURL examples target sandbox and use placeholder encryption values. Replace every placeholder and example reference before registering real data.