{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:golang/github.com/2lambda123/2fa","name":"github.com/2lambda123/2fa","description":"2fa is a two-factor authentication agent.\n\nUsage:\n\n“2fa -add name” adds a new key to the 2fa keychain with the given name.\nIt prints a prompt to standard error and reads a two-factor key from standard input.\nTwo-factor keys are short case-insensitive strings of letters A-Z and digits 2-7.\n\nBy default the new key generates time-based (TOTP) authentication codes;\nthe -hotp flag makes the new key generate counter-based (HOTP) codes instead.\n\nBy default the new key generates 6-digit codes; the -7 and -8 flags select\n7- and 8-digit codes instead.\n\n“2fa -list” lists the names of all the keys in the keychain.\n\n“2fa name” prints a two-factor authentication code from the key with the\ngiven name. If “-clip” is specified, 2fa also copies the code to the system\nclipboard.\n\nWith no arguments, 2fa prints two-factor authentication codes from all\nknown time-based keys.\n\nThe default time-based authentication codes are derived from a hash of\nthe key and the current time, so it is important that the system clock have\nat least one-minute accuracy.\n\nThe keychain is stored unencrypted in the text file $HOME/.2fa.\n\nDuring GitHub 2FA setup, at the “Scan this barcode with your app” step,\nclick the “enter this text code instead” link. A window pops up showing\n“your two-factor secret,” a short string of letters and digits.\n\nAdd it to 2fa under the name github, typing the secret at the prompt:\n\nThen whenever GitHub prompts for a 2FA code, run 2fa to obtain one:\n\nOr to type less:","version":"v1.2.0","softwareVersion":"v1.2.0","license":"https://spdx.org/licenses/BSD-3-Clause","codeRepository":"https://github.com/2lambda123/2fa","issueTracker":"https://github.com/2lambda123/2fa/issues","url":"https://github.com/2lambda123/2fa","programmingLanguage":{"@type":"ComputerLanguage","name":"Go"},"dateCreated":"2017-11-29","dateModified":"2021-01-15","datePublished":"2021-01-15","copyrightYear":2017,"downloadUrl":"https://proxy.golang.org/github.com/2lambda123/2fa/@v/v1.2.0.zip","softwareHelp":{"@type":"WebSite","url":"https://pkg.go.dev/github.com/2lambda123/2fa#section-documentation"},"applicationCategory":"go","runtimePlatform":"go","developmentStatus":"active","sameAs":["https://pkg.go.dev/github.com/2lambda123/2fa"]}