Open AlirezaEthDev opened 1 year ago
Hello, first of trying to run your code it's throw an error on line 7 (because JSON.parse only take as input a valid JSON, not a string).
Second, are you trying to use it with HTTP/multiple file? Look out at issue #75 . There's a potential solution (to encode in base64 also the value of the encrypted set and to comment a line which trigger this assertion).
Good luck! ;)
I'm using
eccrypto
in my program. Bob encrypts a key in its NodeJS byeccrypto
and Carol should decrypt it in its NodeJS byeccrypto
too. The issue arises by decryption, encryption is successful but decryption is failed. Whenever the program runseccrypto.decrypt()
it throws this error on PowerShell:This is my whole code:
What is the problem and how can I solve it?