Closed AugustToko closed 3 years ago
I'm on mobile rn, will take a look later.
Fist comment: instead of using parseKeyFromString
on the stringified file, you should use parseKeyFromFile
and pass the filename.
Can you try that and see if it changes anything?
Sorry for not being able to reply in time.
Even if I use parseKeyFromFile
, the effect is the same.
After testing, encryption and decryption are normal on the same platform.
In addition, when I tried parseKeyFromString
, the newline character (\n
) was unified, but it didn't work.
By the way, now I use encrypt: ^ 3.3.1
and it works well.
Okay, thanks for the info. Will take a look!
This is very strange, but I don't have a Windows machine or a Linux machine. I'll have to shelve this for now, sorry.
Since RSA is being deprecated (see README), this is irrelevant.
I do n’t know why this happens, can someone help me?
On Win
On Linux