@translated/lara
Version:
Official Lara SDK for JavaScript and Node.js
12 lines (11 loc) • 396 B
TypeScript
import type { PortableCrypto } from "./portable-crypto";
/** @internal */
export declare class BrowserCrypto implements PortableCrypto {
private readonly subtle;
constructor();
/**
* MD5 in browser is not supported, so we use SHA-256 instead and return the first 16 bytes
*/
digest(data: string): Promise<string>;
hmac(key: string, data: string): Promise<string>;
}