360 Secure SkillHub
360 安全技能中心

axiom-iban-validator

对 IBAN 执行格式与 mod-97 校验和验证,按国家校验长度,去除空格和连字符并返回 BBAN 拆解。提供命令行与 Python 函数两种调用方式,纯标准库实现,附带单元测试,不核实账户是否真实存在。

分类:效率
kofna3369
kofna3369
热度 16.48
最近更新 2026-06-15 10:49:03

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add kofna3369/axiom-iban-validator
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
axiom-iban-validator
description
IBAN validator — check IBAN format and mod-97 checksum for 100+ countries. Use when you need to validate international bank account numbers. Pure stdlib, no LLM.
version
0.1.2
license
Apache-2.0

axiom-iban-validator

Version: 0.1.2 Axioma Tools

Validates IBANs using the mod-97 algorithm with country-specific length checks.

What this skill does

  • Mod-97 checksum validation
  • Country-specific length check (FR=27, DE=22, GB=22, etc.)
  • Strips spaces/dashes from input
  • Returns BBAN breakdown

When to use this skill

  • ✅ Validate IBAN before payment submission
  • ✅ Audit customer bank data
  • ✅ Pre-validate in payment forms
  • ❌ Verify if the account actually exists (separate API)

Usage

python3 axiom_iban_validator.py "FR76 3000 6000 0112 3456 7890 189"
python3 axiom_iban_validator.py --country FR --number "3000600011234567890189"
from axiom_iban_validator import validate_iban
validate_iban('FR7630006000011234567890189')  # True
# Returns: {valid, country, bban, checksum_ok, length_ok}

Validation

Check Status
Unit tests 20+ cases
Performance <100ms
Security Pure stdlib, no injection
Determinism Byte-to-byte stable
License Apache-2.0

Last updated: 2026-06-14