<PackageReference Include="Azure.Storage.Common" Version="12.24.0" />

StorageSharedKeyCredential

A StorageSharedKeyCredential is a credential backed by a Storage Account's name and one of its access keys.
public string AccountName { get; }

Gets the name of the Storage Account.

public StorageSharedKeyCredential(string accountName, string accountKey)

Initializes a new instance of the StorageSharedKeyCredential class.

protected static string ComputeSasSignature(StorageSharedKeyCredential credential, string message)

Generates a base-64 hash signature string for an HTTP request or for a SAS.

public void SetAccountKey(string accountKey)

Update the Storage Account's access key. This intended to be used when you've regenerated your Storage Account's access keys and want to update long lived clients.