Skip to content

Commit 8fa5b1c

Browse files
coderdanauxesis
authored andcommitted
docs(encrypting-examples): update README.md
Small tweaks to the formatting of encrypt example
1 parent 1c56600 commit 8fa5b1c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

packages/protect/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,12 @@ To start encrypting data, add the following to `src/index.ts`:
226226
import { users } from './protect/schema'
227227
import { 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

234236
if (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

0 commit comments

Comments
 (0)