n8n-nodes-wechat
Version:
This is an n8n-wechat-nodes Library
10 lines (9 loc) • 585 B
TypeScript
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>;
}