As the titles says, i would like to know how to best use Cipher instance in multi threaded environment given the RSA algorithm.
I have read a couple of questions on the
Encryption (and writing messages) is inherently synchronous. Using multiple threads would not be my approach. Consider a message aabb. With multiple threads that might become abba or baba or abab or bbaa. Note that the internal state of the cipher is also synchronous in that manner ... To get aabb out, you must send aabb in.