aio Package

Classes

CryptographyClient

Performs cryptographic operations using Azure Key Vault keys.

This client will perform operations locally when it's intialized with the necessary key material or is able to get that material from Key Vault. When the required key material is unavailable, cryptographic operations are performed by the Key Vault service.

Create a CryptographyClient


   # create a CryptographyClient using a KeyVaultKey instance
   key = await key_client.get_key(key_name)
   crypto_client = CryptographyClient(key, credential)

   # or a key's id, which must include a version
   key_id = "https://<your vault>.vault.azure.net/keys/<key name>/fe4fdcab688c479a9aa80f01ffeac26"
   crypto_client = CryptographyClient(key_id, credential)

   # the client and credential should be closed when no longer needed
   # (both are also async context managers)
   await crypto_client.close()
   await credential.close()

EncryptResult

The result of an encrypt operation.

SignResult

The result of a sign operation.

WrapResult

The result of a wrap key operation.

Enums

EncryptionAlgorithm

Encryption algorithms

KeyWrapAlgorithm

Key wrapping algorithms

SignatureAlgorithm

Signature algorithms, described in https://tools.ietf.org/html/rfc7518