• Stars
    star
    183
  • Rank 210,154 (Top 5 %)
  • Language
    Go
  • License
    MIT License
  • Created over 6 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

一个使用 golang 编写的大陆身份证生成器

idgen

一个使用 golang 编写的大陆身份证生成器,目前支持生成 姓名、身份证号、手机号、银行卡号、电子邮箱、地址信息 该工具部分代码从 java-testdata-generator 翻译而来,并添加了一些其他支持; 在此感谢原作者 binarywang

安装

安装请直接从 release 页下载预编译的二进制文件,并放到 PATH 下即可; docker 用户可以直接使用 docker pull mritd/idgen 拉取镜像;

  • 自行编译

确保已安装 go 1.14+,然后执行 make install 即可

运行模式

该工具目前支持两种运行方式:

终端模式

直接命令行运行二进制文件即可生成对应信息,生成后将自动复制到系统剪切板

~ idgen --help

This tool is used to generate Chinese name、ID number、bank card number、
mobile phone number、address and Email; automatically generate corresponding
text to the system clipboard after generation, and generate ID number by
default without sub-command

Usage:
  idgen [flags]
  idgen [command]

Available Commands:
  addr        Generate address information
  all         Generate all information
  bank        Generate bank card number
  email       Generate email address
  help        Help about any command
  idno        Generate ID number
  mobile      Generate mobile phone number
  name        Generate name
  server      Run as http server
  version     Print version

Flags:
  -h, --help      help for idgen
  -v, --version   Print version

Use "idgen [command] --help" for more information about a command.

服务器模式

使用 server 子命令将启动一个带有页面的 http 服务器用于浏览器访问, 同时还会启动一个 json api 接口用于其他程序调用

~ idgen server --help

Run a simple http server to provide page access and json data return.
When the -m option is not specified, both html and json support are enabled,
and the access address is as follows:

http://BINDADDR:PORT/        return a simple html page
http://BINDADDR:PORT/api     return json format data

Usage:
  idgen server [flags]

Flags:
  -h, --help            help for server
  -l, --listen string   http listen address (default "0.0.0.0")
  -m, --mode string     server mode(html/json)
  -p, --port int        http listen port (default 8080)

Global Flags:
  -v, --version   Print version

docker 用户直接运行 docker run -d -p 8080:8080 mritd/idgen 即可

More Repositories

1

dockerfile

some personally made dockerfile
HTML
2,070
star
2

mmh

Nothing, just a simple ssh tool.
Go
325
star
3

tpclash

Transparent proxy tool for Clash
Go
220
star
4

gitflow-toolkit

A simple toolkit for GitFlow.
Go
215
star
5

imgsync

Docker image sync tool.
Go
135
star
6

docker-library

kubernetes 相关 images 同步
Dockerfile
127
star
7

shell_scripts

常用的一些 shell 脚本
Shell
125
star
8

composes

常用的 docker-compose 文件
Smarty
110
star
9

gcr

Google container registry sync repo
107
star
10

rime

Rime config
88
star
11

bubbles

TUI components for Bubble Tea(Similar to the official bubbles 😊)
Go
82
star
12

ginmvc

Gin mvc template
Go
53
star
13

goadmission

Go
33
star
14

koolshare-gdddns

koolshare 固件 Godaddy ddns 插件
ASP
32
star
15

ktool

Shell
28
star
16

autobuild

Earthly Auto Build Repo
Earthly
25
star
17

mritd.me

十字路口,繁华街头......
HTML
22
star
18

chinaid

China ID card and other information generation library(中国大陆身份证号等信息生成库)
Go
16
star
19

wol

A simple WOL tool(一个简单地命令行 WOL 工具)
Go
16
star
20

s2h

A simple tool to convert socket5 proxy protocol to http proxy protocol
Go
13
star
21

touchid

macOS touchid authentication library
Go
9
star
22

promptx

A simple terminal prompt library
Go
9
star
23

swns

A simple plugin for kubectl to switch current context namespace.
Go
7
star
24

SSLCertTool

一个用于生成 Java SSL 信任文件的小工具,用于将指定地址 SSL 证书加入到 Java 信任列表中
Java
6
star
25

pre-receive

A simple gitlab commit message check hook.
Go
6
star
26

etcd-pack

build the deb package for etcd.
Shell
6
star
27

ddns

一个 go 编写的简单地 DDNS 工具, 目前支持 gandi、godaddy、namecom.
Go
6
star
28

consul-rpm

consul rpm
Shell
6
star
29

manjaro-rpi4

build manjaro system img for rpi4
Shell
5
star
30

poetbot

Telegram auto change name bot.
Go
5
star
31

init

Shell
5
star
32

tgsend

一个 Telegram 推送的小工具,用于调用 Bot API 发送告警等
Go
5
star
33

csi-archetype

kubernetes csi archetype
Go
5
star
34

ttsoft-gdddns

Koolshare Tomato 固件软件中心 Godaddy DDNS 插件
Shell
4
star
35

GitLabCI-TestProject

GitLabCI-TestProject
Java
4
star
36

mritd.com

这是个人博客的已发布静态文件仓库
HTML
3
star
37

kube-apiserver-proxy-pack

kubernetes api server proxy tool
Shell
3
star
38

crxdl

A simple chrome crx download tool
JavaScript
3
star
39

cfssl-pack

The cfssl installation package is built by makeself.
Shell
3
star
40

sshutils

ssh utils
Go
3
star
41

kubeadm-config-pack

kubeadm config
Shell
3
star
42

pd

一个简单的 Parallels Desktop 命令行的包装工具
Go
3
star
43

kubeadm-config

kubeadm config for set up Kubernetes HA cluster
Makefile
3
star
44

dnsacme

Simple tool to manage ACME Cert(Only Supported DNS-01)
Go
2
star
45

aidlock

Go
2
star
46

aidunlock

Go
2
star
47

SpringBootGracefulShutdownExample

Java
2
star
48

httpcmd

Run local commands via http
Go
2
star
49

etcdhosts-client

Client for coredns etcdhosts plugin
Go
2
star
50

caddybuilder

A simple build tool for caddy
Go
2
star
51

sgdict

搜狗词库自动抓取并转换 RIME 格式工具
Go
2
star
52

logger

Go
1
star
53

kubectl-plugins

kubectl custom plugins
Shell
1
star
54

bandwagonmon

Go
1
star
55

certmonitor

A simple website certificate monitor tool.
Go
1
star
56

linux-rpi4

rpi4 kernel
Shell
1
star
57

mmh-otp

simple otp command line tool
Go
1
star
58

httpprint

simple http request print tool
Go
1
star
59

DDNS_Tool

基于域名服务商的 DDNS 工具
Java
1
star
60

toq

😂😂😂
1
star
61

kubetool

Kubernetes toolkit.
Go
1
star
62

trojan-kubernetes

Kubernetes configuration templates for deploying trojan to a Kubernetes cluster.
1
star
63

socket2tcp

A simple tool for socket forwarding to remote tcp address
Go
1
star
64

dnsbot

Telegram Bot for etcdhosts
Go
1
star