{"id":18771763,"url":"https://github.com/zahid-automate/playwright-crypto","last_synced_at":"2026-06-28T05:32:02.764Z","repository":{"id":261540823,"uuid":"884588073","full_name":"Zahid-Automate/Playwright-Crypto","owner":"Zahid-Automate","description":"Encrypt your Credentials using Crypto.js in Playwright for javascript project","archived":false,"fork":false,"pushed_at":"2024-11-08T10:57:52.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-01T05:06:16.184Z","etag":null,"topics":["authentication","automation","encryption","javascipt","playwright"],"latest_commit_sha":null,"homepage":"","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/Zahid-Automate.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":"2024-11-07T02:50:47.000Z","updated_at":"2024-11-08T10:57:56.000Z","dependencies_parsed_at":"2025-02-19T14:42:33.111Z","dependency_job_id":"13c4d50d-57c0-4660-accd-5010ef071530","html_url":"https://github.com/Zahid-Automate/Playwright-Crypto","commit_stats":null,"previous_names":["zahid-automate/playwright-crypto"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Zahid-Automate/Playwright-Crypto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zahid-Automate%2FPlaywright-Crypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zahid-Automate%2FPlaywright-Crypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zahid-Automate%2FPlaywright-Crypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zahid-Automate%2FPlaywright-Crypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zahid-Automate","download_url":"https://codeload.github.com/Zahid-Automate/Playwright-Crypto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zahid-Automate%2FPlaywright-Crypto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34878963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"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":["authentication","automation","encryption","javascipt","playwright"],"created_at":"2024-11-07T19:26:33.981Z","updated_at":"2026-06-28T05:32:02.745Z","avatar_url":"https://github.com/Zahid-Automate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Encrypted Login Test Project\n\nThis project demonstrates automated login testing with encrypted credentials using Playwright and CryptoJS for a Javascript project.\n\n## Project Structure\n\n```\nproject/\n├── utils/                    # Utility functions\n│   ├── encryption.js        # Encryption/decryption logic\n│   └── encrypt-env.js       # Script to encrypt environment variables\n├── tests/                    # Test files\n│   └── login.spec.js        # Login test implementation\n├── .env                      # Environment variables (encrypted)\n├── .env.encrypted           # Backup of encrypted values\n└── .gitignore               # Git ignore configuration\n```\n\n## Setup\n\n1. Install dependencies:\n```bash\nnpm install playwright crypto-js dotenv\n```\n\n2. Create `.env` file with your credentials:\n```env\nUN=your_username\nPASSWORD=your_password\nCRYPTO_SECRET_KEY=your_secret_key\n```\n\n3. Encrypt your credentials:\n```bash\nnode utils/encrypt-env.js\n```\n\n4. Update `.env` file with encrypted values from `.env.encrypted`\n\n## Running Tests\n\n```bash\nnpx playwright test tests/login.spec.js\n```\n\n## Security Notes\n\n- Never commit `.env` or `.env.encrypted` files to version control\n- Store encryption keys securely\n- Update `.gitignore` to exclude sensitive files\n- Keep original credentials backed up securely\n\n## Dependencies\n\n- Playwright\n- CryptoJS\n- dotenv\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch\n3. Commit your changes\n4. Push to the branch\n5. Create a Pull Request\n\n\u003cimg width=\"746\" alt=\"image\" src=\"https://github.com/user-attachments/assets/bf9e2498-8d55-423d-969b-486f547b1310\"\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzahid-automate%2Fplaywright-crypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzahid-automate%2Fplaywright-crypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzahid-automate%2Fplaywright-crypto/lists"}