A
A
admkulonful2018-11-08 17:46:45
Python
admkulonful, 2018-11-08 17:46:45

How to decrypt in JS a string encrypted in Python?

Encrypted via rsa.encrypt in Python, Private Key is stored in its own format, not in a string.
How to pass Private Key and byte encrypted string and decrypt on JS side?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav Klimanov, 2018-11-08
@ahmpro

what prevents to translate to PEM and decrypt https://github.com/travist/jsencrypt ?
why bytes if you can use strings?
you can also convert to base64 https://docs.python.org/3.7/library/binascii.html

M
metajiji, 2018-11-09
@metajiji

For rsa keys, of course, pem. If we are talking about the web, then the password is not bad if it is not transmitted over the same communication channel through which the data travels. In principle, this also applies to the key.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question