D2lvalenceElixir.Auth.D2LSigner.check_hash
You're seeing just the function
check_hash
, go back to D2lvalenceElixir.Auth.D2LSigner module for more information.
Specs
Verify that a given digest value was produced by a compatible D2LSigner
given your provided base string and key.
key_string
and base_string
must be utf-8 encoded
Examples
iex> D2lvalenceElixir.Auth.D2LSigner.check_hash("qauJsGg4cG2iTriPq1N1cfElwYDs3vIATlNwIbFqUM0", [104, 111, 108, 97, 195, 177], "hola")
true
iex> D2lvalenceElixir.Auth.D2LSigner.check_hash("hj6sobenlkIElwSJKch0LgaPYU-fP3vlScIoWz-pN6U", "hola", "hola")
true