faker

https://github.com/stympy/faker

Ruby

A library for generating fake data such as names, addresses, and phone numbers.

Faker::Bank.iban_checksum

Calculates the mandatory checksum in 3rd and 4th characters in IBAN format
source: https://en.wikipedia.org/wiki/International_Bank_Account_Number#Validating_the_IBAN

Source | Google | Stack overflow

Edit

git clone [email protected]:stympy/faker.git

cd faker

open lib/faker/default/bank.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Faker--Bank-iban_checksum-for-pr


# Commit to git

git add lib/faker/default/bank.rbgit commit -m "better docs for Faker::Bank.iban_checksum"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Faker--Bank-iban_checksum-for-pr

hub pull-request


# Celebrate!