Unfortunately Node.js webcrypto also does this and that makes it difficult to use this library to get isomorphic encryption across browser, nodejs and react-native.
It would be possible to accommodate this inconsistency in the code. Would that be a change(PR) that would be considered?
The W3C standard specifies that Pbkdf2Params should have a hash attribute in the format:
But looking at MDN it's specified to just take a string as the value of
hash
Unfortunately Node.js webcrypto also does this and that makes it difficult to use this library to get isomorphic encryption across browser, nodejs and react-native.
It would be possible to accommodate this inconsistency in the code. Would that be a change(PR) that would be considered?