Is there credit card tokenization services from which you can get a token identifying permanently a card without the possibility to make a payment?
https://stripe.com/docs/api/tokens/create_card (notice the request has no charge, but the response contains a fingerprint).
To state the obvious: it's not determinstic outside of Stripe, and there's no way to revert it, or even iterate over all CC numbers and brute force the space. You'd need Stripe's secret, e.g. assuming they use HMAC.