There's nothing inherently illegal about systems to read and write swipecards.
Many companies use them for all kinds of purposes, from customer reward programs to security access clearance.
The systems to read and write them are readily available on the open market.