Interfacing Barcode scanner with arduino

hey guys i am having a symbol rs232 barcode scanner and i know how how to connect it but it scans any barcode i want it to scan only encrypted barcode and when it scans it should turn on a led

how to write the code for scanning encrypted barcode

Surely it has to scan all barcodes doesn't it?

How can it tell whether the barcode is encrypted or not until it has scanned it?

Google for the manufacturer's instruction manual for your scanner. See what options you have.

it does not need to scan any barcode only encrypted barcodes

i have googled everything but cant find anything