A
A
Alexey Poloz2018-03-22 02:45:49
Python
Alexey Poloz, 2018-03-22 02:45:49

RSA How to recover a key in Java and encrypt data from one created in Python?

Created private and public keys in Python:

import rsa
(pubkey, privkey) = rsa.newkeys(512)

I pass the public to the client in Java (modulus, exponent). How to restore the object for encrypting the message using these parameters?
In Python, the same problem, if there is an object, it is easily encrypted, but how to get this object from these parameters?
Or do you need something else?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maybe Somebody, 2018-03-28
@maybesomebody

Simple dump: JSON dump: Sending.
conn.sendall(dump) # Python 2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question