<PackageReference Include="Azure.Storage.Blobs" Version="12.25.1" />

CustomerProvidedKey

Wrapper for an encryption key to be used with client provided key server-side encryption.

The algorithm for Azure Blob Storage to encrypt with. Azure Blob Storage only offers AES256 encryption.

public string EncryptionKey { get; }

Base64 encoded string of the AES256 encryption key.

public string EncryptionKeyHash { get; }

Base64 encoded string of the AES256 encryption key's SHA256 hash.

public CustomerProvidedKey(string key)

Creates a new CustomerProvidedKey for use in server-side encryption.

public CustomerProvidedKey(byte[] key)

Creates a new CustomerProvidedKey for use in server-side encryption.

public static bool op_Equality(CustomerProvidedKey left, CustomerProvidedKey right)

Check if two CustomerProvidedKeyInfo instances are equal.

public static bool op_Inequality(CustomerProvidedKey left, CustomerProvidedKey right)

Check if two CustomerProvidedKeyInfo instances are not equal.

public bool Equals(CustomerProvidedKey other)

Checks if two CustomerProvidedKeyInfo are equal to each other.