Replicating a Magstripe?
The basic hardware behind magstripes is really the same as a tape recorder.  It is divided into several tracks, and has a strobe track to sync everything up.  You can buy the reader hardware, and I am aware of variants that are designed for writing.  Check digikey.  Make sure the reader/writer hardware you buy can read/write the track you intend.