skwasjer / IbanNet

C# .NET IBAN validator, parser, builder and generator
Apache License 2.0
126 stars 31 forks source link

IBAN Passes validation when it shouldn't #20

Closed JeroenHildering closed 4 years ago

JeroenHildering commented 4 years ago

This IBAN DE41500105170123456789 passes the validation but it should not:

image

skwasjer commented 4 years ago

IbanNet does not support BBAN check digit validation out of the box, only IBAN check digits. There is an extension package (IbanNet.Extensions.Bban) in the works for this but especially German bank account numbers are problematic because there are tons of variations (by different banks/regions). There is currently no support for it yet.

Please create an feature request or contribute in that repo.

skwasjer commented 4 years ago

Added clarification in wiki:

https://github.com/skwasjer/IbanNet/wiki/IbanNet.Extensions.Bban