UNPKG

n8n-nodes-wechat

Version:
10 lines (9 loc) 585 B
export default class { private static pkcs7Decode; private static pkcs7Encode; static checkSignature(signature: string, token: string, timestamp: string, nonce: string, encrypt?: string): boolean; static signature(token: string, timestamp: string, nonce: string, encrypt?: string): string; static decrypt(text: string, encodingAESKey: string): string; static encrypt(text: string, encodingAESKey: string, appId?: string): string; static encryptResponse(text: string, encodingAESKey: string, token: string, appId: string): Record<string, string | number>; }