calculate_check_digits()

smartfaker.iban.calculate_check_digits(country, bban)

Compute the two-digit IBAN check digits using MOD-97 arithmetic.

Parameters:
  • country – ISO 3166-1 alpha-2 country code (e.g. "DE").

  • bban – The Basic Bank Account Number portion of the IBAN.

Returns:

Two-character string of check digits (zero-padded, e.g. "04").