{"id":20532467,"url":"https://github.com/joshdk/ykmango","last_synced_at":"2025-09-06T19:36:50.109Z","repository":{"id":57491856,"uuid":"107907303","full_name":"joshdk/ykmango","owner":"joshdk","description":"🔑 Prompt a YubiKey device to generate an OATH code","archived":false,"fork":false,"pushed_at":"2018-08-26T17:06:55.000Z","size":65,"stargazers_count":15,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T20:12:27.449Z","etag":null,"topics":["golang","yubico","yubikey"],"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/joshdk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-22T22:19:15.000Z","updated_at":"2025-01-15T17:53:59.000Z","dependencies_parsed_at":"2022-09-02T00:12:51.445Z","dependency_job_id":null,"html_url":"https://github.com/joshdk/ykmango","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fykmango","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fykmango/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fykmango/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fykmango/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshdk","download_url":"https://codeload.github.com/joshdk/ykmango/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248833227,"owners_count":21168817,"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","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":["golang","yubico","yubikey"],"created_at":"2024-11-16T00:15:04.802Z","updated_at":"2025-04-14T06:31:25.639Z","avatar_url":"https://github.com/joshdk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License](https://img.shields.io/github/license/joshdk/ykmango.svg)](https://opensource.org/licenses/MIT)\n[![GoDoc](https://godoc.org/github.com/joshdk/ykmango?status.svg)](https://godoc.org/github.com/joshdk/ykmango)\n[![Go Report Card](https://goreportcard.com/badge/github.com/joshdk/ykmango)](https://goreportcard.com/report/github.com/joshdk/ykmango)\n[![CircleCI](https://circleci.com/gh/joshdk/ykmango.svg?\u0026style=shield)](https://circleci.com/gh/joshdk/ykmango/tree/master)\n[![CodeCov](https://codecov.io/gh/joshdk/ykmango/branch/master/graph/badge.svg)](https://codecov.io/gh/joshdk/ykmango)\n\n# YKManGo\n\n🔑 Prompt a [YubiKey device](https://en.wikipedia.org/wiki/YubiKey) to generate an OATH code\n\n## Installing\n\nYou can fetch this library by running the following\n\n    go get -u github.com/joshdk/ykmango\n    \nAdditionally, this library has a runtime dependency on [`ykman`](https://github.com/Yubico/yubikey-manager/tree/master/ykman) which must [be installed](https://developers.yubico.com/yubikey-manager/) before use.\n\n## Usage\n\n```go\nimport (\n\t\"fmt\"\n\t\"github.com/joshdk/ykmango\"\n)\n\n// List the currently configured OATH slot names.\nnames, err := ykman.List()\nif err != nil {\n\tpanic(err.Error())\n}\n\nfor _, name := range names {\n\tfmt.Printf(\"Found code named: %s\\n\", name)\n\t// Found code named: aws-mfa\n}\n\n// Generate an OATH code using the given slot name.\n// You may need to touch your YubiKey device if the\n// slot is configured to require touch.\ncode, err := ykman.Generate(\"aws-mfa\")\nif err != nil {\n\tpanic(err.Error())\n}\n\nfmt.Printf(\"Your code is: %s\\n\", code)\n// Your code is: 150509\n```\n\n## License\n\nThis library is distributed under the [MIT License](https://opensource.org/licenses/MIT), see LICENSE.txt for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshdk%2Fykmango","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshdk%2Fykmango","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshdk%2Fykmango/lists"}