An open API service indexing awesome lists of open source software.

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.

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