Steven-Cai/stripe-snoop ? reverse-engineered prompt
Reverse engineered prompt
Build me a small command line app that can read magnetic stripe data and turn the raw bits into something readable.
I want it to handle Track 1, 2, and 3, accept input from a file or standard input, and print out the decoded card details in a clean way. It should also try to recognize what kind of card it is, like a credit card, driver’s license, hotel card, or other common stripe formats, and show useful fields like account number, expiry, and any issuer info it can infer.
If you can, include a simple raw mode that just dumps the bit stream, plus a way to generate a valid Track 2 sample string for testing, and a little helper to validate account numbers with the usual check digit logic. Keep it working from the terminal, and make it easy to build and run on a modern system. If anything is unclear, look up current docs online and make reasonable choices.
Are you gonna build this?
make sure you review the code using coderabbit