js icon indicating copy to clipboard operation
js copied to clipboard

Go compabilites

Open stlr00 opened this issue 3 years ago • 8 comments

Unnable to encrypt/decrypt between GO and JS

stlr00 avatar Jun 18 '21 12:06 stlr00

Did you mix hex string and bytes? Maybe you can check https://github.com/ecies/go/issues/17 to see whether you have the same problem

kigawas avatar Jun 18 '21 16:06 kigawas

We try make private and public keys at go side, then send hex public key to js and encrypt msg. After that go try to decrypt msg with private key and it doesnt work. Of course we check all data formats compablities.

stlr00 avatar Jun 18 '21 16:06 stlr00

Can you post the private key and public key?

kigawas avatar Jun 18 '21 17:06 kigawas

5b5b1a0ff51e4350badd6f58d9e6fa6f57fbdbde6079d12901770dda3b803081 its private 048e41409f2e109f2d704f0afd15d1ab53935fd443729913a7e8536b4cef8cf5773d4db7bbd99e9ed64595e24a251c9836f35d4c9842132443c17f6d501b3410d2 its public

stlr00 avatar Jun 18 '21 18:06 stlr00

Cannot reproduce. Are you passing the right Buffer to the JS decrypt function?

kigawas avatar Jun 19 '21 13:06 kigawas

Of course. Tomorrow will try reproduse again and send video.

stlr00 avatar Jun 20 '21 08:06 stlr00

Of course. Tomorrow will try reproduse again and send video.

How large is your video? For files more than several gigabytes, aes-gcm may have problem encrypting

kigawas avatar Jun 20 '21 12:06 kigawas

No no. We encrypt only string. I will capture video with problem.

stlr00 avatar Jun 20 '21 12:06 stlr00