{"id":22387654,"url":"https://github.com/bay0/react-app-protect","last_synced_at":"2025-07-31T06:31:51.551Z","repository":{"id":50140115,"uuid":"323761437","full_name":"bay0/react-app-protect","owner":"bay0","description":"Password protect a react app.","archived":false,"fork":false,"pushed_at":"2021-07-13T05:30:52.000Z","size":5579,"stargazers_count":17,"open_issues_count":1,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-25T02:33:34.871Z","etag":null,"topics":["aes","component","cryptojs","fingerprintjs","password","react","wip"],"latest_commit_sha":null,"homepage":"https://bay0.github.io/react-app-protect/","language":"CSS","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/bay0.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}},"created_at":"2020-12-23T00:15:00.000Z","updated_at":"2024-09-12T09:09:23.000Z","dependencies_parsed_at":"2022-08-12T20:51:11.959Z","dependency_job_id":null,"html_url":"https://github.com/bay0/react-app-protect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bay0/react-app-protect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bay0%2Freact-app-protect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bay0%2Freact-app-protect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bay0%2Freact-app-protect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bay0%2Freact-app-protect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bay0","download_url":"https://codeload.github.com/bay0/react-app-protect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bay0%2Freact-app-protect/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267998070,"owners_count":24178449,"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-07-31T02:00:08.723Z","response_time":66,"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":["aes","component","cryptojs","fingerprintjs","password","react","wip"],"created_at":"2024-12-05T02:10:20.860Z","updated_at":"2025-07-31T06:31:51.007Z","avatar_url":"https://github.com/bay0.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-app-protect\n\n\u003e Password protect a react app.\n\n\u003e Simple password field, not a replacment for basic auth.\n\n\u003e Not secure at all.\n\n[![NPM](https://img.shields.io/npm/v/react-app-protect.svg)](https://www.npmjs.com/package/react-app-protect) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n### ✨ [Demo](https://bay0.github.io/react-app-protect/)\n\n###### password: test\n\n## Install\n\n```bash\nnpm install --save react-app-protect\nyarn add react-app-protect\n```\n\n\u003e Using [FingerprintJS](https://github.com/fingerprintjs/fingerprintjs) to encrypt the password via AES.\n\u003e Storing the cipher in the localStorage.\n\u003e Checking if the stored cipher is valid against the sha512 hash.\n\n## Props\n\n| Name             | Type    | Default                          | Description                     |\n| ---------------- | ------- | -------------------------------- | ------------------------------- |\n| sha512           | String  |                                  | SHA 512 Hash app                |\n| blur             | Boolean | false                            | Blur the content                |\n| boxTitle         | String  | This page is password protected. | Title of the login box          |\n| inputPlaceholder | String  | Password                         | Placeholder for the input field |\n| buttonLabel      | String  | Submit                           | Label used for the button       |\n| styles           | Object  |                                  | Styles                          |\n\n## Usage\n\n```jsx\nimport React, { Component } from 'react'\n\nimport Protect from 'react-app-protect'\nimport 'react-app-protect/dist/index.css'\n\nclass App extends Component {\n  render() {\n    return (\n      \u003cProtect sha512='EE26B0DD4AF7E749AA1A8EE3C10AE9923F618980772E473F8819A5D4940E0DB27AC185F8A0E1D5F84F88BC887FD67B143732C304CC5FA9AD8E6F57F50028A8FF'\u003e\n        \u003cdiv\u003eContent\u003c/div\u003e\n      \u003c/Protect\u003e\n    )\n  }\n}\n```\n\n## License\n\nMIT © [bay0](https://github.com/bay0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbay0%2Freact-app-protect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbay0%2Freact-app-protect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbay0%2Freact-app-protect/lists"}