If you are here to see how auth context is consumed here, jump to
Decrypt.
Prerequisites
authContext
is required. This is the result from the authentication flow.
Installation
Example Walkthrough
π Encrypt & Decrypt Flow Alice can encrypt without authentication, Bob must authenticate to decrypt.- Alice: Encrypts β No AuthContext needed
- Bob: Decrypts β Requires AuthContext
π©πΌ Alice
Alice encrypts data without needing authenticationCreate Aliceβs Account
Generate Aliceβs account using a random private key. Alice only needs an account for encryption - no authentication required.π§π»ββοΈ Bob
Bob needs authentication to decrypt dataCreate Bobβs Account
Generate Bobβs account using a random private key. Bob will need this account for authentication to decrypt data.π©πΌ Alice Defines Access Rules
Alice decides who can decrypt her encrypted dataSee SDK Reference for more details on the Access Control Conditions Builder. Access Control Conditions Builder Reference