UNPKG

wx-ding-aes

Version:

Wechat open platform, Enterprise wechat and DingTalk AES decode library.

16 lines (15 loc) 601 B
/** * @description 加密方法 * @author beary * @param text 需要加密的文本 * @param encodingAESKey AES 秘钥 * @param key 放在加密内容的尾部作为校验的字符串,如果不是开发企业微信或者钉钉,则不是必须的 */ export declare const encode: (text: string, encodingAESKey: string, key?: string) => string; /** * @description 解密方法 * @author beary * @param text 需要解密的密文,必须是 base64 编码的 * @param encodingAESKey AES 密钥 */ export declare const decode: (text: string, encodingAESKey: string, key?: string) => string;