{"id":13424468,"url":"https://github.com/faustinoaq/secrets","last_synced_at":"2025-05-12T23:08:23.565Z","repository":{"id":76219164,"uuid":"130583869","full_name":"faustinoaq/secrets","owner":"faustinoaq","description":"Useful to get input on noecho, secrets, passwords, token, hints","archived":false,"fork":false,"pushed_at":"2018-06-17T09:07:55.000Z","size":11,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-26T15:54:05.531Z","etag":null,"topics":["crystal","password","secrets"],"latest_commit_sha":null,"homepage":null,"language":"Crystal","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/faustinoaq.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-22T16:06:03.000Z","updated_at":"2024-02-18T15:19:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"86929673-12bc-4ac3-8864-6ff0249376ed","html_url":"https://github.com/faustinoaq/secrets","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustinoaq%2Fsecrets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustinoaq%2Fsecrets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustinoaq%2Fsecrets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustinoaq%2Fsecrets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faustinoaq","download_url":"https://codeload.github.com/faustinoaq/secrets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243234437,"owners_count":20258464,"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":["crystal","password","secrets"],"created_at":"2024-07-31T00:00:54.770Z","updated_at":"2025-03-12T14:31:01.311Z","avatar_url":"https://github.com/faustinoaq.png","language":"Crystal","funding_links":[],"categories":["Crystal"],"sub_categories":[],"readme":"# Secrets\n\n[![Build Status](https://travis-ci.org/faustinoaq/secrets.svg?branch=master)](https://travis-ci.org/faustinoaq/secrets)\n\nCrystal shard to get secrets with hint and backspace support.\n\n![Secrets](https://i.imgur.com/R52pscI.png \"Secrets\")\n\n## Installation\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  secrets:\n    github: faustinoaq/secrets\n```\n\n## Usage\n\n```crystal\nrequire \"secrets\"\n\nsecret = Secrets.gets prompt: \"Write your secret: \"\nputs \"Your secret has #{secret.size} character(s)\"\n```\n\n![secrets-example](https://i.imgur.com/i6XzYPn.gif \"Getting secrets...\")\n\n```crystal\nrequire \"secrets\"\n\nsecret = Secrets.gets prompt: \"Write your secret: \", hint: \"*\", empty_error: \"Empty input, Try again!\"\nputs \"Your secret has #{secret.size} character(s)\"\n```\n\n![secrets-example-error](https://i.imgur.com/ZLriiBx.gif \"No empty secrets!\")\n\n```crystal\nrequire \"secrets\"\n\nsecret = Secrets.gets prompt: \"Write your secret: \", empty_error: \"Retry!\", retry: 3\nif secret.empty?\n  puts \"Oh, no!, your secret is empty!\"\nelse\n  puts \"Your secret has #{secret.size} character(s)\"\nend\n```\n\n![secrets-example-error-retry](https://i.imgur.com/FL0vxBJ.gif)\n\n## Development\n\nExecute `spec/` using:\n\n```\ncrystal spec\nFinished in 564.18 milliseconds\n8 examples, 0 failures, 0 errors, 0 pending\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/faustinoaq/secrets/fork )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n\n## Contributors\n\n- [faustinoaq](https://github.com/faustinoaq) Faustino Aguilar - creator, maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaustinoaq%2Fsecrets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaustinoaq%2Fsecrets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaustinoaq%2Fsecrets/lists"}