{"id":20049018,"url":"https://github.com/unlock-protocol/password-required-hook","last_synced_at":"2026-01-19T08:01:56.978Z","repository":{"id":107046420,"uuid":"534801683","full_name":"unlock-protocol/password-required-hook","owner":"unlock-protocol","description":"A smart contract hook to use with your lock to enable password protected purchases","archived":false,"fork":false,"pushed_at":"2024-04-11T15:58:43.000Z","size":526,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T20:25:46.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/unlock-protocol.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}},"created_at":"2022-09-09T20:50:30.000Z","updated_at":"2023-07-11T17:29:45.000Z","dependencies_parsed_at":"2023-04-13T15:47:25.216Z","dependency_job_id":null,"html_url":"https://github.com/unlock-protocol/password-required-hook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/unlock-protocol/password-required-hook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlock-protocol%2Fpassword-required-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlock-protocol%2Fpassword-required-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlock-protocol%2Fpassword-required-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlock-protocol%2Fpassword-required-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unlock-protocol","download_url":"https://codeload.github.com/unlock-protocol/password-required-hook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlock-protocol%2Fpassword-required-hook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28563218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-13T11:48:00.365Z","updated_at":"2026-01-19T08:01:56.959Z","avatar_url":"https://github.com/unlock-protocol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Password Hook for Locks\n\nThis project implements an Unlock [PublicLock Hook](https://docs.unlock-protocol.com/core-protocol/public-lock/hooks) that can be used on Locks smart contracts to ensure that users who are purchasing a key from a lock have entered the right password on the frontend application.\n\nThis process is _secured_ and cannot be bypassed by calling the contract directly as the password is used to submit the transaction on-chain.\n\nWhen the user enters a password on the frontend application, the password is used to generate a private key that is then used to sign the recipient's address. That signature is passed as the data argument on the `purchase` call.\n\nA lock manager can set the right signer based on the password for a lock using `setSigner`.\n\nThe Unlock Protocol team has deployed and verified a version of this hook on the following networks:\n\n## Using the hook for your own lock\n\nFrom the Unlock Dashboard, go to \"Settings\", then select \"Advanced\" and finally \"Hooks\". Check this [Guide](https://unlock-protocol.com/guides/password-protected-nft-memberships/) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funlock-protocol%2Fpassword-required-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funlock-protocol%2Fpassword-required-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funlock-protocol%2Fpassword-required-hook/lists"}