IBAN验证校验和
如何获取一串Iban号码。我需要计算支票数字,但是字符太多。
这是一个示例iban:br 0012345678901234567890123
How to get a string of an IBAN number. I need to calculate the check digit, but there are too many characters.
This is an example IBAN: BR0012345678901234567890123
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“ noreferrer”>“验证i ban” 。如所述,只需遵循算法即可。
请按照下面的代码查看如何逐步进行验证。
注意: 计算模量需要。
可以简单地简单地缩短:
IBAN validation is described on the Wikipedia page under "Validating the IBAN". Just follow the algorithm as described.
Follow the code below to see how validation happens step-by-step.
Note: BigInt is required to calculate the modulo.
This can be shortened to simply: