A method of storing limited amounts of data in a linear array of lines and spaces (1D barcode) or larger amounts in a rectangular array (2D barcode).