{"id":15188465,"url":"https://github.com/febiarifin/laravel-encryption","last_synced_at":"2026-03-02T07:32:53.396Z","repository":{"id":256008194,"uuid":"854094663","full_name":"febiarifin/laravel-encryption","owner":"febiarifin","description":"Combining RSA + AES Encryption to secure REST Endpoint With Sensitive Data","archived":false,"fork":false,"pushed_at":"2024-09-08T12:11:04.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-27T06:19:23.846Z","etag":null,"topics":["aes-encryption","laravel","laravel-framework","rest-api","rsa-encryption"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/febiarifin.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-09-08T11:58:57.000Z","updated_at":"2024-09-08T12:11:07.000Z","dependencies_parsed_at":"2024-09-08T13:49:10.491Z","dependency_job_id":null,"html_url":"https://github.com/febiarifin/laravel-encryption","commit_stats":null,"previous_names":["febiarifin/laravel-encryption"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/febiarifin/laravel-encryption","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febiarifin%2Flaravel-encryption","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febiarifin%2Flaravel-encryption/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febiarifin%2Flaravel-encryption/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febiarifin%2Flaravel-encryption/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/febiarifin","download_url":"https://codeload.github.com/febiarifin/laravel-encryption/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febiarifin%2Flaravel-encryption/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29995023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"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-encryption","laravel","laravel-framework","rest-api","rsa-encryption"],"created_at":"2024-09-27T19:20:47.915Z","updated_at":"2026-03-02T07:32:53.379Z","avatar_url":"https://github.com/febiarifin.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Laravel Encryption\nCombining RSA + AES Encryption to secure REST Endpoint With Sensitive Data\n\n## Installation\n- Create new directory `keys` on server-app/storage and client-app/storage\n- Go to directory server-app, and run command \n```\nopenssl genpkey -algorithm RSA -out storage/keys/private_key.pem -pkeyopt rsa_keygen_bits:2048\nopenssl rsa -pubout -in storage/keys/private_key.pem -out storage/keys/public_key.pem\n```\n\n- Copy server-app/storage/keys/public_key.pem to client-app/storage/keys/public_key.pem\n- Run command on server-app `php artisan serve --port=8000`\n- Run command on client-app `php artisan serve --port=8001`\n- Add `SERVER_BASE_URL=YOUR_BASE_URL` to .env on client-app\n- Now hit endpoint from client-app \n    - Method `POST`\n    - Base url `http://localhost:8001/api/send-encrypted-data`  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffebiarifin%2Flaravel-encryption","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffebiarifin%2Flaravel-encryption","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffebiarifin%2Flaravel-encryption/lists"}