digitalbazaar / forge

A native implementation of TLS in Javascript and tools to write crypto-based and network-heavy webapps
https://digitalbazaar.com/
Other
5.09k stars 785 forks source link

First argument must be a Buffer (msgpack + forge aes encryption) #887

Open carlosjpr-collab opened 3 years ago

carlosjpr-collab commented 3 years ago

I am trying to excute this code that do

My test file is any json file

{ "testin": "test" }

x-077 commented 3 years ago

Hello @carlosjpr-collab ,

did you try decipher.update(forge.util.createBuffer(encrypted)) instead of decipher.update(encrypted); ?