/** * 處理 NewebPay 所需的加密與雜湊服務。 */ export declare class EncryptionService { /** * 使用 AES-256-CBC 加密資料。 * * @param data - 要加密的資料物件。 * @param hashKey - HashKey(必須為 32 bytes)。 * @param hashIV - HashIV(必須為 16 bytes)。 * @returns 加密後的字串(hex 格式,大寫)。 * @throws {ValidationError} 當 hashKey 或 hashIV 長度不符合要求時。 */ encrypt(data: Record, hashKey: string, hashIV: string): string; /** * 使用 SHA256 雜湊資料。 * * @param encryptedData - 加密後的資料字串。 * @param hashKey - HashKey。 * @param hashIV - HashIV。 * @returns 雜湊後的字串(大寫)。 */ hash(encryptedData: string, hashKey: string, hashIV: string): string; }