360 Secure SkillHub
360 安全技能中心

axiom-iban-validator

核心功能:采用mod-97算法校验IBAN,支持百余个国家的国别长度检查,自动去除输入空格/短横线,返回BBAN拆分结果,纯标准库实现无LLM。典型场景:付款前验证IBAN、审计客户银行数据、支付表单预校验(无法验证账户真实存在)。输入为IBAN字符串或分国别+号码,输出布尔值或含验证状态的字典。

kofna3369
kofna3369
热度 16.02
最近更新 2026-06-15 10:49:03
分类:数据依赖:代码执行应用场景:财务 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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