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
You can also create a `CryptographyClient` to enable cryptographic operations (encrypt/decrypt, wrap/unwrap, sign/verify) using a particular key.
77
+
You can also create a `CryptographyClient` to perform cryptographic operations (encrypt/decrypt, wrap/unwrap, sign/verify) using a particular key.
78
78
79
79
```python
80
80
from azure.keyvault.keys.crypto import CryptographyClient
@@ -108,7 +108,7 @@ async with client:
108
108
109
109
### Create a key
110
110
111
-
In `azure-keyvault` you could create a key by using `KeyVaultClient`'s `create_key` method, which required a vault endpoint, key name, and key type. This method returned a `KeyBundle`contianing the key.
111
+
In `azure-keyvault` you could create a key by using `KeyVaultClient`'s `create_key` method, which required a vault endpoint, key name, and key type. This method returned a `KeyBundle`containing the key.
112
112
113
113
```python
114
114
# create an RSA key
@@ -131,16 +131,18 @@ key = key_bundle.key
131
131
Now in `azure-keyvault-keys` there are multiple ways to create keys. You can provide a key name and type to the general `create_key` method, or provide just a name to `create_rsa_key` or `create_ec_key`. These methods all return the created key as a `KeyVaultKey`.
132
132
133
133
```python
134
+
from azure.keyvault.keys import KeyType, KeyCurveName
Now in `azure-keyvault-keys` you can perform these cryptographic operations by using a `CryptographyClient`. The key used to create the client will be used for these operations.
255
+
Now in `azure-keyvault-keys` you can perform these cryptographic operations by using a `CryptographyClient`. The key used to create the client will be used for these operations. Cryptographic operations are now performed locally by the client, rather than remotely by Key Vault.
254
256
255
257
```python
256
258
from azure.keyvault.keys.crypto import CryptographyClient, EncryptionAlgorithm
0 commit comments