Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
id-resolver
Advanced tools
中国身份证号码解析器,传入身份证号,返回 【户籍地】【出生年月】【性别】
npm i -S id-resolver
var idResolver = require('id-resolver');
//只处理 18位字符串
console.log(idResolver.get('430421197710177894'));
// { locale: '湖南省 衡阳市 衡阳县', birthday: moment("1977-10-17T00:00:00.000"), sex: '男' }
console.log(idResolver.get('45222319950814004X'));
// { locale: '无对应数据', birthday: moment("1995-08-14T00:00:00.000"), sex: '女' }
号码的结构 公民身份号码是特征组合码,由十七位数字本体码和一位校验码组成。排列顺序从左至右依次为:六位数字地址码,八位数字出生日期码,三位数字顺序码和一位数字校验码。
(1)前六位数:表示编码对象常住户口所在县(市、旗、区)的行政区划代码,按GB/T2260的规定执行。
(2)第714位数字表示:出生年、月、日;
(3)第15、16位数字表示:所在地的派出所的代码;
(4)第17位数字表示性别:奇数表示男性,偶数表示女性;
(5)第18位数字是校检码:校检码可以是09的数字,X是罗马数字的10。
45222319950814004X 性 别: 女 出生日期: 1995年08月14日 发 证 地: 广西壮族自治区 柳州地区 鹿寨县
你查询的是 45222319950814004X(身份证号正确) 发证地:广西壮族自治区 柳州地区 鹿寨县 生 日:1995年8月14日 (21周岁) 性 别:女 说明:因发证地中的红字地区已被撤并,行政区划代码452223已撤销,新发的身份证中不再使用。
FAQs
A discord.js id resolver.
The npm package id-resolver receives a total of 0 weekly downloads. As such, id-resolver popularity was classified as not popular.
We found that id-resolver demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.