Last active
June 7, 2022 19:14
-
-
Save mschmitt/d778e73a5c410573d6e5cc2cf552b195 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# https://mastodon.online/@unixtippse/108437781336003434 | |
from schwifty import IBAN | |
from maskprocessor import maskprocessor | |
masked_iban='DE0210010010000682?d?d?d?d' | |
for an_iban in maskprocessor(masked_iban): | |
try: | |
iban=IBAN(an_iban, validate_bban=True) | |
except: | |
pass | |
else: | |
print(iban) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment