Created
January 15, 2024 23:19
-
-
Save sn0opy/503f37fecf82e38871aface9f5b4db1f to your computer and use it in GitHub Desktop.
Revisions
-
sn0opy created this gist
Jan 15, 2024 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ 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)