publicEncrypt
publicEncrypt copied to clipboard
fix: length of the result buffer may less than the nodeCrypto's
Add the following codes in test
t.equals(myEnc.length, nodeEnc.length, 'my public encrypted length node public encrypted length')
and find the bug.
I think the results should have the same length.
thanks, this solved my problem