This PR updates getWebCrypto() to access globalThis.crypto exclusively since Node 20 supports this as a stable API access points. No attempts are made to import from node:crypto anymore.
This is a bigger PR because getWebCrypto() becomes synchronous, which spiders out into a few files that use WebCrypto. I hope I don't regret this...
This PR updates
getWebCrypto()
to accessglobalThis.crypto
exclusively since Node 20 supports this as a stable API access points. No attempts are made to import fromnode:crypto
anymore.This is a bigger PR because
getWebCrypto()
becomes synchronous, which spiders out into a few files that useWebCrypto
. I hope I don't regret this...Fixes #532.