本站支持搜索的镜像仓库:Docker Hub、gcr.io、ghcr.io、quay.io、k8s.gcr.io、registry.gcr.io、elastic.co、mcr.microsoft.com

本镜像基于Luzifer/password项目构建,提供快速且安全的密码生成功能。该工具支持通过三种方式生成密码:Web界面、命令行工具(CLI)以及HTTP API,适用于需要高安全性密码的个人用户和开发场景。其核心设计专注于密码安全性,通过多重机制确保生成的密码难以被猜测或破解。
直接使用基于本项目构建的托管服务:
通过Docker容器运行命令行工具生成密码:
$ docker run --rm luzifer/password get -h generate and return a secure random password Usage: password get [flags] Flags: -d, --date prepend current date to XKCD style passwords (default true) -h, --help help for get -j, --json return output in JSON format -l, --length int length of the generated password (default 20) -n, --number int number of passwords to generate (default 1) -s, --special use special characters in your password -x, --xkcd use XKCD style password
# 生成默认长度(20字符)密码 $ docker run --rm luzifer/password get Vzupi4IaPbXmSQEX9A4e # 生成32字符包含特殊字符的密码 $ docker run --rm luzifer/password get -l 32 -s }d.sks(4J$2G]x52=k)WAN{M68LxEg}% # 生成XKCD风格密码(4个单词) $ docker run --rm luzifer/password get -l 4 -x 20190101.SeashellSupporterTumbleweedGeneral
使用Docker部署私有密码生成API服务:
$ docker run --rm -p 3000:3000 luzifer/password serve --port 3000
$ docker run --rm luzifer/password serve -h start an API server to request passwords Usage: password serve [flags] Flags: -h, --help help for serve --port int port to listen on (default 3000)
$ curl "http://localhost:3000/v1/getPassword?length=20&special=true" }d.sks(4J$2G]x52=k)WAN{M68LxEg}%
直接使用公共托管服务:
$ curl "[***]" 0M4L-1lT:@2&7,p,o-;
/v1/getPassword - 密码生成接口
date=true - 是否在XKCD风格密码前添加日期(默认true)length=20 - 密码长度(API支持4-128字符,更长需使用CLI)special=false - 是否包含特殊字符xkcd=false - 是否生成XKCD风格密码(多单词组合)在Go项目中集成密码生成功能:
package main import pwd "github.com/Luzifer/password/v2/lib" func getPassword() (string, error) { return pwd.NewSecurePassword().GeneratePassword(16, false) }
项目包含完善的测试和性能基准,每次代码推送由Travis CI自动运行:
[![Build Status]([***]
典型基准测试结果:
$ go test -bench . goos: linux goarch: amd64 pkg: github.com/Luzifer/password/lib BenchmarkGeneratePasswords8Char-8 20000 65469 ns/op BenchmarkGeneratePasswords8CharSpecial-8 20000 97659 ns/op BenchmarkGeneratePasswords16Char-8 20000 84215 ns/op BenchmarkGeneratePasswords16CharSpecial-8 20000 92885 ns/op BenchmarkGeneratePasswords32Char-8 10000 152436 ns/op BenchmarkGeneratePasswords32CharSpecial-8 10000 144352 ns/op BenchmarkGeneratePasswords128Char-8 1000 2199011 ns/op BenchmarkGeneratePasswords128CharSpecial-8 2000 1089225 ns/op BenchmarkGeneratePasswords4Words-8 200000 9472 ns/op BenchmarkGeneratePasswords20Words-8 100000 14098 ns/op PASS ok github.com/Luzifer/password/lib 21.624s
免费版仅支持 Docker Hub 加速,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
免费版仅支持 docker.io;专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录方式配置轩辕镜像加速服务,包含7个详细步骤
在 Linux 系统上配置轩辕镜像源,支持主流发行版
在 Docker Desktop 中配置轩辕镜像加速,适用于桌面系统
在 Docker Compose 中使用轩辕镜像加速,支持容器编排
在 k8s 中配置 containerd 使用轩辕镜像加速
在宝塔面板中配置轩辕镜像加速,提升服务器管理效率
在 Synology 群晖NAS系统中配置轩辕镜像加速
在飞牛fnOS系统中配置轩辕镜像加速
在极空间NAS中配置轩辕镜像加速
在爱快ikuai系统中配置轩辕镜像加速
在绿联NAS系统中配置轩辕镜像加速
在威联通NAS系统中配置轩辕镜像加速
在 Podman 中配置轩辕镜像加速,支持多系统
配置轩辕镜像加速9大主流镜像仓库,包含详细配置步骤
无需登录即可使用轩辕镜像加速服务,更加便捷高效
需要其他帮助?请查看我们的 常见问题 或 官方QQ群: 13763429