{"id":19943005,"url":"https://github.com/inightjar/authenticatorruby","last_synced_at":"2025-10-12T16:57:57.638Z","repository":{"id":164892780,"uuid":"638799924","full_name":"iNightjar/authenticatorRuby","owner":"iNightjar","description":"authenticator | commandline utility","archived":false,"fork":false,"pushed_at":"2023-07-05T01:42:53.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-12T05:08:16.731Z","etag":null,"topics":["logic","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iNightjar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-05-10T06:15:11.000Z","updated_at":"2023-07-07T19:35:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d8fb233-cd63-4101-89e5-40cdab934ea2","html_url":"https://github.com/iNightjar/authenticatorRuby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iNightjar%2FauthenticatorRuby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iNightjar%2FauthenticatorRuby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iNightjar%2FauthenticatorRuby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iNightjar%2FauthenticatorRuby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iNightjar","download_url":"https://codeload.github.com/iNightjar/authenticatorRuby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241369508,"owners_count":19951752,"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":["logic","ruby"],"created_at":"2024-11-13T00:14:59.265Z","updated_at":"2025-10-12T16:57:57.571Z","avatar_url":"https://github.com/iNightjar.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚪 Ruby Authenticator with Bcrypt 🐢\n\nThis is a simple authenticator written in Ruby that uses the bcrypt gem to securely hash and verify passwords. You can use this authenticator to add user authentication to your Ruby projects.\n\n## 📦 Installation\n\nTo install this CheckCredentails, simply clone this repository to your local machine:\n\n```sh\ngit clone https://github.com/iNightjar/authenticatorRuby.git\n```\n\nThen, navigate to the project directory and install the required gems using Bundler:\n```sh\ncd authenticatorRuby\nbundle install\n```\n\n## 🔑 Usage\nTo use the authenticator, you can require the CheckCredentails.rb file in your Ruby code:\n```ruby\nrequire_relative 'CheckCredentails'\n\n# Create a hash password for your instance of object: like a student password\nhashed_password = instance.create_hash_digest(instance.password)\n\n# Securely encrypts List of users passwords using a hash function.\nhashed_users = instance.create_secure_users(users_List)\n\n# Check if user is an authenticated user or is included in the authenticated ones\nis_authenticateed = instance.authenticate_user(instance.username, instance.password, users_List)\n```\n\n### The CheckCredentails Modules\n\n• verify_hash_digest(username, password, list_of_users): Registers a new user with the given username and password. The password is securely hashed using bcrypt before being stored in the database.\n\n• create_secure_users(list_of_users) takes a list of user records (which is typically an array of hashes) and securely encrypts their passwords using a hash function. This method is useful for creating a secure database of user records, where the passwords are encrypted and cannot be easily accessed or decrypted by an attacker.\n\n• authenticate_user (username, password, list_of_users): Authenticates a user with the given username and password. The password is verified against the hashed password stored in the database using bcrypt. Returns true if the authentication is successful, and false otherwise.\n\n\n## 🔒 Security\nPasswords are securely hashed using bcrypt before being stored in the database. This makes it extremely difficult for an attacker to retrieve the original password from the hash.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finightjar%2Fauthenticatorruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finightjar%2Fauthenticatorruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finightjar%2Fauthenticatorruby/lists"}