File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -226,10 +226,12 @@ To start encrypting data, add the following to `src/index.ts`:
226226import { users } from ' ./protect/schema'
227227import { protectClient } from ' ./protect'
228228
229- const encryptResult = await protectClient .encrypt (' secret@squirrel.example' , {
230- column: users .email ,
231- table: users ,
232- })
229+ const encryptResult = await protectClient .encrypt (
230+ ' secret@squirrel.example' , {
231+ column: users .email ,
232+ table: users ,
233+ }
234+ )
233235
234236if (encryptResult .failure ) {
235237 // Handle the failure
@@ -247,7 +249,7 @@ The `encryptResult` will return one of the following:
247249// Success
248250{
249251 data : {
250- c : ' \\\\\\\\\\\\\\\\ x61202020202020472aaf602219d48c4a ...'
252+ c : ' mBbKmsMMkbKBSN}s1THy_NfQN892!dercyd0s ...'
251253 }
252254}
253255
You can’t perform that action at this time.
0 commit comments