question

MerryChristmas avatar image
MerryChristmas asked

SHA256withRSA in cloud script

I need to use SHA256withRSA function, but I cannot import external library, so is there a way to do this?

I found that I can import source code of crypto-js but it doesn't have something like "CryptoJS.SHA256("message", privateKey)", it only has CryptoJS.SHA256("message"), maybe someone can tell me a way to createSign with crypto-js? Thanks.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Gosen Gao avatar image
Gosen Gao answered

The CloudScript classic doesn't support importing external libraries, if you want to import external libraries, we recommend using Azure Functions. As for the CryptoJS, you need to refer to its official documentation to find the method you need.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.