How to implement the signature algorithm of Aliyun API Gateway with Javascript

there is a project that uses Aliyun"s API gateway to implement identity authentication, which is currently stuck on the generation algorithm of X-Ca-Signature .

The idea of

signature is as follows:
https://help.aliyun.com/docum.

officially there is an implementation algorithm for NodeJS , but the Buffer object is used in the signature. There is no such thing in JavaScript . Is there any other way to implement it in JavaScript ?

Mar.10,2021

Nodejs certainly has Buffer: https://nodejs.org/dist/lates.

Menu