{"id":22325280,"url":"https://github.com/uninett/feide-secret-generator","last_synced_at":"2025-03-26T05:44:21.270Z","repository":{"id":34986883,"uuid":"39071997","full_name":"Uninett/feide-secret-generator","owner":"Uninett","description":"A simple script demonstrating how to generate secrets suitable to use for two-factor authentication in Feide.","archived":false,"fork":false,"pushed_at":"2017-02-03T13:43:16.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-01-31T07:28:22.095Z","etag":null,"topics":["feide","google-authenticator","totp","two-factor-authentication"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Uninett.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":"2015-07-14T11:54:23.000Z","updated_at":"2017-02-03T13:33:55.000Z","dependencies_parsed_at":"2022-08-24T13:30:28.917Z","dependency_job_id":null,"html_url":"https://github.com/Uninett/feide-secret-generator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uninett%2Ffeide-secret-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uninett%2Ffeide-secret-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uninett%2Ffeide-secret-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uninett%2Ffeide-secret-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Uninett","download_url":"https://codeload.github.com/Uninett/feide-secret-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245598310,"owners_count":20641884,"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":["feide","google-authenticator","totp","two-factor-authentication"],"created_at":"2024-12-04T02:11:17.306Z","updated_at":"2025-03-26T05:44:21.242Z","avatar_url":"https://github.com/Uninett.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Feide two-factor secret generator\n\nA simple script demonstrating how to generate secrets suitable to use for two-factor authentication in Feide.\n\nThe secrets **must** be random strings of 16 base-32-encoded characters, that meaning:\n\n* uppercase ASCII letters, from A to Z, both included, and\n* digits from 2 to 7, both included.\n\nThere's no restriction to how many letters or digits should be used, nor any other kind of restriction besides the\nlength of the string. However, we recommend to use completely random secrets.\n\n## Installation\n\nClone this repository, then [download composer](https://getcomposer.org/download/) to the same directory, and run it:\n\n```\n./composer.phar install\n```\n\n## Usage\n\nJust call the `generator.php` script and it will output an encrypted secret suitable for storage in the user's entry\nin the directory, as well as a QR code that can be scanned by an authenticator application:\n\n```\nphp generator.php\n```\n\nYou can also specify the secret you would like to use, as well as a label to be added to the secret and the QR code.\nUse the following command line options:\n\n* `-l` (or `--label`) to specify a label.\n* `-s` (or `--secret`) to specify the secret.\n\nFor example:\n\n```\nphp generator.php --secret ABCDEFGHIJ234567 --label \"My Code Generator\"\n```\n\nFor help on how to deploy encrypted secrets to the user's directory, see the *Feide two-factor deployment guide*.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funinett%2Ffeide-secret-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funinett%2Ffeide-secret-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funinett%2Ffeide-secret-generator/lists"}