Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhaochuninhefei/gmgo-cmd
https://github.com/zhaochuninhefei/gmgo-cmd
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/zhaochuninhefei/gmgo-cmd
- Owner: zhaochuninhefei
- License: mulanpsl-2.0
- Created: 2023-03-30T07:53:44.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-11T10:02:45.000Z (9 months ago)
- Last Synced: 2024-11-05T18:09:06.548Z (2 months ago)
- Language: Go
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
gitee.com/zhaochuninhefei/gmgo-cmd
====================gmgo的命令行工具
# 编译
```sh
# cd 到当前目录后,执行编译脚本,并将编译后的可执行文件拷贝到${GOPATH}/bin目录下
# 默认${GOPATH}/bin已经加入本地环境变量PATH中
./build_copy_go_path.sh
```# 查看gmgo生成的x509证书
目前支持sm2/ecdsa/ecdsa_ext三种签名算法。```sh
# 查看sm2证书
gmgo-cmd x509 --text --in testdata/sm2_sign_cert.cer# 查看ecdsa证书
gmgo-cmd x509 --text --in testdata/ecdsa_sign_cert.cer# 查看ecdsaext证书
gmgo-cmd x509 --text --in testdata/ecdsaext_sign_cert.cer```
# 生成口令
```sh
$ gmgo-cmd pwd -h
使用gmgo的口令生成器,支持大小写字母、数字和部分特殊符号(~!@#$%^&_-+=|:;)Usage:
gmgo-cmd pwd [flags]Flags:
-d, --display @ 显示口令,包含@时严格匹配口令键值,不包含`@`时作为口令键值的后缀查找,传入all时显示全部口令
-h, --help help for pwd
-k, --key 用户名@目标域名 口令保存键值,格式: 用户名@目标域名,如`[email protected]`
-l, --length int 口令长度(至少为4)
-s, --strength int 口令强度(1:大小写字母+数字, 2:大小写字母+数字+特殊符号, 默认:2)```
# JetBrains support
Thanks to JetBrains for supporting open source projects.