I have the german "Bankleitzahl" and the account number, now I would like to calculate the corresponding IBAN with javascript, so I don't have to enter my banking-data on an untrustworthy website.
How would I calculate this with javascript on my own client?
I have found a project in github https://github.com/arhs/iban.js that make checking of IBAN a very easy stuff.
Is something like:
<script src="iban.js"></script>
<script>
// the API is now accessible from the window.IBAN global object
IBAN.isValid('hello world'); // false
IBAN.isValid('BE68539007547034'); // true
</script>
Is licensed under the MIT license so you can check how it do the validation and try to use it to generate your IBAN.