https://github.com/shabaz-ejaz/data-encrypt
A short api data encryption exercise that encrypts data when stored and decrypts the data when retrieved.
https://github.com/shabaz-ejaz/data-encrypt
Last synced: 7 months ago
JSON representation
A short api data encryption exercise that encrypts data when stored and decrypts the data when retrieved.
- Host: GitHub
- URL: https://github.com/shabaz-ejaz/data-encrypt
- Owner: shabaz-ejaz
- Created: 2021-08-17T15:59:32.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-17T22:55:20.000Z (about 4 years ago)
- Last Synced: 2025-01-20T10:11:25.482Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## recrypt-coding-test
Clone project, run composer install, run migrations.
Test with the following routes in Postman:
#### To store data:
http://localhost:8000/api/store-data/1
- send `value` in post request
- send encryption key as bearer token in authorization header
#### To retrieve data:
http://localhost:8000/api/get-data/1
- send decryption key as bearer token in authorization header