I worked with one of payment gateway. For that, I need to generate one encryption key. I have pasted my code what I wrote in PHP.
public function payment_encrypt2($string, $key)
return urlencode((base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), serialize($string), MCRYPT_MODE_CBC, md5(md5($key))))));
I just want to convert this code from PHP to NodeJS language. I am 50% in NodeJS. I can't change this way. Because it is working from long back ago. I can't change the encryption method very suddenly, So I need to go with the above flow only.
Technology & Software
Bugs & Fixes
Energy Environment Management Interview
VcareAll - Technical Fresher
CAT Mock Exam
Class 12 Biology
Discrete Mathematics Interview
Labor And Employment Law
Ashoka Aptitude Test
Electronics And Communication Engineering
Accounts & Finance
Graphics & Design
Banking, Finance & Insurance
Advertising , PR, MR, Event Management
Fertilizers , Pesticides
BPO , Call Centre, ITES
Courier , Transportation , Freight , Warehousing
Strategy, Management Consulting Firms
Banking , Financial Services , Broking
Mobile App Development
Reviews Category Comming soon..
Design & Animation
Marketing Category Comming soon..
Offers Category Comming soon..
Is It Possible To Live-stream Video From Windows Azure
Internet of Things
Trust Store Vs Key Store - Creating With Keytool
How To Check If Array Is Not Empty? [duplicate]
Can An Mqtt Broker Be Configured Not To Echo Messages On A Topic?