Skip to content

Commit 3fcb260

Browse files
committed
Apply grammar suggestions
1 parent 5d379da commit 3fcb260

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/tutorial/client-side-encryption.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,20 +196,20 @@ Referencing Encryption Keys by an Alternative Name
196196

197197
While it is possible to create an encryption key every time data is encrypted,
198198
this is not the recommended approach. Instead, you should create your encryption
199-
keys depending on your use-case, e.g. by creating a user-specific encryption
199+
keys depending on your use case, e.g. by creating a user-specific encryption
200200
key. To reference keys in your software, you can use the keyAltName attribute
201201
specified when creating the key. The following example creates an encryption key
202202
with an alternative name, which could be done when deploying the application.
203203
The software then encrypts data by referencing the key by its alternative name.
204204

205-
Creating the encryption key
205+
Creating the Encryption Key
206206
~~~~~~~~~~~~~~~~~~~~~~~~~~~
207207

208208
To create the encryption key, create a client instance with encryption options
209209
and create a new data key. You can pass multiple alternate names for this key
210210
and later reference the key by these alternate names instead of the key ID.
211211
Creating a new data encryption key would typically be done on initial deployment,
212-
but depending on your use-case you may want to use more than one encryption key.
212+
but depending on your use case you may want to use more than one encryption key.
213213

214214
.. code-block:: php
215215

@@ -231,10 +231,10 @@ but depending on your use-case you may want to use more than one encryption key.
231231
$client = new Client();
232232
$clientEncryption = $client->createClientEncryption($clientEncryptionOpts);
233233

234-
// Create an encryption key with an alternate name.
234+
// Create an encryption key with an alternate name
235235
$keyId = $clientEncryption->createDataKey('local', ['keyAltNames' => ['altname']]);
236236

237-
Using an encryption key by alternate name
237+
Using an Encryption Key by Alternate Name
238238
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
239239

240240
To use an alternate name when referencing an encryption key, use the

0 commit comments

Comments
 (0)