Category: Node.js

NodeJS forge Encryption Equivalent in PHP

Known: My Client has nodeJS code: Private Key: Request: How to make it in php and also make a decrypt function … ? Solution: I make this code: Explain: Buffer.from(str,’utf8′) equivalent with utf8_encode($data) forge.pki.publicKeyFromPem...

Get MySQL Data Using ExpressJS

Before Started: Node.js already installed ExpressJS already installed using “npm install –save express” MySQL module already installed “npm install –save mysql” Known: Database Name : projek_inventory Table Name : table_stock_in Data displayed in below...