Skip to content

doc: update crypto.createSecretKey accepted types

This updates the crypto.createSecretKey accepted types.

cc @tniessen

const encoder = new TextEncoder()
crypto.createSecretKey(Buffer.from('foo'))
crypto.createSecretKey(encoder.encode('foo'))
Checklist

Merge request reports

Loading