Documenting, Encrypting, and Unit Testing My First REST APIby@varunsingh
287 reads

Documenting, Encrypting, and Unit Testing My First REST API

by Varun Singh4mJanuary 11th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

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.
featured image - Documenting, Encrypting, and Unit Testing My First REST API
Varun Singh HackerNoon profile picture
Varun Singh

Varun Singh

@varunsingh

I'm a software developer, hacker, and avid reader interested in all things tech

About @varunsingh
LEARN MORE ABOUT @VARUNSINGH'S
EXPERTISE AND PLACE ON THE INTERNET.

Share Your Thoughts

About Author

Varun Singh HackerNoon profile picture
Varun Singh@varunsingh
I'm a software developer, hacker, and avid reader interested in all things tech

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
L O A D I N G
. . . comments & more!