Authentication – How to ensure that nobody regenerates my barcodes based on the numbers below the code?

The questions are pretty self-explanatory.

One particular solution that I had in mind was encrypting the number written directly below the barcode and using that encrypted number to generate the barcode. Can someone get this encrypted number with the barcode?

Any help in this matter would be appreciated.