The simplest way is to use a barcode font for the field in question