Skip to content

doc: make Web Crypto example spec compliant

subtle.sign is not supposed to support strings, and in most Web Crypto implementations, it does not. Passing a string as the data argument only works in Node.js, and users should not rely on that oddity. The Web Crypto spec requires the data argument to be a BufferSource, i.e., an ArrayBuffer or an ArrayBufferView.

Merge request reports

Loading