an authentication system with RSA encryption (that uses public & private key) and also create an extra protected POST route where only encrypted payload is sent which is then decrypted by the application.
Explore the docs �
�
Report Bug
�
Request Feature
Encryption with RSA
an authentication system with RSA encryption (that uses public & private key) and also create an extra protected POST route where only encrypted payload is sent which is then decrypted by the application.
This progam was made using this technologies
- Lumen
- JWT
- Icobucci/jwt
- RSA encryption
- Swagger Package
- PHPunit Test
To get a local copy up and running follow these simple example steps.
- Clone the repo
git clone https://github.com/collinsugwu/Patricia-test
- cd in to projects directory
cd Patricia-test
- update/install composer
composer install
- start the php server
php -S localhost:8000 -t public
- Publish the endpoints documentation with DarkaOnline
php artisan swagger-lume:publish-config
php artisan swagger-lume:publish-views
php artisan swagger-lume:publish
php artisan swagger-lume:generate
-
Generate a keyPair(Public and Private key) of key size of 512 bit from Online RSA Key Generator.
-
create a private_key.pm file and a public_key.pm file in 'storage/keys' folder.
-
copy the private key generated from 'Online RSA Key Generator' into the private_key.pm file, and also copy the public key generated from the 'Online RSA Key Generator' into the public_key.pem file.
-
Run the Test command to test all our endpoints
vendor/bin/phpunit
- View the endpoints swagger documentaion from this route
localhost:8000/api/documentation
The project uses JWT (Json Web Token) for authentication but goes a step further in using RSA encryption for encrypting "and decrypting the token.
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Project Link: https://github.com/collinsugwu/Patricia-test