1
$\begingroup$

i've written a simple code for payload encryption, i'v done it with AES-128 CBC mode ,it works fine ,the senario is very simple : the publisher send a JSON payload format that includes the encryption key , IV (Initialisation Vector) and the encrypted data, the subscriber extract the key and IV then decrypt the data received, but i want to do a sort of hybrid encryption ,to encrypt the key with Asymmetric algorithm, i know the famous RSA, but after reading some articles, RSA is not suitable for constrained ressources devices, have you any idea wich algorithm can i use or somthing else that ensure the key transmission ?

$\endgroup$

1 Answer 1

1
$\begingroup$

I'm not endorsing your encryption scheme (because frankly it sounds dubious), but libsodium's Public-key authenticated encryption sounds like what you're looking for. It uses Curve25519 internally, which should be less resource-intensive than RSA. There are also bindings for many languages available.

$\endgroup$
1
  • $\begingroup$ can you propose any secure scheme to do this kind of encryption ? thanks sir that was helpful $\endgroup$
    – the-goat
    Commented Aug 4, 2018 at 13:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.