Example Code
Covers the core scenarios of the two types of "data security" keys:
- Data symmetric encryption key (AES-256-GCM)
- userSignature generation: construct the authentication Payload → AES-256-GCM encryption → Base64 output
- sessionKey decryption: Base64 decoding → split IV/ciphertext/tag → AES-256-GCM decryption → validate payload
- Data signature public/private key (RSASSA-PSS)
- Business data signature verification: use the public key delivered by SUD OpenPaaS to perform RSASSA-PSS signature verification on signed business data payloads such as
gameSignature
