mod10:使用 Luhn 算法验证识别号

时间:2021-06-18 23:56:46
【文件属性】:
文件名称:mod10:使用 Luhn 算法验证识别号
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-18 23:56:46
nodejs luhn-algorithm JavaScript Luhn 算法能为我们做什么? 验证各种身份号码,例如信用卡号码或 IMEI 号码。 Luhn 算法不能为我们做什么? 防止恶意攻击,Luhn algorightm 所做的就是检查数字,特别是检查数字缺失等拼写错误。 安装 $ npm install --save mod10 用法 var mod10 = require ( 'mod10' ) ; // will return true if the identification number is valid mod10 ( 30569309025904 ) ; 执照 麻省理工学院 :copyright:
【文件预览】:
mod10-master
----.jshintrc(227B)
----.gitignore(75B)
----package.json(927B)
----.travis.yml(72B)
----Gruntfile.js(999B)
----LICENSE(1KB)
----index.js(1KB)
----README.md(1KB)
----.yo-rc.json(26B)
----.gitattributes(12B)
----test()
--------test.js(964B)
----.editorconfig(188B)

网友评论