in packages/sha256-browser/src/crossPlatformSha256.ts [11:17]
constructor(secret?: SourceData) {
if (supportsWebCrypto(locateWindow())) {
this.hash = new WebCryptoSha256(secret);
} else {
this.hash = new JsSha256(secret);
}
}