aksalj / pesajs

MPESA G2 API client
MIT License
38 stars 27 forks source link

Password Hashing & Encoding #10

Open NateNjuguna opened 7 years ago

NateNjuguna commented 7 years ago

I am having an issue with Authorization from Safaicom's SAG when using this module. Err However, my key is valid (tested it with other methods). This seems to be the best module available for Node JS. On investigating, I found that pesa-js uses crypto-js module to do the encoding and hashing. Confirming more I found that v4 of node has the inbuilt crypto module. The crypto module seems like a better solution here.