square/js-jose

Generate private & public key?

pwFoo opened this issue · 1 comments

pwFoo commented

I'm searching for a library to encrypt, decrypt, sign and verify messages and tested cryptico (can't sign/verify without encrypt / decrypt) and jsencrypt (signature returns "false" every time, bug?).

Looks like js-jose is a newer and active maintained lib. With some more documentation (usage, some more examples?) and the feature to generate keys it could be a replacement?

js-jose it implements the jose standard. For crypto it uses WebCrypto. You shouldn’t if at all possible use JavaScript implemented crypto and instead use WebCrypto and libraries based on it.