/** * aes算法加密/解密 */ /// interface EncryptReturn { keyStr: string; ivStr: string; encryptedData: string; rawBuffer: Buffer; base64Str: string; } export declare class AES { private static keyStr; private static algorithm; private static ivStr; private static ivByte; private static _instance; private cipher; constructor(); static get instance(): AES; /** * aes 加密 * @param {string} plaintext - 需要加密的字符串 */ aesEncrypt(plaintext: string): EncryptReturn; /** * aes 解密 * @param {string} encryptedStr - 加密后的字符串 */ aesDecrypt(encryptedStr: string): string; } export {};