@agnostack/next-shopify
Version:
Please contact agnoStack via info@agnostack.com for any questions
22 lines • 821 B
TypeScript
export function generateHMAC(message: any, apiSecret: any, digest?: string): Buffer & string;
export function compareHashes(digestable: any, checkSumable: any, encoding?: string): boolean;
export class CryptoHandler {
static getInstance(config: any): any;
constructor(enforcer: any, config: any);
type: string;
config: any;
get isInitialized(): boolean;
initialize(): void;
cryptoConfig: {
publicKey: string;
privateKey: string;
} | undefined;
decrypt(encrypted: any): any;
encrypt(decrypted: any): string;
verifyPublicKey(encryptedPublicKey: any, sharedSecret: any): boolean;
[singleton]: CryptoHandler | undefined;
}
export function getNonce(length?: number): string;
declare const singleton: unique symbol;
export {};
//# sourceMappingURL=crypto.d.ts.map