added authentication
authentication finished
added barcode encryption