{"id":30201451,"url":"https://github.com/domano/pwgen","last_synced_at":"2026-05-16T08:03:02.336Z","repository":{"id":57568311,"uuid":"186611022","full_name":"domano/pwgen","owner":"domano","description":"Challenge: Create a password generating REST service","archived":false,"fork":false,"pushed_at":"2020-05-19T13:23:28.000Z","size":5774,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T17:57:09.513Z","etag":null,"topics":["challenge","docker","generator","go","golang","microservice","password","security"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/domano.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-14T11:46:50.000Z","updated_at":"2020-08-11T10:51:00.000Z","dependencies_parsed_at":"2022-08-28T07:42:44.646Z","dependency_job_id":null,"html_url":"https://github.com/domano/pwgen","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/domano/pwgen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domano%2Fpwgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domano%2Fpwgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domano%2Fpwgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domano%2Fpwgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/domano","download_url":"https://codeload.github.com/domano/pwgen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domano%2Fpwgen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278350986,"owners_count":25972676,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["challenge","docker","generator","go","golang","microservice","password","security"],"created_at":"2025-08-13T10:37:42.850Z","updated_at":"2025-10-04T17:57:09.922Z","avatar_url":"https://github.com/domano.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pwgen\nChallenge: Create a password generating REST service\n\n[![Docker Cloud Automated build](https://img.shields.io/docker/cloud/automated/domano/pwgen.svg)](https://cloud.docker.com/repository/docker/domano/pwgen)\n[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/domano/pwgen.svg)](https://cloud.docker.com/repository/docker/domano/pwgen)\n![Docker Stars](https://img.shields.io/docker/stars/domano/pwgen.svg)\n[![Build Status](https://travis-ci.org/domano/pwgen.svg?branch=master)](https://travis-ci.org/domano/pwgen)\n[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)\n\n[![GoDoc](https://godoc.org/github.com/domano/pwgen/internal?status.svg)](http://godoc.org/github.com/domano/pwgen/internal)\n[![Go Report Card](https://goreportcard.com/badge/github.com/domano/pwgen)](https://goreportcard.com/report/github.com/domano/pwgen)\n[![codecov](https://codecov.io/gh/domano/pwgen/branch/master/graph/badge.svg)](https://codecov.io/gh/domano/pwgen)\n\n![GitHub](https://img.shields.io/github/license/domano/pwgen.svg)\n![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/domano/pwgen.svg)\n![GitHub last commit](https://img.shields.io/github/last-commit/domano/pwgen.svg)\n\n\n# API\n\n## Parameters\nThere is one endpoint `/passwords` with the following query parameters.\n\n| Parameter | Description | Default | \n| --- | --- | --- | \n| minLength | The minimum length of a password.| 0| \n| specialChars| Minimum amount of special characters. | 0 | \n| numbers | Minimum amount of numbers. | 0 |\n| amount | Number of passwords that will be returned | 1 |\n| swap | Boolean value indicating if random vowels should be swapped for numbers | false |\n\n### Example:\nRequest `/passwords?minLength=10\u0026specialChars=3\u0026numbers=3\u0026amount=2`\n\nResponse `[\"?!o\\10wE9q\", \"h3{{v9BB3%\"]`\n\n \n## run\nFollowing environment variables can be set\n\n| ENV           | Description | Default | Required |\n|---            |---                                |---                    |---                |\n| CERT_FILE     | Path to TLS cert file.            | cert.pem              | Only for docker   |\n| KEY_FILE      | Path to TLS unencrypted key file. | key.unencrypted.pem   | Only for docker   |\n| PORT          | Port to listen on.                | 8443                  | No                |\n| GRACE_PERIOD  | Timeout for graceful shutdown.    | 5s                    | No                |\n\n###  docker\nYou can easily run pwgen with the publicly available docker image. \n\nBecause this is a password generator only HTTPS is supported and a TLS certificate and key must be provided.\n\nExample with latest public image:\n\n`docker run -v $(pwd):/certs -e CERT_FILE=/certs/cert.pem -e KEY_FILE=/certs/key.unencrypted.pem domano/pwgen`\n\n### locally\n`go run cmd/pwgen/main.go`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomano%2Fpwgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdomano%2Fpwgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomano%2Fpwgen/lists"}