This is a great suggestion Mr. Garhwal. The use of barcode would surely stop transfer of tickets which has lately come to a pause by the new rule of ID cards for SL class.
But lastly, it all depends on the viability of railways for the project. TTe's would try desperately to avoid such devices as many of them are involved in corrupt practices.