{"id":20058618,"url":"https://github.com/tlewin/rtoken","last_synced_at":"2025-10-27T08:51:52.908Z","repository":{"id":2619975,"uuid":"3604433","full_name":"tlewin/rtoken","owner":"tlewin","description":"Simple Random Token Generator","archived":false,"fork":false,"pushed_at":"2013-10-05T19:10:23.000Z","size":112,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-16T17:39:40.974Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tlewin.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":"2012-03-02T17:40:27.000Z","updated_at":"2018-05-23T19:11:39.000Z","dependencies_parsed_at":"2022-08-21T01:50:12.505Z","dependency_job_id":null,"html_url":"https://github.com/tlewin/rtoken","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tlewin/rtoken","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlewin%2Frtoken","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlewin%2Frtoken/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlewin%2Frtoken/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlewin%2Frtoken/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tlewin","download_url":"https://codeload.github.com/tlewin/rtoken/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlewin%2Frtoken/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281241872,"owners_count":26467373,"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-27T02:00:05.855Z","response_time":61,"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":[],"created_at":"2024-11-13T13:02:27.280Z","updated_at":"2025-10-27T08:51:52.878Z","avatar_url":"https://github.com/tlewin.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RToken\n\nSimple Random Token Generator for general purpose.\n\n```ruby\nrequire 'rtoken'\n    \n# Generates a random 8 length token with letters and numbers\nputs RToken.rtoken \n```\n  \nInstall the gem:\n\n    gem install rtoken\n  \n## Examples\n\n```ruby\nrequire 'rtoken'\n\n# Generates a random 16 length token with letters and numbers \n# and some special chars\nRToken.rtoken(:size =\u003e 16, :special_chars =\u003e '!@#$%')\n\n# Generates a random 32 length token with ONLY letters\nRToken.rtoken(:size =\u003e 32, :numeric =\u003e false)\n\n# Generates a random token with all lowercase chars\nRToken.rtoken(:size =\u003e 32, :numeric =\u003e false, :lowercase =\u003e true)\n```\n\nIt is possible to create an instance with predefined options\n\n```ruby\nrequire 'rtoken'\n\nrtkn = RToken.new(:size =\u003e 10, :special_chars =\u003e '+-*/')\n\n# All subsequent calls will keep the same options\nrtkn.rtoken #=\u003e Random 10 length token with special chars\n\n# It is possible to make individual changes\nrtkn.rtoken :size =\u003e 4 #=\u003e Random 4 length token with special chars\nrtkn.rtoken 4 # Less verbose fashion\n```\n\n## Command line\n\nRToken include interface for command line token generation.\n\nIt's handfull for creation of password, secret keys, etc.\n\n    Usage: rtoken [options]\n        -s, --size TOKEN_SIZE            token size (default 8)\n        -U, --uppercase                  only uppercase chars (default false)\n        -l, --lowercase                  only lowercase chars (default false)\n        -n, --[no]-numeric               allow numeric chars [0-9] (default true)\n        -p, --special CHARS              include special chars\n        -c, --clipboard                  copy token to the clipboard (default false)\n        -h, --help                       show this message  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlewin%2Frtoken","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftlewin%2Frtoken","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlewin%2Frtoken/lists"}