简体   繁体   中英

Implementing JSON Web Encryption in Node.js

I'm looking for a way to use JSON Web Encryption (JWE) in a Node.js service. I have however only managed to find implementations of the related standard JWS . There are however several libraries for other languages, such as jose4j .

Did anyone successfully implement JWE in Javascript? I'm afraid I'm gonna gave to resort to implementing the spec myself using lower level primitives. Is there a better approach?

Here is a library that can be used from Node.js also https://github.com/cisco/node-jose . They have also a very good documentation on how to use it.

There is a library js-jose https://github.com/square/js-jose . But it works only for Chrome. It does not work for Internet Explorer nor for FireFox.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM