Documenting, Encrypting, and Unit Testing My First REST API

Written by varunsingh | Published 2021/01/11
Tech Story Tags: rest-api | php | api-documentation | key-encryption | encryption | cybersecurity | phpunit | php-development

TLDR Borum Jot was the first project I tried seriously unit testing my code, encrypting the data, and documenting my back-end. I used PHPUnit, a unit-testing framework, and GuzzleHttp, a PHP HTTP client, to unit test my application. I encrypted my data using defuse/php-encryption. This library, claiming to be secure, did the encryption and decryption for me. To encrypt and decrypt, I needed my own key, which I generated by running composer.via the TL;DR App

no story

Written by varunsingh | I'm a software developer, hacker, and avid reader interested in all things tech
Published by HackerNoon on 2021/01/11