ComputeHash2 Method
Definition
- Namespace
- Cuemon.AspNetCore.Authentication.Digest
- Assemblies
- Cuemon.AspNetCore.Authentication.dll
ComputeHash2(string, string)
Computes a by parameter defined UnkeyedCryptoAlgorithm hash value of the required values for the HTTP Digest access authentication HA2.
public virtual string ComputeHash2(string method, string entityBody = null)
Parameters
methodstringThe HTTP method to include in the HA2 computed value.
entityBodystringThe entity body to apply in the signature when qop is set to auth-int.
Returns
- string
A string in the format of H(
method:DigestUri) OR H(method:DigestUri:H(entityBody)). H is determined by DigestAlgorithm.