Skip to main content
Glama
crossPlatformSha256.jsโ€ข933 B
import { Sha256 as WebCryptoSha256 } from "./webCryptoSha256"; import { Sha256 as JsSha256 } from "@aws-crypto/sha256-js"; import { supportsWebCrypto } from "@aws-crypto/supports-web-crypto"; import { locateWindow } from "@aws-sdk/util-locate-window"; import { convertToBuffer } from "@aws-crypto/util"; var Sha256 = /** @class */ (function () { function Sha256(secret) { if (supportsWebCrypto(locateWindow())) { this.hash = new WebCryptoSha256(secret); } else { this.hash = new JsSha256(secret); } } Sha256.prototype.update = function (data, encoding) { this.hash.update(convertToBuffer(data)); }; Sha256.prototype.digest = function () { return this.hash.digest(); }; Sha256.prototype.reset = function () { this.hash.reset(); }; return Sha256; }()); export { Sha256 }; //# sourceMappingURL=crossPlatformSha256.js.map

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/consigcody94/office-whisperer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server