Created
January 15, 2024 23:19
-
-
Save sn0opy/503f37fecf82e38871aface9f5b4db1f 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
import random | |
if __name__ == "__main__": | |
countrynum = "121400" # de | |
bankcode = "10020000" | |
for i in range(1, 25): | |
accno = str(random.randrange(1000000000, 1999999999)) | |
bban = bankcode + accno | |
checksummod = int(bban + countrynum) % 97 | |
cg = 98 - checksummod | |
print("DE" + "{:02d}".format(cg) + bban) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment