Sun's RSA cipher implementation will only encrypt one block of data.
Are you saying that if I pass more than 256 bytes to cipher.doFinal, Sun's RSA implementation will only process the first 256 because of the key size/modulus.
If I use a hybrid approach where & how do I keep my AES key? This application ll be distributed to customers. If I encrypt is using my private key and store it as part of the application, the application can be reverse engineered and encrypted key extracted. Customers have the public key and can decrypt it.
Aryan Khan wrote:Greg ... tried with PKCS1Padding... Didn't work. Added BouncyCastle and just used "RSA" and no white spacing....
Any ways got it working....