鍍金池/ 問答/HTML/ 阿里云API網(wǎng)關(guān)的簽名算法如何用Javascript實(shí)現(xiàn)

阿里云API網(wǎng)關(guān)的簽名算法如何用Javascript實(shí)現(xiàn)

有個(gè)項(xiàng)目采用阿里云的API網(wǎng)關(guān)實(shí)現(xiàn)身份鑒權(quán),目前被卡在 X-Ca-Signature 的生成算法上,

簽名的思路如下:
https://help.aliyun.com/docum...

官方有NodeJS版本的實(shí)現(xiàn)算法,但簽名中用到了Buffer對象,JavaScript里沒有這個(gè)東東,不知道JavaScript里有沒有其他辦法可以實(shí)現(xiàn)?

圖片描述

回答
編輯回答
朽鹿

Nodejs 當(dāng)然有Buffer:https://nodejs.org/dist/lates...

2018年4月23日 15:02