How to implement RSA based on custom user defined padding -JAVA

73 Views Asked by At

Im trying to implement RSA based on custom padding value.

cipher.init(ENCRYPT_MODE, publicKey,oaepParameter, secureRandom);

I would like to change the secureRandom function to somthing else. Basically like to feed custom defined byte[] (could be random/ based on specific logic) to the Cipher init method. Is there any way i can acheive this

0

There are 0 best solutions below