jsencrypt icon indicating copy to clipboard operation
jsencrypt copied to clipboard

Decrypt on Server Side

Open Akinnagbe opened this issue 6 years ago • 7 comments

Hello, Would like to ask if it is possible to encrypt on the client side using cryptico and decrypt on the server side (like using C#).

Thanks

Akinnagbe avatar Aug 23 '18 15:08 Akinnagbe

we use c# to decrypt data from our js client that uses jsencrypt.

osudude avatar Sep 11 '18 00:09 osudude

Thanks for the reply, is it possible i get a snippet for Assymmetric Encryption.

Thanks

Akinnagbe avatar Sep 11 '18 14:09 Akinnagbe

Here is a stack overflow post that should point you in the right direction:

https://stackoverflow.com/questions/35787504/how-to-decrypt-rsa-content-in-net

osudude avatar Sep 11 '18 15:09 osudude

We use pycryptodome for python servers!

xtornasol512 avatar Sep 18 '18 14:09 xtornasol512

Can I use openssl directly to decrypt data encrypted with javascript jsencrypt?

I tried:

openssl rsautl -decrypt -inkey <private_key> -in -out

But it keeps giving me the "data greater than mod len" error. Decrypting in jsencrypt works fine.

val-creare avatar Nov 26 '18 21:11 val-creare

@val-creare , I'm facing the same issue, have been trying to fix it for several days.

@travist , could you please help?