You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** EXAMPLE DECRYPTION DATA*/constbody=req.bodyconst{data}=bodyconstdecrypted=awaitdecryptedDataClient(data,DecryptedKeys);const{users}=decryptedconst{id}=users/** EXAMPLE ENCRYPTINON DATA*/constdb=awaitdatabase('SELECT * FROM users WHERE id = $1',[id])constencrypted=awaitdecryptedDataClient(dbResult.rows[0].items,serverDecryptedDataKeys)
/** EXAMPLE SERVER DECRYPTION DATA*/import{randomUUIDv7}from'bun';constbody=req.bodyconst{data}=bodyconstdecrypted=awaitquantDecryptedData(data,DecryptedKeys);const{users}=decryptedconst{id, first_name last_name}=users/** EXAMPLE SERVER ENCRYPTINON DATA*/consttoken=randomUUIDv5()constdb=awaitdatabase('INSERT INTO users (first_name,last_name,token) VALUES ($1,$2,$3)',[awaitquantEncryptedData(first_name,serverDecryptedDataKeys),awaitquantEncryptedData(last_name,serverDecryptedDataKeys),token])constencrypted=decryptedDataClient(token,serverDecryptedDataKeys)