Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

fix: allow passing an algorithm name to digest #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jul 25, 2018

  1. fix: allow passing an algorithm name to digest

    The examples on [MDN][1] show strings passed as the first
    argument. I've tested that it actually works in browsers.
    
    The [specification][2] shows `AlgorithmIdentifier` as the first
    argument to `digest` and `AlgorithmIdentifier` is defined as
    `typedef (object or DOMString) AlgorithmIdentifier;`
    
    [1]: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest
    [2]: https://www.w3.org/TR/WebCryptoAPI/#subtlecrypto-interface
    lddubeau committed Jul 25, 2018
    Configuration menu
    Copy the full SHA
    792db92 View commit details
    Browse the repository at this point in the history