Unpadded base64url of bytes (RFC 4648 §5, canonical).
The bytes to encode.
The unpadded base64url string (32 B → 43 chars).
const ph = b64urlEncode(crypto.sha256(tbsBytes(event))); Copy
const ph = b64urlEncode(crypto.sha256(tbsBytes(event)));
Unpadded base64url of bytes (RFC 4648 §5, canonical).