AES Encryption PHP to NodeJS?
问题 I am in process of moving a small project from PHP to NodeJS that includes a small part of AES Encryption. As PHP code works fine, it goes as function decysek($data, $app_key) { $output = openssl_decrypt(base64_decode($data), 'AES-256-ECB', $app_key, OPENSSL_RAW_DATA); return $output; } function decyGetBillData($rek , $data , $decrypted_sek){ $decrypted_rek = openssl_decrypt(base64_decode($rek), 'AES-256-ECB', $decrypted_sek, OPENSSL_RAW_DATA); $decrypted_data = openssl_decrypt(base64_decode(